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

feat(menu-item): add ariaLabel prop to use if label prop is not a string #1638

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

KaiVandivier
Copy link
Contributor

@KaiVandivier KaiVandivier commented Nov 25, 2024

Implements LIBS-715


Description

If label is not a string, the aria-label attribute ends up as [object Object]. An ariaLabel prop on the MenuItem is added to provide a better value for aria-label in that case


Checklist

  • API docs are generated
  • Tests were added
  • Storybook demos were added

@KaiVandivier KaiVandivier requested a review from a team as a code owner November 25, 2024 15:29
@KaiVandivier KaiVandivier requested review from a team and HendrikThePendric November 25, 2024 15:30
Copy link
Member

@amcgee amcgee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dhis2-bot
Copy link
Contributor

🚀 Deployed on https://pr-1638--dhis2-ui.netlify.app

@dhis2-bot dhis2-bot temporarily deployed to netlify November 25, 2024 15:33 Inactive
@KaiVandivier KaiVandivier merged commit 2c1c065 into master Nov 25, 2024
19 checks passed
@KaiVandivier KaiVandivier deleted the libs-715-menu-item-aria-label branch November 25, 2024 16:12
dhis2-bot added a commit that referenced this pull request Nov 25, 2024
# [10.1.0](v10.0.4...v10.1.0) (2024-11-25)

### Features

* **menu-item:** add ariaLabel prop to use if label prop is not a string ([#1638](#1638)) ([2c1c065](2c1c065))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 10.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants