We can create global outline style and try to use :focus-within { outline: auto; }. This should apply outline style to parent element if some child is focused. With global focus style we can control how it looks like so we can get rid of boxShadows which are hard to use.
Also we need to check whether outline: auto works in all browsers.
We can create global outline style and try to use
:focus-within { outline: auto; }
. This should apply outline style to parent element if some child is focused. With global focus style we can control how it looks like so we can get rid ofboxShadows
which are hard to use.Also we need to check whether
outline: auto
works in all browsers.