From 7e9ec208f5047671c01e6aa771b8446451203cf2 Mon Sep 17 00:00:00 2001 From: yinshuxun Date: Tue, 12 Mar 2024 11:05:27 +0800 Subject: [PATCH] fix: fix #551 --- src/input/input.component.scss | 10 +++------- src/select/select.component.scss | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/input/input.component.scss b/src/input/input.component.scss index 24b6d3868..d7497813a 100644 --- a/src/input/input.component.scss +++ b/src/input/input.component.scss @@ -46,21 +46,17 @@ @include outline-shadow(primary); } - &[disable], &[disabled] { + color: use-text-color(disabled); background-color: use-rgb(n-8); border-color: use-rgb(n-7) !important; - } - - &[disabled] { - color: use-text-color(disabled); - -webkit-text-fill-color: use-text-color(disabled); cursor: not-allowed; } &[readonly] { color: use-text-color(main); - -webkit-text-fill-color: use-text-color(main); + background-color: use-rgb(n-8); + border-color: use-rgb(n-7); cursor: default; } diff --git a/src/select/select.component.scss b/src/select/select.component.scss index 4f0fc189b..098ba4dda 100644 --- a/src/select/select.component.scss +++ b/src/select/select.component.scss @@ -36,7 +36,7 @@ } &__input-inaction { - background-color: use-rgb(main-bg); + background-color: use-rgb(main-bg) !important; border-color: use-rgb(n-7) !important; cursor: text;