style (switch): change color in disabled&&true status

switch in disabled&&true status should show true color
This commit is contained in:
Haven 2018-11-01 14:39:22 +08:00 committed by GitHub
parent f4151cfcc1
commit 11d8490ed4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -166,6 +166,20 @@
}
}
&-disabled.&-checked{
border-color: @primary-color;
background-color: @primary-color;
opacity: .4;
&:after {
background: #fff;
}
.@{switch-prefix-cls}-inner {
color: #fff;
}
}
}
@keyframes switch-loading {
@ -175,4 +189,4 @@
100% {
transform: rotate(360deg);
}
}
}