Last active
June 16, 2016 15:39
-
-
Save chrisdc/55c3573fb4cab146e387 to your computer and use it in GitHub Desktop.
An alternative navigation.js that makes dropdown menus keyboard accessible in _s.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* At the time of writing this is the basic css required to make dropdowns keyboard accessible in _s. | |
* As a general rule theme authors should add equivalent .focus selectors to any :hover selectors that target dropdowns. | |
*/ | |
.main-navigation ul li.focus > ul { | |
left: auto; | |
} | |
.main-navigation ul ul li.focus > ul { | |
left: 100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment