CSS :focus-within

Using :hover to display additional information or elements is a very useful technique but a big drawback to using the hover pseudo-class is that they are usually not accessibility-friendly. Not everyone uses a mouse and some users have visual impairments, so they rely on screen readers or the keyboard — two functionality that don’t technically […]
The post CSS :focus-within appeared first on David Walsh Blog.

Link: https://davidwalsh.name/css-focus-within