Skip to content

Commit

Permalink
refactor: use :enabled instead of :not(:disabled) (#1067)
Browse files Browse the repository at this point in the history
  • Loading branch information
rabelloo authored Oct 14, 2021
1 parent 74fa356 commit 7672ba5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/components/checkbox/checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
}
}

// indicating invalid and not [disabled] input
.ods-checkbox.-invalid:not(:disabled),
.ods-checkbox.-touched:invalid:not(:disabled) {
// indicating invalid and :enabled input
.ods-checkbox.-invalid:enabled,
.ods-checkbox.-touched:invalid:enabled {
// and [checked] indicator
&:checked + .ods-input-indicator::after {
border-color: helpers.color('content-always-light');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@

> .ods-checkbox,
> .ods-radio {
&:not(:disabled) + .ods-input-indicator {
&:enabled + .ods-input-indicator {
background-color: helpers.color('background-input');
}
}
Expand Down

1 comment on commit 7672ba5

@vercel
Copy link

@vercel vercel bot commented on 7672ba5 Oct 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.