Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[UI] Click on label doesn't open select #457

@dawi

Description

@dawi

If you click on a field label the corresponding input gets focused and the focus ring appears.

If you use select instead of input, the behavior differs somehow. There is no visual feedback.

The select still gets the focus (after click on the label i can open it via enter, space or arrow keys), but there is no visual feedback for the user.

I can see two options:

  1. Add focus ring to the select (not only if focus-visible).
  2. Open the select on label click as done in shadcn/ui (maybe this must be supported by base-ui itself)

The current coss behavior can be seen here in the form examples: https://coss.com/ui/particles/select
The current shadcn behavior can be seen on https://ui.shadcn.com (there you can click on the month and year label and the corresponding selects opens)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions