Commit 3936eb52604e66f4bb3ce0f2ef3440dc1a10d654

Authored by Aresn
Committed by GitHub
2 parents f4151cfc 43d3eb1b

Merge pull request #4762 from Baoyx007/patch-7

style (switch):  change color in disabled&&true status
Showing 1 changed file with 15 additions and 1 deletions   Show diff stats
src/styles/components/switch.less
... ... @@ -166,6 +166,20 @@
166 166 }
167 167 }
168 168  
  169 + &-disabled&-checked{
  170 + border-color: @primary-color;
  171 + background-color: @primary-color;
  172 + opacity: .4;
  173 +
  174 + &:after {
  175 + background: #fff;
  176 + }
  177 +
  178 + .@{switch-prefix-cls}-inner {
  179 + color: #fff;
  180 + }
  181 + }
  182 +
169 183 }
170 184  
171 185 @keyframes switch-loading {
... ... @@ -175,4 +189,4 @@
175 189 100% {
176 190 transform: rotate(360deg);
177 191 }
178   -}
179 192 \ No newline at end of file
  193 +}
... ...