From 1a9de516c6be2b5f2c4829d4b7607058ee840218 Mon Sep 17 00:00:00 2001 From: zsmj Date: Mon, 24 Oct 2022 11:47:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=20fix:=20hover=E8=BE=B9=E6=A1=86?= =?UTF-8?q?=E9=AB=98=E4=BA=AE=E6=95=88=E6=9E=9C,=E5=9C=A8=E7=88=B6?= =?UTF-8?q?=E8=8A=82=E7=82=B9disabled=E7=9A=84=E5=9C=BA=E6=99=AF=E4=B8=8B,?= =?UTF-8?q?=E6=B2=A1=E5=BF=85=E8=A6=81=E9=AB=98=E4=BA=AE=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/less/core/utils/common.less | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/less/core/utils/common.less b/src/less/core/utils/common.less index d4b0d3bcd..7e0d85ff0 100644 --- a/src/less/core/utils/common.less +++ b/src/less/core/utils/common.less @@ -74,9 +74,10 @@ border-color: @color-bi-border-highlight; } // ie下不支持focus-within, 和上面写在一起会导致ie下:hover不生效 - &:focus-within{ + &:focus-within { border-color: @color-bi-border-highlight; } + &.disabled { &:hover { border-color: @border-color-line; @@ -84,6 +85,14 @@ } } +.base-disabled { + .bi-focus-shadow { + &:hover { + border-color: @border-color-line; + } + } +} + .bi-theme-dark { .bi-focus-shadow { &.disabled { @@ -94,6 +103,16 @@ } } +.bi-theme-dark { + .base-disabled { + .bi-focus-shadow { + &:hover { + border-color: @border-color-line-theme-dark; + } + } + } +} + .clearfix { .clearfix(); } @@ -102,6 +121,7 @@ .bi-background { background-color: @color-bi-background-normal; color: @color-bi-text-background; + & .bi-input { color: @color-bi-text-background; }