What fresh hell is THIS now? - Patrick Lauke
[kara.franco] Hi everyone! I have a client that would like to implement Skip Navigation Links on their site's interior pages for their users who use Browesaloud and other screenreaders.
I found some information around about how to add the links (from Webaim: http://webaim.org/techniques/skipnav/ ), however wanted to know if anyone has some best practice or advice before I start diving in implementing the links.
Any insight is super appreciated!
.skip-link { clip: rect(0 0 0 0); height: 1px; margin: -1px; position: absolute; overflow: hidden; width: 1px; } .skip-link:focus { clip: auto; height: auto; margin: 0; position: static; overflow: visible; width: auto; }
[rselzer] here's the SCSS I use to emulate that
#skip, .skip-to-content { font-size: 2em; padding: .2em .4em; background-color: #fff; color: #000; position: fixed; z-index: 999999999999; top: 0px; left: .8em; display: inline-block; @include animated(); transform: translateY(-100%); &:focus { transform: translateY(0); } }
I like to make it super big so that partially sited users will see it when using their keyboard to focus it