Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tay1orjones
Copy link
Member

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

  • modified aria-label prop to be optional
  • update associated stories

Testing / Reviewing

  • Prop tables for TabList on the storybook should show it as optional and a TabList should render in the stories without a typescript/proptypes warning.

@tay1orjones tay1orjones requested review from a team as code owners January 10, 2025 19:21
@tay1orjones tay1orjones changed the title fix(tabs): make tablist aria-label optional fix(tablist): make aria-label optional Jan 10, 2025
Copy link

netlify bot commented Jan 10, 2025

Deploy Preview for v11-carbon-web-components ready!

Name Link
🔨 Latest commit ae5d99e
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-web-components/deploys/6781735551aaf000088b38dd
😎 Deploy Preview https://deploy-preview-18323--v11-carbon-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 10, 2025

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit ae5d99e
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/678173557a9726000877204d
😎 Deploy Preview https://deploy-preview-18323--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 10, 2025

Deploy Preview for v11-carbon-react ready!

Name Link
🔨 Latest commit ae5d99e
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/6781735586d3e90008c7a0fb
😎 Deploy Preview https://deploy-preview-18323--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Jan 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.17%. Comparing base (e973f28) to head (ae5d99e).
Report is 1 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🚦 In Review
Development

Successfully merging this pull request may close these issues.

1 participant