Skip to content

Commit

Permalink
fix(style): use em unit for Switch/Thumbs atoms (#11855)
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner authored Sep 25, 2024
1 parent 8e3a00f commit e2a4910
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions client/src/ui/atoms/switch/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
height: 0;
margin: 0;
opacity: 0;
width: 3rem;
width: 3em;

&:checked + .slider {
background-color: var(--text-link);
Expand All @@ -29,10 +29,10 @@
background-color: var(--text-secondary);
border-radius: 1.5em;
cursor: pointer;
height: 1.5rem;
height: 1.5em;
position: absolute;
transition: 0.4s;
width: 3rem;
width: 3em;

&:before {
background-color: var(--background-primary);
Expand All @@ -48,6 +48,6 @@
}

.label {
margin-left: 0.5rem;
margin-left: 0.5em;
}
}
4 changes: 2 additions & 2 deletions client/src/ui/atoms/thumbs/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
align-items: center;
display: flex;
flex-direction: row;
gap: 0.5rem;
height: 1.5rem;
gap: 0.5em;
height: 1.5em;

.confirmation {
animation-duration: 2.5s;
Expand Down

0 comments on commit e2a4910

Please sign in to comment.