JSFiddle - React, Tailwind, and code Playground

by Hugo Vale Pereira

HTML

<div class="a">
  <div class="b">
    <input type="checkbox">
    
  <input type="checkbox">
  
  </div>
  <div class="c">Ola</div>
</div>

CSS

.a:has( :checked) .c{
  background: red;
}