Commit 11d8490ed43e174bf582908b112e5e0e002d49c5
Committed by
GitHub
1 parent
f4151cfc
style (switch): change color in disabled&&true status
switch in disabled&&true status should show true color
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 | +} | ... | ... |