From 354574433501be5b42b0ee02d32a4f23b841f742 Mon Sep 17 00:00:00 2001 From: luoxiaozero <48741584+luoxiaozero@users.noreply.github.com> Date: Mon, 23 Sep 2024 23:37:35 +0800 Subject: [PATCH] feat: When the Field status is Error, the border of the input class component is displayed in red (#268) --- thaw/src/field/field.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/thaw/src/field/field.css b/thaw/src/field/field.css index f8ee98f..a4dca24 100644 --- a/thaw/src/field/field.css +++ b/thaw/src/field/field.css @@ -37,6 +37,10 @@ color: var(--colorPaletteRedForeground1); } +.thaw-field--error .thaw-spin-button:not(:focus-within), +.thaw-field--error .thaw-select__select:not(:focus-within), +.thaw-field--error .thaw-combobox:not(:focus-within), +.thaw-field--error .thaw-textarea:not(:focus-within), .thaw-field--error .thaw-input:not(:focus-within) { border-color: var(--colorPaletteRedBorder2); }