WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Using Aria within a table to indicate that a cell ishighlighted

for

From: Mark Magennis
Date: Jul 4, 2022 10:31AM


Hi Geethavani,

You can add an aria-label to the <th> but it won't be read by JAWS/Chrome or NVDA/Firefox. VoiceOver in MacOS/Safari will read it in addition to the cell content.

A better bet might be to add the information as hidden text within the cell.

Mark

-----Original Message-----
From: WebAIM-Forum < <EMAIL REMOVED> > On Behalf Of Geethavani.Shamanna
Sent: 04 July 2022 17:06
To: WebAIM Discussion List < <EMAIL REMOVED> >
Subject: [EXTERNAL] [WebAIM] Using Aria within a table to indicate that a cell is highlighted

Hello all,

We have a table where a cell is highlighted in a different colour. In order to comply with SC 1.4.1 and provide an alternative way of indicating the highlighted status of the cell, is it possible to use Aria-label within the cell?

Many thanks.