Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Button component does not render the aria-label attribute properly #618

Closed
alexwbbr opened this issue Apr 11, 2024 · 0 comments
Closed

Button component does not render the aria-label attribute properly #618

alexwbbr opened this issue Apr 11, 2024 · 0 comments
Assignees
Labels
a11y a11y
Milestone

Comments

@alexwbbr
Copy link
Collaborator

Describe the bug
When trying to add an aria-label to the button it is not being rendered properly. If there is a label property on the button, the aria label is not rendered for some reason.

Expected behavior
When using the aria-label property I expect it to be rendered as an attribute

Line 153 in the button.tsx file
{...(label ? {} : { 'aria-label': ariaLabel })}

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

No branches or pull requests

2 participants