-
Notifications
You must be signed in to change notification settings - Fork 160
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(ui-shell): a11y issue with side nav item #11044
fix(ui-shell): a11y issue with side nav item #11044
Conversation
Deploy preview created for package Built with commit: 5194beb2aa1d805702c176adbdffe16f96be62f0 |
Deploy preview created for package Built with commit: 5194beb2aa1d805702c176adbdffe16f96be62f0 |
Deploy preview created for package Built with commit: 5194beb2aa1d805702c176adbdffe16f96be62f0 |
Deploy preview created for package Built with commit: 5194beb2aa1d805702c176adbdffe16f96be62f0 |
Deploy preview created for package Built with commit: 5194beb2aa1d805702c176adbdffe16f96be62f0 |
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.
this looks good! But wondering if we can instead of adding it to the story add the role="button"
to the bx-side-nav-menu-item
directly like this: https://github.com/carbon-design-system/carbon-for-ibm-dotcom/blob/317d2bee88f8a704a56a4e10492a936fd29bdfe4/packages/carbon-web-components/src/components/tabs/tab.ts#L41C1-L45
Thanks @ariellalgilmore, I've updated the role as per your comment. |
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.
Thanks @sangeethababu9223 !! just need to update snapshots here as well in packages/web-components
since this will update the masthead
…223/carbon-for-ibm-dotcom into fix/ui-shell-a11y
### Related Ticket(s) Closes #10918 ### Description The bx-side-nav-menu-item tag in UI Shell component throws accessibility error. ### Changelog **Changed** - Added role attribute value button to the element. <!-- 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) --> <img width="1696" alt="Screenshot 2023-10-17 at 3 51 06 PM" src="https://github.com/carbon-design-system/carbon-for-ibm-dotcom/assets/58620134/e4264482-547e-4bc0-bc18-6bb5dde8b785">
) ### Related Ticket(s) Closes carbon-design-system#10918 ### Description The bx-side-nav-menu-item tag in UI Shell component throws accessibility error. ### Changelog **Changed** - Added role attribute value button to the element. <!-- 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) --> <img width="1696" alt="Screenshot 2023-10-17 at 3 51 06 PM" src="https://github.com/carbon-design-system/carbon-for-ibm-dotcom/assets/58620134/e4264482-547e-4bc0-bc18-6bb5dde8b785">
) ### Related Ticket(s) Closes carbon-design-system#10918 ### Description The bx-side-nav-menu-item tag in UI Shell component throws accessibility error. ### Changelog **Changed** - Added role attribute value button to the element. <!-- 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) --> <img width="1696" alt="Screenshot 2023-10-17 at 3 51 06 PM" src="https://github.com/carbon-design-system/carbon-for-ibm-dotcom/assets/58620134/e4264482-547e-4bc0-bc18-6bb5dde8b785">
Related Ticket(s)
Closes #10918
Description
The bx-side-nav-menu-item tag in UI Shell component throws accessibility error.
Changelog
Changed