Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(material/tabs): add aria-hidden to inactive tabs (#27742)
Make accessibility fix for Tabs component. Add `aria-hidden="true"` to inactive tab panels. Fix issue where chromevox would read the names of inactive tab panels when navigating past the active tab panel (#27741). Fix this by adding `aria-hidden="true"` to inactive tab panels to exclude them from the a11y tree. I believe what was happening is that the inactive tab panels had an aria-labelled by references that pointed to the tab header. Existing behavior seems to be that Chromevox was following the aria-labelledby references and announcing the labels of the inactive tabs. With this commit applied, Chromevox no longer reads panels of inactive tabs. Fix #27741 (cherry picked from commit 726fc06)
- Loading branch information