This repository was archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
tabs: accessibility issue with tab headers #9401
Copy link
Copy link
Closed
Labels
P1: urgentUrgent issues that should be addressed in the next minor or patch release.Urgent issues that should be addressed in the next minor or patch release.a11yThis issue is related to accessibilityThis issue is related to accessibilityg3: reportedThe issue was reported by an internal or external product team.The issue was reported by an internal or external product team.needs: demoA CodePen demo or GitHub repository is needed to demonstrate the reproduction of the issueA CodePen demo or GitHub repository is needed to demonstrate the reproduction of the issueresolution: fixed
Milestone
Description
I am trying to create a web page using md-tabs component.
My tab control has 4 tabs. When I press the tab key on these tab items, I have noticed, the focus goes to the tabs in dummy tabs first and then comes to the first visible tab. So for my tab component with 4 tabs, it comes to the first tab after pressing tab key 5 times
What is the expected behavior?
Tabs should work in sequential manner and it should not have a unwanted , hidden tabstops.
After looking into the
code lines
it seems that the reason behind extra tab stops is because of dummy tabs
CodePen (or steps to reproduce the issue): *
<md-tabs md-selected="selectedIndex" layout="column" class="tabs" md-border-bottom >
<md-tab ng-repeat="tab in vm.tabs" layout="column" tabindex="0" >
<md-tab-label >
<span class="tabHeader" aria-label="{{::tab.title}}" >{{::tab.title}}</span>
</md-tab-label>
<md-tab-body >
<div bindonce ng-repeat="s in ::tab.tabItems" style="padding-left:25px;background-color: white;padding-bottom:20px">
<div aria-label="{{::s.text}}" tabindex="0">
<h3 aria-hidden="true" tabindex="-1">{{::s.text}}</h3>
</div>
</div>
</md-tab-body>
</md-tab>
</md-tabs>
Angular Versions: *
Angular Version:
v1.5.7Angular Material Version:
v1.0.9
Additional Information:
- `Browser Type: Chrome
- `Browser Version: 52
- `OS: Win 10
Stack Traces:
Shortcut to create a new CodePen Demo.
Note: *
indicates required information. Without this information, your issue may be auto-closed.
Do not modify the titles or questions. Simply add your responses to the ends of the questions.
Add more lines if needed.
Metadata
Metadata
Assignees
Labels
P1: urgentUrgent issues that should be addressed in the next minor or patch release.Urgent issues that should be addressed in the next minor or patch release.a11yThis issue is related to accessibilityThis issue is related to accessibilityg3: reportedThe issue was reported by an internal or external product team.The issue was reported by an internal or external product team.needs: demoA CodePen demo or GitHub repository is needed to demonstrate the reproduction of the issueA CodePen demo or GitHub repository is needed to demonstrate the reproduction of the issueresolution: fixed