WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Using Aria within a table to indicate that a cell is highlighted

for

From: Patrick H. Lauke
Date: Jul 4, 2022 6:22PM


On 04/07/2022 23:50, David Engebretson Jr. wrote:

> Placing aria-current=”true” would probably work to make the table accessible (by WCAG standards)

No it wouldn't, as - if I understand the original issue correctly - this
would still fail 1.4.1 Use of Color, because that's a visual SC and
having aria-anything there would not help sighted non-screen-reader
users, which is the point of the SC. At a stretch, it likely would pass
1.1.1 Non-text Content, but that's not enough. For 1.4.1 you really want
some other visible indication that doesn't rely on colour alone (e.g. a
thicker border around the cell or similar).

> Seems like it could be a usability nightmare if the table is large. I'd rather there be a quick and simple way to jump directly to the relevant information/data cell. That's why I suggested a heading. If a heading wrapping around a data cell fails WCAG, and not all assistive technology users have the functionality of “quick keys” like screen readers offer, then what could work to solve the problem Geethavani.Shamanna poses?

A basic skip link before the table, which would also help
non-screen-reader keyboard users? It can hidden at first but appear on
focus, and allow to jump straight to the cell?

Agree that it would be a bit of a perversion of structural markup if you
added a heading there.

--
Patrick H. Lauke

https://www.splintered.co.uk/ | https://github.com/patrickhlauke
https://flickr.com/photos/redux/ | https://www.deviantart.com/redux
twitter: @patrick_h_lauke | skype: patrick_h_lauke