design-system-react icon indicating copy to clipboard operation
design-system-react copied to clipboard

Add aria-sort to DataTable headers

Open tweettypography opened this issue 10 years ago • 0 comments

By default, even if the table column isn’t in a sorted state, the hover shows a down arrow. My assumption is that when you sort it descending, the arrow would still point down (in the direction it’s sorted) and that if you click to switch it to ascending, it would flip to up.

That said, there is an aria-sort attribute that should be placed on the column when sorted. So you would add aria-sort="ascending" or aria-sort="descending" when sorted

tweettypography avatar May 17 '16 17:05 tweettypography