WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: table styles and color contrast issues

for

Number of posts in this thread: 2 (In chronological order)

From: David Farough
Date: Fri, Apr 21 2023 2:00PM
Subject: table styles and color contrast issues
No previous message | Next message →

I would like to hear any suggestions for appropriate table styles that would not pose colour contrast issues in office documents.
I have noticed that when specifying banding on rows or columns that color contrast issues abound.

Are there any styles that work better in this regard?
I notice sometimes that when saving as PDF, that the colors are often darker for column headers and row headers.

Does anyone have any recommendations?
Maybe tables should be as plain as possible.
Thanks
David

From: Steve Green
Date: Fri, Apr 21 2023 2:51PM
Subject: Re: table styles and color contrast issues
← Previous message | No next message

By default, the text colour is black in data cells, so banding does not cause any colour contrast issues unless you have changed the text colour. If you do that, any problems are yours, not Microsoft's.

By contrast, the text colour of header cells is white by default, which has insufficient colour contrast with almost all the built-in table styles. This is very much a Microsoft problem. Again, it has nothing to do with banding.

The background of column and row header cells is darker than data cells in the built-in table styles. Saving as PDF doesn't change the colours.

Some form of horizontal banding can benefit screen magnifier users, especially if there is a lot of white space between columns. You can try to avoid that in your table design, but sometimes the nature of the data makes it unavoidable. I have a preference for alternate colours on each row, but a horizontal line between rows can be sufficient as long as it is thick enough and has enough contrast. Banding or lines can also benefit people with dyslexia, who can have a tendency to accidentally skip up or down a line when reading across a page.

That said, I have encountered some screen magnifier users who don't like banding. I suspect they are the minority, but I don't have a big enough sample size to be sure. And of course designers absolutely hate banding because the most important thing is the purity of their precious design. Some will tolerate horizontal lines, but in the absence of user testing evidence it can be difficult to get any of this accepted since there is no requirement for it in WCAG.

Steve Green
Managing Director
Test Partners Ltd