-
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(ProgressIndicator): remove role
attribute from checkmark svg
#4255
fix(ProgressIndicator): remove role
attribute from checkmark svg
#4255
Conversation
Deploy preview for the-carbon-components ready! Built with commit 1d6d2e0 https://deploy-preview-4255--the-carbon-components.netlify.com |
Deploy preview for carbon-components-react ready! Built with commit 1d6d2e0 https://deploy-preview-4255--carbon-components-react.netlify.com |
Deploy preview for carbon-elements ready! Built with commit 1d6d2e0 |
<path d="M 7, 7 m -7, 0 a 7,7 0 1,0 14,0 a 7,7 0 1,0 -14,0" /> | ||
<title>{description}</title> | ||
</svg> | ||
); | ||
} | ||
if (complete) { | ||
return ( | ||
<CheckmarkOutline16 role="img"> | ||
<CheckmarkOutline16 role="img" {...rest}> |
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.
Since the icons are aria-hidden by default, i believe, instead of adding {...rest}
it might be better to remove role="img"
and the aria-label
added to SVGIcon. Since label
is used twice, VO reads it twice and no longer reads the description. This change also removes the DAP violation.
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.
removed the role
attribute and reverted aria-label changes
82bf947
to
a841b94
Compare
role
attribute from checkmark svg
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.
Looks great! 🎉
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 @emyarod!
Closes #4243
This PR removes the
role
attribute from completed progress steps and adds thearia-disabled
attribute to disabled progress stepsTesting / Reviewing
Ensure the reported DAP violations are no longer present in the progress indicator component