3 ms·
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 programmatical
by Rygu 12y ago
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.)
- zzarcon 12y agoThat's sounds good and easy, and can accomplish the goal, I'll open a PR for try your approach, thanks!
- RubyPinch 12y agono need to manually handle clicks, https://stackoverflow.com/questions/3680429/click-through-a-div-to-underlying-elements https://stackoverflow.com/questions/3680429/click-through-a-...
- zzarcon 12y agoYeah! is the approach I also follow in the library, you can check it here https://github.com/zzarcon/focusable/blob/master/app/focus-element-overlay.js#L165 https://github.com/zzarcon/focusable/blob/master/app/focus-e...