-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix(number-input): removes role from icon and adds conditional aria label #4816
Conversation
Deploy preview for the-carbon-components ready! Built with commit 623c4f8 https://deploy-preview-4816--the-carbon-components.netlify.com |
Deploy preview for carbon-components-react ready! Built with commit 623c4f8 https://deploy-preview-4816--carbon-components-react.netlify.com |
Deploy preview for carbon-elements ready! Built with commit 623c4f8 |
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.
LGTM 👍 - Thanks @abbeyhrt!
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.
👍
Closes #4532
This PR removes the unnecessary
role="img"
fromWarningFilled16
. To avoid both a label and an aria label on theinput
, it changes thearia-label
on the input to only be applied when there is nolabel
provided.Changelog
New
aria-label
on input based on labelChanged
Removed
role="img"
onWarningFilled16
Testing / Reviewing
Check to make sure that NumberInput has no DAP violations