diff options
| author | David Hill <[email protected]> | 2025-12-16 17:41:56 +0000 |
|---|---|---|
| committer | David Hill <[email protected]> | 2025-12-16 17:41:56 +0000 |
| commit | 96b9ff8d0ea7a6d8c0790e793ea2ee700a435792 (patch) | |
| tree | 2740eab0198b985719ddd03ae1c6949adb689039 /packages/ui/src/components/select.css | |
| parent | 0af2254856de13fe2d7e023ed4f8d16f5201abd9 (diff) | |
| download | opencode-96b9ff8d0ea7a6d8c0790e793ea2ee700a435792.tar.gz opencode-96b9ff8d0ea7a6d8c0790e793ea2ee700a435792.zip | |
fix: remove the selected state from button when select deselected
Diffstat (limited to 'packages/ui/src/components/select.css')
| -rw-r--r-- | packages/ui/src/components/select.css | 12 |
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); + } + } } } |
