I made a tabbable div
with the tabindex attribute to make hidden content available.
Currently, when you click with the mouse, the div
gets the browser style :focus
.
Is there a way for this tabbable to only have a focus style when accessing via keyboard? By default, this anchor element matters.
div
with tabindex='0'
gets browser focus styles on mouse and keyboard interaction- Anchor gets browser focus styles on the keyboard only
I would like the div to emulate the anchor. Making him an anchor is not an option, but unfortunately.
Any help would be great, I'm really at a loss.
Edit -> Here is an example: http://jsfiddle.net/LvXyL/2/
source share