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: add warnings to the button component for accessibility #1453

Closed
wants to merge 1 commit into from

Conversation

Chisomchima
Copy link
Member

@Chisomchima Chisomchima commented Feb 15, 2024

Implements JIRA_ISSUE_ID


Description

Implemented JIRA_ISSUE_ID (https://dhis2.atlassian.net/browse/LIBS-565) by updating the Button component to handle developer warning there is no button label and there is no aria-label


Known issues

  • None

Checklist

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

All points above should be relevant for feature PRs. For bugfixes, some points might not be relevant. In that case, just check them anyway to signal the work is done.


Screenshots

  • None

Additional Notes

  • Updated the Button component to destructure title and ariaLabel from otherProps and apply them to the <button> element.
  • Ensured that title and aria-label attributes are correctly passed to the rendered <button> element.
  • Modified the component to handle additional attributes passed as otherProps while maintaining accessibility.

supporting text

@Chisomchima Chisomchima self-assigned this Feb 15, 2024
@Chisomchima Chisomchima requested a review from a team as a code owner February 15, 2024 12:23
@dhis2-bot
Copy link
Contributor

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

@dhis2-bot dhis2-bot temporarily deployed to netlify February 15, 2024 12:27 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants