-
Notifications
You must be signed in to change notification settings - Fork 15
issue 2890 fix #39
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
issue 2890 fix #39
Conversation
@veshu @codeMinter can anyone please review this? |
@@ -71,6 +71,8 @@ export default function Button({ | |||
onClick={onClick} | |||
onMouseDown={onMouseDown} | |||
type={type} | |||
tabIndex={0} | |||
aria-label={`${children}`} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aria-label must be a string. Children is a node (can be span/div/etc).
@@ -71,6 +71,8 @@ export default function Button({ | |||
onClick={onClick} | |||
onMouseDown={onMouseDown} | |||
type={type} | |||
tabIndex={0} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again, I don't think it's necessary to force a "translation" of {0} to ="0" when you already know it will be 0. tabIndex="0" should be alright
No description provided.