[components] changed style for disabled state

This commit is contained in:
Maxim Kadushkin 2019-10-10 16:02:17 +03:00
parent 2d43f6d050
commit da37e8cde3
2 changed files with 7 additions and 4 deletions

View file

@ -104,9 +104,12 @@
} }
.mx-button-otherstates-icon2(@icon-size) { .mx-button-otherstates-icon2(@icon-size) {
&.active .icon, &.active, &:active{
&:active .icon {background-position-x: -1*@icon-size; --bgX: -(1*@icon-size);} &:not(:disabled):not(.disabled) {
&.disabled .icon {background-position-x: -2*@icon-size; --bgX: -(2*@icon-size);} .icon {background-position-x: -1*@icon-size; --bgX: -(1*@icon-size);}
}
}
&.disabled {.icon {opacity: .4;}}
} }
.button-otherstates-icon2(@icon-class, @icon-size) { .button-otherstates-icon2(@icon-class, @icon-size) {

View file

@ -315,7 +315,7 @@
&[disabled], &[disabled],
&.disabled { &.disabled {
color: #000; color: #000;
opacity: 0.4; opacity: 1;
} }
} }