Re:Focusable – Set a spotlight focus on DOM element
by Rygu on Sunday December 14, 2014 @08:22AM
(#8748232)
Create a 5th div that exactly overlays the focussed element, and give the overlay an inset box-shadow. (You may need to pass through mouse events programmatically.)
[ Parent
| on HN ]
Re:Focusable – Set a spotlight focus on DOM element
by zzarcon on Sunday December 14, 2014 @08:33AM
(#8748259)
That's sounds good and easy, and can accomplish the goal, I'll open a PR for try your approach, thanks!
Re:Focusable – Set a spotlight focus on DOM element
by RubyPinch on Sunday December 14, 2014 @08:39AM
(#8748265)
no need to manually handle clicks, https://stackoverflow.com/questions/3680429/click-through-a-...
Re:Focusable – Set a spotlight focus on DOM element
by zzarcon on Sunday December 14, 2014 @08:42AM
(#8748273)
Yeah! is the approach I also follow in the library, you can check it here https://github.com/zzarcon/focusable/blob/master/app/focus-e...