-
Notifications
You must be signed in to change notification settings - Fork 159
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
10921: add aria-label to anchor tags inside bx-tabs for accessbility #11047
10921: add aria-label to anchor tags inside bx-tabs for accessbility #11047
Conversation
Deploy preview created for package Built with commit: c08cea3f1a516a00b418474a3e1ebab5facf0b3d |
Deploy preview created for package Built with commit: c08cea3f1a516a00b418474a3e1ebab5facf0b3d |
Deploy preview created for package Built with commit: c08cea3f1a516a00b418474a3e1ebab5facf0b3d |
Deploy preview created for package Built with commit: c08cea3f1a516a00b418474a3e1ebab5facf0b3d |
Deploy preview created for package Built with commit: c08cea3f1a516a00b418474a3e1ebab5facf0b3d |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks @pjudge!
Thanks @kennylam ! Now that I am working as an outside contributer, is it up to me to merge or for someone on your side? |
7f51280
into
carbon-design-system:main
…11047) ### Related Ticket(s) Closes #10921 ### Description This PR adds `aria-label` to the <a> tags inside of `bx-tab` component. Since the text inside the <a> tags is in a slot in the shadow dom, the links are being flagged for not having meaningful text. This PR fixes that. ### Changelog **Changed** - Adds `aria-label` with the link text to <a> tags inside bx-tab component. ### Steps for testing 1. Navigate to [Tabs in Carbon Web Components](https://carbon-web-components.s3.us-east.cloud-object-storage.appdomain.cloud/deploy-previews/11047/index.html?path=/story/components-tabs--default). 2. Click Open Canvas in New Tab box in upper left. 3. Have IBM Equal Access Accessibility checker installed as Chrome extension. Scan the page. 4. Note the lack of the original accessibility fail ("Interactive component with ARIA role 'tab' does not have a programmatically associated name"). 5. Compare by following the same steps at [Carbon Web Components v1 storybook](https://web-components-v1.carbondesignsystem.com/?path=/story/components-tabs--default). <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "test: e2e": Codesandbox examples and e2e integration tests --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
…arbon-design-system#11047) ### Related Ticket(s) Closes carbon-design-system#10921 ### Description This PR adds `aria-label` to the <a> tags inside of `bx-tab` component. Since the text inside the <a> tags is in a slot in the shadow dom, the links are being flagged for not having meaningful text. This PR fixes that. ### Changelog **Changed** - Adds `aria-label` with the link text to <a> tags inside bx-tab component. ### Steps for testing 1. Navigate to [Tabs in Carbon Web Components](https://carbon-web-components.s3.us-east.cloud-object-storage.appdomain.cloud/deploy-previews/11047/index.html?path=/story/components-tabs--default). 2. Click Open Canvas in New Tab box in upper left. 3. Have IBM Equal Access Accessibility checker installed as Chrome extension. Scan the page. 4. Note the lack of the original accessibility fail ("Interactive component with ARIA role 'tab' does not have a programmatically associated name"). 5. Compare by following the same steps at [Carbon Web Components v1 storybook](https://web-components-v1.carbondesignsystem.com/?path=/story/components-tabs--default). <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "test: e2e": Codesandbox examples and e2e integration tests --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
…arbon-design-system#11047) ### Related Ticket(s) Closes carbon-design-system#10921 ### Description This PR adds `aria-label` to the <a> tags inside of `bx-tab` component. Since the text inside the <a> tags is in a slot in the shadow dom, the links are being flagged for not having meaningful text. This PR fixes that. ### Changelog **Changed** - Adds `aria-label` with the link text to <a> tags inside bx-tab component. ### Steps for testing 1. Navigate to [Tabs in Carbon Web Components](https://carbon-web-components.s3.us-east.cloud-object-storage.appdomain.cloud/deploy-previews/11047/index.html?path=/story/components-tabs--default). 2. Click Open Canvas in New Tab box in upper left. 3. Have IBM Equal Access Accessibility checker installed as Chrome extension. Scan the page. 4. Note the lack of the original accessibility fail ("Interactive component with ARIA role 'tab' does not have a programmatically associated name"). 5. Compare by following the same steps at [Carbon Web Components v1 storybook](https://web-components-v1.carbondesignsystem.com/?path=/story/components-tabs--default). <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "test: e2e": Codesandbox examples and e2e integration tests --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
Related Ticket(s)
Closes #10921
Description
This PR adds
aria-label
to the tags inside ofbx-tab
component. Since the text inside the tags is in a slot in the shadow dom, the links are being flagged for not having meaningful text. This PR fixes that.Changelog
Changed
aria-label
with the link text to tags inside bx-tab component.Steps for testing