summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src/components/icon-button.css
diff options
context:
space:
mode:
authorRahul A Mistry <[email protected]>2026-01-26 22:28:29 +0530
committerGitHub <[email protected]>2026-01-26 10:58:29 -0600
commit783121c06e388c2d496fd68c59421fdff7d5620f (patch)
tree609bec899ef8bd0d31c520806e886e7d25382e3c /packages/ui/src/components/icon-button.css
parent984518b1c0cb74db0b8eb9f77bb15fb97224a4e2 (diff)
downloadopencode-783121c06e388c2d496fd68c59421fdff7d5620f.tar.gz
opencode-783121c06e388c2d496fd68c59421fdff7d5620f.zip
fix(ui): use focus-visible instead of focus to prevent sticky hover effect on click (#10651)
Diffstat (limited to 'packages/ui/src/components/icon-button.css')
-rw-r--r--packages/ui/src/components/icon-button.css4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/ui/src/components/icon-button.css b/packages/ui/src/components/icon-button.css
index 7d5d3280f..aa550e990 100644
--- a/packages/ui/src/components/icon-button.css
+++ b/packages/ui/src/components/icon-button.css
@@ -90,8 +90,8 @@
/* color: var(--icon-hover); */
/* } */
}
- &:focus:not(:disabled) {
- background-color: var(--surface-focus);
+ &:focus-visible:not(:disabled) {
+ background-color: var(--surface-raised-base-hover);
}
&:active:not(:disabled) {
background-color: var(--surface-raised-base-active);