This javascript generates fake classes in the browser for any defined styles containing pseudo-classes like :focus or :hover.
You can use these classes in your styleguide to show styles that else would been hidden or need to be defined separately in your general production stylesheet.
- include the javascript-file at the bottom of your html-file.
- use fake-classes on your elements
fake-hoverfor hovering state of an elementfake-focusto show what an element looks when it is focusedfake-targetto show what an element looks when it is targetedfake-activefor the active state of a linkfake-visitedfor the visited state of a linkfake-validfor the valid state of an input elementfake-invalidfor the visited state of an input element
- set a data attribute
data-debug="true"on the script tag and see some debug output.
For an example look at tests/index.html
MIT License