WebAIM - Web Accessibility In Mind

E-mail List Archives

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

for

From: Geethavani.Shamanna
Date: Jul 5, 2022 7:50AM


Thanks everyone for responding with some creative suggestions.

The scenario was this: Cells with certain values were highlighted in a different colour in a table. We wanted to ensure that when screen reader users navigate to these cells, they are made aware that the cell in question is highlighted.

Using aria-label to indicate that this cell is highlighted appears to be a good option. Aria-label works as long as it is included within a span element within the <td> tag.

Thanks also to those who pointed out that more than one method should be used to convey the information, such as ensuring that those cells also have thicker borders.

Geetha