Skip to content

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

@alexwbbr

Description

@alexwbbr

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 })}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions