Skip to content

Commit

Permalink
Make checkbox dependent on the accent color (consistent to the switch)
Browse files Browse the repository at this point in the history
  • Loading branch information
HDinger committed Mar 8, 2024
1 parent 7bee632 commit e134e08
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions frontend/src/app/spot/styles/sass/components/checkbox.sass
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
height: $spot-spacing-1
width: $spot-spacing-1
border-radius: 3px
border: 1px solid $spot-color-main
border: 1px solid var(--control-checked-color)
cursor: pointer

&::before,
Expand All @@ -39,10 +39,10 @@
&--input:indeterminate + &--fake::before
width: 8px
height: 2px
background-color: $spot-color-main
background-color: var(--control-checked-color)

&--input:checked + &--fake
background-color: $spot-color-main-light
background-color: var(--control-checked-color--minor1)

&--input:checked + &--fake::before,
&--input:checked + &--fake::after
Expand All @@ -52,13 +52,13 @@
&--input:checked + &--fake::before
width: 2px
height: 5px
background-color: $spot-color-main
background-color: var(--control-checked-color)
transform: translateX(-2.3px) translateY(1.4px) rotate(-40deg)

&--input:checked + &--fake::after
width: 8px
height: 2px
background-color: $spot-color-main
background-color: var(--control-checked-color)
transform: translateX(1px) rotate(-45deg)

&--input:disabled + &--fake
Expand Down

0 comments on commit e134e08

Please sign in to comment.