Skip to content

Support focus callbacks for collection items #9330

@jluyau

Description

@jluyau

Provide a general summary of the feature here

Support focus callbacks for collections components (e.g. MenuItem).

🤔 Expected Behavior?

When a MenuItem (or other collection component) is focused via keyboard, a focus callback should be fired.

😯 Current Behavior

Currently, MenuItem does not support focus callbacks but does support hover callbacks, so this would enable both mouse and keyboard/voiceover accessibility.

💁 Possible Solution

No response

🔦 Context

When mouse hovering or keyboard arrow key navigating through a menu collection, a preview of some sort may want to be displayed with the currently highlighted menu item. While this is possible with the mouse (via hover callbacks), the focus callbacks would enable this for keyboard/voiceover.

💻 Examples

No response

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

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