Hacker News new | past | comments | ask | show | jobs | submit login

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.)



That's sounds good and easy, and can accomplish the goal, I'll open a PR for try your approach, thanks!



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...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: