-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(tablist): make aria-label optional #18323
base: main
Are you sure you want to change the base?
fix(tablist): make aria-label optional #18323
Conversation
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for v11-carbon-react ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #18323 +/- ##
=======================================
Coverage 84.17% 84.17%
=======================================
Files 408 408
Lines 14435 14435
Branches 4690 4690
=======================================
Hits 12150 12150
+ Misses 2121 2120 -1
- Partials 164 165 +1 ☔ View full report in Codecov by Sentry. |
It looks like this was a minor oversight during the initial refactor of the Tabs API. After discussing with IBM Accessibility team it was clear this should optional, not required. Plenty of context is provided through the existing labels as each
Tab
has an accessible name (even when IconTab is used). Also the TabList doesn't receive focus or have a tab stop. In some limited cases it might make sense to give the user some additional context via the TabList aria-label but it shouldn't be required.Changelog
Changed
Testing / Reviewing