gregnb / mui-datatables

Datatables for React using Material-UI
MIT License
2.71k stars 934 forks source link

WCAG enhacement #2002

Open leostereo opened 1 year ago

leostereo commented 1 year ago

This is valid when Windows narrator is active. When you change the sorting order of colum aria-live will be feeded using the "name" field from colum definition and then will append the ascending/descending word. Problem is that most of time "name" attribute comes with camel case, underscore, hyphens u other tipe of not friendly for speach characters. It would be great if we can use "label" field to feed the aria-live.

Expected Behavior

Aria-live should use "label" field instead of "name".

Current Behavior

"name" field is used to feed aria-live component.

Steps to Reproduce (for bugs)

Turn on narrator. Click on any sortable column header and hear the phrase: "table is now sorted by [here it is the name field...]"

Hope to be clear.