From e4b9602d0e4ec5273eb2ad46c1071c3462f1a7ab Mon Sep 17 00:00:00 2001 From: TaskPool Date: Sat, 8 Aug 2026 05:08:33 +0800 Subject: [PATCH] fix(select): prevent hover state from changing active item background color - Exclude .is-active from hover selector - Add explicit :hover rule for .is-active to maintain selected color --- web/src/index.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/src/index.css b/web/src/index.css index 2681b18..d1c8f5f 100644 --- a/web/src/index.css +++ b/web/src/index.css @@ -425,7 +425,7 @@ pre, margin-top: 0; } -.ui-select-item:hover:not(:disabled) { +.ui-select-item:hover:not(:disabled):not(.is-active) { background: var(--bg-hover); } @@ -435,6 +435,10 @@ pre, font-weight: 500; } +.ui-select-item.is-active:hover { + background: var(--bg-selected); +} + .ui-select-item:disabled { color: var(--text-muted); cursor: not-allowed;