How to replicate this logic?

Hi guys,

How do I replicate the logic shown in the screenshot in CSS?

Basically, I want to check if the input is selected. If it is, then select the parent div
image.png
Was this page helpful?