-
Notifications
You must be signed in to change notification settings - Fork 86
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
scale-tab-panel tabindex #2209
Comments
hi @nikolab-pn, the tab-index is hard coded to |
Hi @felix-ico, we received this issue from accessibility review. Maybe it can stay as is with an option to disable it. As per WAI it is OK to have tabIndex 0 if there is no focusable elements in tabpanel but it's not needed if there are. Under Accessibility Features, 2nd bulletpoint. |
@nikolab-pn i added a PR here #2215, i had to add a prop tabbablePanel (don't really like that name) that sets
However, just after opening the PR I had another look at the link you posted and i'm not 100% sure this is actually what they are saying there:
So the way i understand it, this new tabbablePanel prop should be set to false only if all panels first child element is a focusable element. |
Good catch. We have both cases so I will need to be carefull. |
this has just been merged and will be available with beta.144 |
Scale Version
@telekom/scale-components 3.0.0-beta.143
Framework and version
@telekom/scale-components-react 3.0.0-beta.143
Current Behavior
scale-tab-panel has tabindex="0", if tabindex is set to -1, then content inside pannel is not reachable with tab key
Expected Behavior
scale-tab-panel should not have tabindex
Code Reproduction
CodeSandbox
The text was updated successfully, but these errors were encountered: