The `:focus-within` Pseudo Class
Category: :focus-within, Link, parent selectors
Nice find by Ian Devlin:
:focus-withinpseudo class becomes active when an element itself has focus or if any of its descendants does.
Selecting a parent element based on children is lonnng awaited. The crown jewel of that is
:has(). I wonder if that’s getting closer.
Direct Link to Article — Permalink
The `:focus-within` Pseudo Class is a post from CSS-Tricks
LEAVE A REPLY
You must be logged in to post a comment.