fix: inconsistent enabled switch state

Fixes the switch state by making it offset correctly instead of ballpark
with the wrong units
This commit is contained in:
FireIsGood 2024-02-25 02:53:50 -08:00
parent f714a51d9e
commit 760a7b02f7
No known key found for this signature in database
GPG key ID: 0ACFEAD4981C92DF

View file

@ -126,7 +126,9 @@
background-image: none;
&::before {
margin-inline-start: calc(#{$switch-width * 0.5} - var(#{$css-var-prefix}border-width));
margin-inline-start: calc(
#{$switch-width} - #{$switch-height} / 2 - var(#{$css-var-prefix}border-width) * 3
);
}
}