summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Hill <[email protected]>2025-12-16 17:41:56 +0000
committerDavid Hill <[email protected]>2025-12-16 17:41:56 +0000
commit96b9ff8d0ea7a6d8c0790e793ea2ee700a435792 (patch)
tree2740eab0198b985719ddd03ae1c6949adb689039
parent0af2254856de13fe2d7e023ed4f8d16f5201abd9 (diff)
downloadopencode-96b9ff8d0ea7a6d8c0790e793ea2ee700a435792.tar.gz
opencode-96b9ff8d0ea7a6d8c0790e793ea2ee700a435792.zip
fix: remove the selected state from button when select deselected
-rw-r--r--packages/ui/src/components/select.css12
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/ui/src/components/select.css b/packages/ui/src/components/select.css
index e6fd03f27..63221b85e 100644
--- a/packages/ui/src/components/select.css
+++ b/packages/ui/src/components/select.css
@@ -27,6 +27,18 @@
background-color: var(--icon-strong-active);
}
}
+
+ &:not([data-expanded]):focus {
+ &[data-variant="secondary"] {
+ background-color: var(--button-secondary-base);
+ }
+ &[data-variant="ghost"] {
+ background-color: transparent;
+ }
+ &[data-variant="primary"] {
+ background-color: var(--icon-strong-base);
+ }
+ }
}
}