Closed dascritch closed 2 years ago
The recommended method is… ugly https://accessibility.18f.gov/hidden-content/ but I will.
.sr-hide {
overflow: hidden;
clip: rect(0 0 0 0);
height: 1px;
width: 1px;
margin: -1px;
}
#skip-links {
height: 0px;
overflow: hidden;
}
#skip-links:focus-within {
height: auto;
}
/* remove .skip-links a */
https://github.com/GoogleChrome/lighthouse/issues/12761
<nav role="navigation">
:role="navigation"
is implicit<nav>
should be ID'd , to visibly hide (and notdisplay : none
) only on the ID<ul role="navigation">
should be<nav><ul>