DEV Community

Discussion on: Grab your user's attention with the :focus-within CSS selector

Collapse
 
devaicom profile image
devAicom

Hi,
Very interesting article, and a real plus for end user.
I have a small question about this technique : how would you apply it only on forms. I mean : i want to make the current form more visible (with a pseudo transparent element on body to "mask" anything else), but form inputs are not the only elements which can gain focus : links can too, and i don't want my page to turn dark at any click.
Any idea ?
Thanks