skip to Main Content

Tailwind CSS: change parent label style when a child checkbox is checked

I want to add the add a border to my checkbox container when the checkbox is checked. Currently, I have this: <label htmlFor="choose-me" className= 'flex w-fit items-center justify-evely p-3 border-2 border-grey-4 text-grey-8 peer-checked:bg-light-indigo peer-checked:text-medium-indigo peer-checked:border-medium-indigo'> <input type="checkbox" id="choose-me" className="peer mr-3…

VIEW QUESTION
Back To Top
Search