Skip to content

Commit

Permalink
fix(core): checkbox component "invalid" state styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Julius Osokinas committed Jan 26, 2021
1 parent a2a04cc commit 772e9f3
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions packages/core/src/components/checkbox/checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,19 @@

// indicating invalid and not [disabled] input
.ods-checkbox.-invalid:not(:disabled) {
// and [checked] or [indeterminate]
// and [checked] indicator
&:checked + .ods-input-indicator::after {
border-color: helpers.color('content-always-light');
}
// or [indeterminate] indicator
&:indeterminate + .ods-input-indicator::after {
background-color: helpers.color('content-always-light');
}

// also [checked] or [indeterminate] outline
&:checked + .ods-input-indicator::before,
&:indeterminate + .ods-input-indicator::before {
background-color: helpers.color('content-negative');
background-color: helpers.color('background-negative');
}
}

Expand Down

0 comments on commit 772e9f3

Please sign in to comment.