style: Switch background should not be transparent (#35103)

This commit is contained in:
afc163 2022-04-20 09:48:18 +08:00 committed by GitHub
parent 12d98f9ed6
commit f180ec6df5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,8 @@
height: @switch-height; height: @switch-height;
line-height: @switch-height; line-height: @switch-height;
vertical-align: middle; vertical-align: middle;
background-color: @disabled-color; background-image: linear-gradient(to right, @disabled-color, @disabled-color),
linear-gradient(to right, @white, @white);
border: 0; border: 0;
border-radius: 100px; border-radius: 100px;
cursor: pointer; cursor: pointer;
@ -38,7 +39,7 @@
} }
&-checked { &-checked {
background-color: @switch-color; background: @switch-color;
} }
&-loading, &-loading,