The checkmark SVG was nested inside a span, making peer-checked selectors ineffective since peer only works on siblings. Fix by moving the checkmark and indeterminate SVGs to be direct siblings of the hidden input element, allowing Tailwind's peer-checked and peer-data-[indeterminate] selectors to properly toggle visibility. |
||
|---|---|---|
| .. | ||
| Checkbox.test.tsx | ||
| Checkbox.tsx | ||
| tokens.ts | ||
| types.ts | ||
| variants.ts | ||