Open jkinley opened 2 months ago
@jkinley When I click on the select I don't see a ring until I click outside of the select: https://ui.shadcn.com/docs/components/select
Is this the desired behavior from your POV?
Digging into it, it makes sense the ring does not appear on the combobox on click as we directly shift the focus to the popup, whereas while using the keyboard the focus is not shifting up until you click enter (and the ring disappears as intended).
I'm not sure there is a bug here
Describe the bug
Currently when you focus on the combobox there is no focus ring. However, if you tab to the combobox (using focus-visible) there is a ring. The goal should be to make the combobox work like the select regarding focus rings.
The problem is that the trigger for the combobox is a button and buttons in shadcn don't have a ring on focus.
The Combobox example does not have the correct classes on the trigger (Button).
The Select component has focus classes on the trigger (Button):
When I add the tailwind focus classes to my combobox it seems to work ok, but not quite the experience as the Select.
but maybe you want to have more integrated solution.
Affected component/components
Combobox
How to reproduce
Codesandbox/StackBlitz link
https://ui.shadcn.com/docs/components/combobox
Logs
No response
System Info
Before submitting