diff --git a/components/input/style/index.less b/components/input/style/index.less index 204772534b..cee902e070 100644 --- a/components/input/style/index.less +++ b/components/input/style/index.less @@ -37,12 +37,7 @@ transition: all 0.3s; &:hover { - & when (@theme = dark) { - color: fade(@white, 85%); - } - & when not (@theme = dark) { - color: fade(@black, 85%); - } + color: @input-icon-hover-color; } } diff --git a/components/input/style/search-input.less b/components/input/style/search-input.less index b41ee19fbd..384f14af84 100644 --- a/components/input/style/search-input.less +++ b/components/input/style/search-input.less @@ -11,12 +11,7 @@ cursor: pointer; transition: all 0.3s; &:hover { - & when (@theme = dark) { - color: fade(@white, 85%); - } - & when not (@theme = dark) { - color: fade(@black, 85%); - } + color: @input-icon-hover-color; } } diff --git a/components/style/themes/dark.less b/components/style/themes/dark.less index 53e87274b5..81a3347edf 100644 --- a/components/style/themes/dark.less +++ b/components/style/themes/dark.less @@ -259,6 +259,7 @@ @input-placeholder-color: fade(@white, 30%); @input-number-handler-bg: transparent; @input-number-handler-active-bg: @gray-11; +@input-icon-hover-color: fade(@white, 85%); // Select // --- diff --git a/components/style/themes/default.less b/components/style/themes/default.less index 2cc928b83f..c81275f076 100644 --- a/components/style/themes/default.less +++ b/components/style/themes/default.less @@ -350,6 +350,7 @@ @input-hover-border-color: @primary-5; @input-disabled-bg: @disabled-bg; @input-outline-offset: 0 0; +@input-icon-hover-color: fade(@black, 85%); // Mentions // ---