Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
10921: add aria-label to anchor tags inside bx-tabs for accessbility (#…
…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) -->
- Loading branch information