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(ui-shell): a11y issue with side nav item #11044

Merged

Conversation

sangeethababu9223
Copy link
Member

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.
Screenshot 2023-10-17 at 3 51 06 PM

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Oct 17, 2023

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Oct 17, 2023

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Oct 17, 2023

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Oct 17, 2023

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Oct 17, 2023

Copy link
Member

@ariellalgilmore ariellalgilmore left a 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

@sangeethababu9223
Copy link
Member Author

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.

Copy link
Member

@ariellalgilmore ariellalgilmore left a 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

@ariellalgilmore ariellalgilmore added the Ready to merge Label for the pull requests that are ready to merge label Oct 26, 2023
@kodiakhq kodiakhq bot merged commit 9eb94ea into carbon-design-system:main Oct 26, 2023
kennylam pushed a commit that referenced this pull request Oct 28, 2023
### 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">
kennylam pushed a commit to kennylam/carbon-for-ibm-dotcom that referenced this pull request Dec 4, 2023
)

### 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">
kennylam pushed a commit to kennylam/carbon-for-ibm-dotcom that referenced this pull request Jun 11, 2024
)

### 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">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: carbon web components Ready to merge Label for the pull requests that are ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ui-shell]: IBM Accessibility violation error
3 participants