Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Rygu
· 11y ago · 0 comments
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.)
Comments
[–]
zzarcon
11y ago
That's sounds good and easy, and can accomplish the goal, I'll open a PR for try your approach, thanks!
[–]
RubyPinch
11y ago
no need to manually handle clicks,
https://stackoverflow.com/questions/3680429/click-through-a-...
[–]
zzarcon
11y ago
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...