Skip to content

Commit 9d1e5d7

Browse files
committed
fix: Switch disabled color in dark theme
1 parent 63a688f commit 9d1e5d7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

components/switch/style/index.less

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
height: @switch-height;
1818
line-height: @switch-height;
1919
vertical-align: middle;
20-
background-color: @disabled-color;
20+
background-image: linear-gradient(to right, @disabled-color, @disabled-color),
21+
linear-gradient(to right, @component-background, @component-background);
2122
border: 0;
2223
border-radius: 100px;
2324
cursor: pointer;
@@ -38,7 +39,7 @@
3839
}
3940

4041
&-checked {
41-
background-color: @switch-color;
42+
background: @switch-color;
4243
}
4344

4445
&-loading,

0 commit comments

Comments
 (0)