-
Notifications
You must be signed in to change notification settings - Fork 3.4k
fix(tabs) dummy tabs should not have acccessibilty roles #9452
Conversation
I'm not understanding why the spec tests are actively checking for md-dummy-tab to have a role='tab'. |
I'm not sure either. It could have something to do with them forwarding focus to the real tabs, but I'm just guessing. |
@clshortfuse Can you do some testing by removing the |
@topherfangio I wouldn't say it works properly because I found a keyboard bug with dynamic heights in master where you can't navigating while the animation is running, but yes, keyboard works like master. Travis Fails because of a spec test is expecting a dummy tab to have a role. I'm not sure why this would be expected behavior. I'll need some clarification about this. material/src/components/tabs/tabs.spec.js Line 357 in 8758488
|
@clshortfuse Is the dynamic height bug you mentioned fixed by the dummy tabs having the role? |
@topherfangio I discovered that keyboard events aren't processed while a tab is in a transition phase and dynamic height is on. In other words, go to demo and spam right, enter and right, enter. It's unrelated to this PR, just something I found. I'm going to just remove the I will say, there is another way to solve the issue, which is to set a dummy tab with a hidden attribute. Technically, dummy tabs are hidden and it may be a better solution, but it creates a lot more problems than just removing the |
f49e3c7
to
ecb4d12
Compare
Spec tests added. OK with ChromeVox. JAWS (Windows)
NVDA (Windows)
VoiceOver (Mac)
TalkBack (Android)
|
* Remove role="tab" from dummy tabs Fixes angular#9450
ecb4d12
to
f7ae50d
Compare
Fixes #9450