Skip to content

[menu] Why doesn't Menu focus the first item when opened with a cursor? #4818

@tom-sherman

Description

@tom-sherman

From the ARIA menu pattern docs:

When a menu opens, or when a menubar receives focus, keyboard focus is placed on the first item.

In Base UI this only happens when opening a menu with keyboard controls. Why is this?

I know many UIs and libraries implement it this way (eg. macos as a notable example, it also works this way in Radix) but I'm wondering if there are specific reasons from the Base UI team to implement it this way as there are valid arguments to say that focusing the first item is more accessible.

Related discussions

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: menuChanges related to the menu component.support: questionCommunity support but can be turned into an improvement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions