ix:修复置灰效果不明显问题 (#1977)

* fix:修复置灰效果不明显问题

* fix:修复置灰效果不明显问题
This commit is contained in:
吴多益 2021-05-19 22:01:43 +08:00 committed by GitHub
parent da5c057b89
commit d3635f950b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 12 deletions

View File

@ -252,17 +252,12 @@
box-shadow: var(--Button-boxShadow);
text-shadow: var(--Button-textShadow);
@include hover {
// todo: 无法支持 css 变量
// @if ($color != $hover-color) {
color: $hover-color;
// }
// @if ($background != $hover-background) {
background: $hover-background;
// }
// @if ($border != $hover-border) {
border-color: $hover-border;
// }
&:not(:disabled):not(.is-disabled) {
@include hover {
color: $hover-color;
background: $hover-background;
border-color: $hover-border;
}
}
// @include focus {

View File

@ -42,8 +42,9 @@
&.is-disabled,
&:disabled {
opacity: var(--Button-onDisabled-opacity);
filter: grayscale(80%);
box-shadow: none;
pointer-events: none;
cursor: not-allowed;
}
&:not(:disabled):not(.is-disabled) {