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): remove required role prop #6964

Conversation

emyarod
Copy link
Member

@emyarod emyarod commented Oct 2, 2020

Closes #6931

This PR removes the role prop requirement on the Tabs component to avoid a11y testing issues with navigation landmarks

Testing / Reviewing

Confirm that role="navigation" prop is no longer added by default to the Tabs component

@netlify
Copy link

netlify bot commented Oct 2, 2020

Deploy preview for carbon-elements ready!

Built with commit 498e794

https://deploy-preview-6964--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Oct 2, 2020

Deploy preview for carbon-components-react ready!

Built without sensitive environment variables with commit 498e794

https://deploy-preview-6964--carbon-components-react.netlify.app

Copy link
Collaborator

@tw15egan tw15egan left a comment

Choose a reason for hiding this comment

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

LGTM 👍 ✅

@kodiakhq kodiakhq bot merged commit e04c7cc into carbon-design-system:master Oct 6, 2020
@carmacleod
Copy link
Contributor

I went to https://deploy-preview-6964--carbon-components-react.netlify.app/?path=/story/tabs--default
and I still see role="navigation" when I look at the DOM for the Tabs control.
Am I looking at the wrong link?

image

@tw15egan
Copy link
Collaborator

tw15egan commented Oct 6, 2020

@carmacleod looks like it's a leftover knob in the storybook that was adding it. Pushed up a fix to remove that: #6981

@emyarod emyarod deleted the 6931-remove-navigation-role-from-tabs branch October 6, 2020 18:12
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.

Incomplete fix: do not use nav or navigation role in Tabs component
4 participants