Permalink
Browse files

Add @switch-color to control switch colors (#8940)

  • Loading branch information...
megawac authored and afc163 committed Jan 12, 2018
1 parent 88e0c9b commit b9b5abab3364bf752e9644415088b142a153e385
Showing with 4 additions and 3 deletions.
  1. +1 −0 components/style/themes/default.less
  2. +3 −3 components/switch/style/index.less
@@ -393,6 +393,7 @@
@switch-height: 22px;
@switch-sm-height: 16px;
@switch-disabled-opacity: 0.4;
@switch-color: @primary-color;
// Pagination
// ---
@@ -68,11 +68,11 @@
}
&-checked&-loading:before {
color: @primary-color;
color: @switch-color;
}
&:focus {
box-shadow: 0 0 0 2px fade(@primary-color, 20%);
box-shadow: 0 0 0 2px fade(@switch-color, 20%);
outline: 0;
}
@@ -127,7 +127,7 @@
}
&-checked {
background-color: @primary-color;
background-color: @switch-color;
.@{switch-prefix-cls}-inner {
margin-left: 6px;

0 comments on commit b9b5aba

Please sign in to comment.