Skip to content

Commit

Permalink
fix(checkbox): incorrect hover style when in error state
Browse files Browse the repository at this point in the history
  • Loading branch information
eTallang committed Dec 19, 2024
1 parent df93ecc commit ea1517c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/lib/components/checkbox/checkbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,15 @@ label.cx-checkbox:has(input:checked) .cx-checkbox__checkmark {
}
}

label.cx-checkbox:has(input:invalid) .cx-checkbox__checkmark {
--border-color: var(--cx-color-signal-danger);
--border-thickness: 2px;
label.cx-checkbox:has(input:invalid) {
.cx-checkbox__checkmark {
--border-color: var(--cx-color-signal-danger);
--border-thickness: 2px;
}

&:hover .cx-checkbox__checkmark {
--border-color: transparent;
}
}

label.cx-checkbox.cx-checkbox--indeterminate {
Expand Down

0 comments on commit ea1517c

Please sign in to comment.