Skip to content

Commit 96b9ff8

Browse files
committed
fix: remove the selected state from button when select deselected
1 parent 0af2254 commit 96b9ff8

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎packages/ui/src/components/select.css‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,18 @@
2727
background-color: var(--icon-strong-active);
2828
}
2929
}
30+
31+
&:not([data-expanded]):focus {
32+
&[data-variant="secondary"] {
33+
background-color: var(--button-secondary-base);
34+
}
35+
&[data-variant="ghost"] {
36+
background-color: transparent;
37+
}
38+
&[data-variant="primary"] {
39+
background-color: var(--icon-strong-base);
40+
}
41+
}
3042
}
3143
}
3244

0 commit comments

Comments
 (0)