Skip to content
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

Conversation

emyarod
Copy link
Member

@emyarod emyarod commented Oct 8, 2019

Closes #4243

This PR removes the role attribute from completed progress steps and adds the aria-disabled attribute to disabled progress steps

Testing / Reviewing

Ensure the reported DAP violations are no longer present in the progress indicator component

@emyarod emyarod requested a review from a team as a code owner October 8, 2019 14:19
@ghost ghost requested review from abbeyhrt and joshblack October 8, 2019 14:19
@netlify
Copy link

netlify bot commented Oct 8, 2019

Deploy preview for the-carbon-components ready!

Built with commit 1d6d2e0

https://deploy-preview-4255--the-carbon-components.netlify.com

@netlify
Copy link

netlify bot commented Oct 8, 2019

Deploy preview for carbon-components-react ready!

Built with commit 1d6d2e0

https://deploy-preview-4255--carbon-components-react.netlify.com

@netlify
Copy link

netlify bot commented Oct 8, 2019

Deploy preview for carbon-elements ready!

Built with commit 1d6d2e0

https://deploy-preview-4255--carbon-elements.netlify.com

<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}>
Copy link
Contributor

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.

Copy link
Member Author

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

@emyarod emyarod force-pushed the 4243-progress-indicator-dap-violations branch from 82bf947 to a841b94 Compare October 8, 2019 17:53
@emyarod emyarod requested a review from abbeyhrt October 8, 2019 17:53
@emyarod emyarod changed the title fix(ProgressIndicator): add aria-label and aria-disabled attributes fix(ProgressIndicator): remove role attribute from checkmark svg Oct 8, 2019
Copy link
Contributor

@abbeyhrt abbeyhrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! 🎉

Copy link
Contributor

@asudoh asudoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 - Thanks @emyarod!

@asudoh asudoh merged commit dcff64c into carbon-design-system:master Oct 9, 2019
@emyarod emyarod deleted the 4243-progress-indicator-dap-violations branch October 9, 2019 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AVT 1 - Progress Indicator has DAP violations
4 participants