-
Notifications
You must be signed in to change notification settings - Fork 54
Remove aria-hidden from scrollable navigation #2875
Conversation
</StyledScrollableNav> | ||
); | ||
}; | ||
export const CanonicalScrollableNavigation = ({ children, dir }) => ( |
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.
This is now exactly the same as the Amp scrollable nav right? And we probably need the spread props for canonical too for event tracking? Should we just merge them?
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.
"When to use this component" and "Amp Menu Button Usage" sections in the Readme still have mentions of the AmpScrollableNavigation
Thanks Denis! |
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 to me
Looks good to me.Tested the canonical nav with voice over and voice control. |
Overall change:
Apple has released a new Accessibility feature with macOS Catalina and iOS 13, called Voice Control, that allows you to control your device entirely just with your voice.
Unfortunately, when applying
aria-hidden: true
to an element, this can't be reached using Voice Control speaking an action, such as "Tap Home".For this reason, we should remove the
aria-hidden
from the navigation and also thetab-index:-1
from the links as everything will be visible now to the users.Code changes:
aria-hidden:true
to the scrollable navigationtab-index:-1
to linksCanonicalScrollableNavigation
andAmpScrollableNavigation
intoScrollableNavigation
isScrollable
proparia-hidden