Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.

Menu Accessibility #51

Open
lynt-smitka opened this issue May 6, 2020 · 0 comments
Open

Menu Accessibility #51

lynt-smitka opened this issue May 6, 2020 · 0 comments

Comments

@lynt-smitka
Copy link

You can improve menu accessibility if you use visually hidden instead of display:none:

@media (max-width: 1000px){
.top-navigation .main-navigation {
display: inline-block;
border-bottom: none;
position: absolute !important;
height: 1px;
width: 1px;
overflow: hidden;
clip: rect(1px, 1px, 1px, 1px);
white-space: nowrap;
}
}

Reference: https://a11yproject.com/posts/how-to-hide-content/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant