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