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(tabs): updates role to tab and moves aria-selected to li #4451

Merged
merged 1 commit into from
Oct 24, 2019
Merged

fix(tabs): updates role to tab and moves aria-selected to li #4451

merged 1 commit into from
Oct 24, 2019

Conversation

abbeyhrt
Copy link
Contributor

Closes #1942

This was done during the mob programming by @aledavila and me! 🎉
It updates the role of the li in each tab to tab so that aria-selected becomes valid aria. It also adds aria-disabled on disabled tabs.

Changelog

Changed

  • role="presentation" -> role="tab"

Removed

  • aria-selected on the a

Testing / Reviewing

Run DAP on the vanilla Tabs component and verify that there an no violations associated with the component (there will be some coming from the environment so ignore those)

@abbeyhrt abbeyhrt requested a review from a team as a code owner October 24, 2019 16:13
@ghost ghost requested review from aledavila and asudoh October 24, 2019 16:14
@abbeyhrt abbeyhrt requested a review from snidersd October 24, 2019 16:14
@netlify
Copy link

netlify bot commented Oct 24, 2019

Deploy preview for the-carbon-components ready!

Built with commit a3fc50e

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

@netlify
Copy link

netlify bot commented Oct 24, 2019

Deploy preview for carbon-elements ready!

Built with commit a3fc50e

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

@netlify
Copy link

netlify bot commented Oct 24, 2019

Deploy preview for carbon-components-react ready!

Built with commit a3fc50e

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

Copy link
Contributor

@aledavila aledavila left a comment

Choose a reason for hiding this comment

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

🎉

@snidersd
Copy link

Retested with DAP Sept 2019 WCAG 2.1 ruleset and there are no violations.

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 @abbeyhrt!

@asudoh asudoh merged commit 9c354fa into carbon-design-system:master Oct 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AVT 1 - Carbon X Tabs Component DAP Violation
4 participants