Skip to content

Commit

Permalink
UX: Fix checkbox slider (#23412)
Browse files Browse the repository at this point in the history
  • Loading branch information
CvX committed Sep 5, 2023
1 parent 8d7c4ae commit 1ca4e72
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/assets/stylesheets/common/components/d-toggle-switch.scss
Expand Up @@ -54,7 +54,7 @@
display: inline-block;
cursor: pointer;
background: var(--primary-low-mid);
border-radius: 16px;
border-radius: var(--toggle-switch-height);
width: var(--toggle-switch-width);
height: var(--toggle-switch-height);
margin-right: 0.5em;
Expand Down Expand Up @@ -82,10 +82,10 @@
&__checkbox-slider::before {
background: var(--secondary);
border-radius: 50%;
width: calc(var(--toggle-switch-width) / 2.5);
height: calc(var(--toggle-switch-width) / 2.5);
top: 3.5px;
left: 4px;
width: calc(var(--toggle-switch-height) * 0.75);
height: calc(var(--toggle-switch-height) * 0.75);
top: calc(var(--toggle-switch-height) * 0.125);
left: calc(var(--toggle-switch-height) * 0.125);
transition: left 0.25s;
}
}

0 comments on commit 1ca4e72

Please sign in to comment.