-
Notifications
You must be signed in to change notification settings - Fork 156
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-extended): change anchor-based tabs to button-based tabs #8365
fix(tabs-extended): change anchor-based tabs to button-based tabs #8365
Conversation
Deploy preview created for package Built with commit: 03aea7087ab404ff3add7dee31135754430f8e6a |
Deploy preview created for package Built with commit: 03aea7087ab404ff3add7dee31135754430f8e6a |
Deploy preview created for package Built with commit: 03aea7087ab404ff3add7dee31135754430f8e6a |
Deploy preview created for package Built with commit: 03aea7087ab404ff3add7dee31135754430f8e6a |
Deploy preview created for package Built with commit: 03aea7087ab404ff3add7dee31135754430f8e6a |
Deploy preview created for package Built with commit: faa23f8889003a2ba65e6fc7658ebf4a6b5d768b |
Deploy preview created for package Built with commit: 5c25157f00c3882470307c3ed7baf1223cb2e043 |
Hey @andy-blum , I tested this on iOS and I'm seeing that we're able to navigate between tabs with VoiceOver on. I noticed that when a tab is focused and if the tab has a tooltip, he focus area includes the tooltip even if the tab is not active yet. Is this the expected behavior for tabs with tooltips? While Tab 1 is active but with Tab 2 selected, you can see the focus dips below the tab itself Here Tab 2 is active and you can see that the focus is capturing the tooltip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @andy-blum! Just a few small things.
packages/styles/scss/components/tabs-extended/_tabs-extended.scss
Outdated
Show resolved
Hide resolved
packages/styles/scss/components/tabs-extended/_tabs-extended.scss
Outdated
Show resolved
Hide resolved
packages/styles/scss/components/tabs-extended/_tabs-extended.scss
Outdated
Show resolved
Hide resolved
Hey @andy-blum , I'll wait to re-review until Kenny's suggested changes are in, but I checked again on tablet with VO and it looks like the change to the tab selection was resolved - yay! I'll keep an eye out for the other changes and then run through it again then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great @andy-blum , thanks for making the change!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall! I just have a few suggestions related to keeping with using carbon tokens for color and spacings.
packages/styles/scss/components/tabs-extended/_tabs-extended.scss
Outdated
Show resolved
Hide resolved
packages/styles/scss/components/tabs-extended/_tabs-extended.scss
Outdated
Show resolved
Hide resolved
packages/styles/scss/components/tabs-extended/_tabs-extended.scss
Outdated
Show resolved
Hide resolved
Co-authored-by: Putra Bonaccorsi <[email protected]>
Co-authored-by: Putra Bonaccorsi <[email protected]>
Co-authored-by: Putra Bonaccorsi <[email protected]>
I think this will need to be merged before I can finish my related PR: #8394 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for applying my suggestions!
Related Ticket(s)
Fixes #8357
Description
Fixes an issue where iOS on tablet couldn't use tabs.
Changelog
Changed
<a>
elements to<button>
elements in tabs so iOS devices getting the desktop-style layout can navigate with voiceover