[data grid] 508 compliance issue with GridToolbarColumnsButton in CustomToolbar() #9245
Open
2 tasks done
Labels
accessibility
a11y
component: data grid
This is the name of the generic UI component, not the React module!
Duplicates
Latest version
Steps to reproduce 🕹
Link to live example:
https://mui.com/material-ui/react-table/
Steps:
1.go to data grid
2.click on columns
3.toggle the button from on and off and the screen reader should announce the number of items found.
Current behavior 😯
Within` this function there is a liv-search option to narrow columns to be managed. At present, there is no interaction with a screen reader regarding which columns are selected by the the live search.
Expected Behavior: when search results changes, the screen reader should announce "# matches found". For example, when two search
results are found, the screen reader should announce "2 matches found, press a tab key to navigate to the results".
Recommendation: Use Off- screen notification text within "aria-live region". For example,
a tab key to navigate to the results
`function CustomToolbar() {
const [isColumnsOpen, setColumnsOpen] = React.useState(false);
const [isFiltersOpen, setFiltersOpen] = React.useState(false);
const [isDensityOpen, setDensityOpen] = React.useState(false);
const [isExportOpen, setExportOpen] = React.useState(false);
const [numMatches, setNumMatches] = React.useState(0);
}`
Expected behavior 🤔
When using the buttons to toggle on and off under columns it should announce the # of matches found
Context 🔦
Trying to make the application 508 compliant.
Your environment 🌎
npx @mui/envinfo
Order ID or Support key 💳 (optional)
No response
The text was updated successfully, but these errors were encountered: