Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(forms): switch rendering on some platforms #1612

Merged
merged 3 commits into from
Nov 14, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions scss/forms/_form-check.scss
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
.form-switch {
// Boosted mod
--#{$boosted-prefix}switch-gradient: #{linear-gradient(to right, $black $form-switch-bg-square-size, transparent)};

min-height: $form-switch-width * .5;
padding-left: $form-switch-padding-start;

Expand All @@ -158,7 +159,7 @@
background-image: $form-switch-bg-image, var(--#{$boosted-prefix}switch-gradient);
filter: $invert-filter; // Boosted mod
background-position: $form-switch-bg-position, 0 0;
background-size: $form-switch-bg-size, $form-switch-bg-square-size; // Get a 1px separation
background-size: $form-switch-bg-size, $form-switch-bg-square-size 100%; // Get a 1px separation
border-color: $white; // Boosted mod
outline-color: $white; // Boosted mod
outline-offset: $spacer; // Boosted mod
Expand All @@ -173,11 +174,11 @@
@if $enable-gradients {
background-image: $form-switch-checked-bg-image, var(--#{$prefix}gradient), var(--#{$boosted-prefix}switch-gradient);
background-position: $form-switch-checked-bg-position, 100%, 100% 0;
background-size: $form-switch-checked-bg-size, auto, $form-switch-bg-square-size;
background-size: $form-switch-checked-bg-size, auto, $form-switch-bg-square-size 100%;
} @else {
background-image: $form-switch-checked-bg-image, var(--#{$boosted-prefix}switch-gradient);
background-position: $form-switch-checked-bg-position, 100% 0;
background-size: $form-switch-checked-bg-size, $form-switch-bg-square-size;
background-size: $form-switch-checked-bg-size, $form-switch-bg-square-size 100%;
}

&:active,
Expand Down