Skip to content

Better focus order management for all components using ControlledBubbleMenu #460

Description

@GintasVas

Is your feature request related to a problem? Please describe.

When navigating with a keyboard (using Tab), it is annoying that I have to tab through all of the page in order to focus interactive elements inside any component using ControlledBubbleMenu.

Describe the solution you'd like

If a bubble menu component is open, it should be the next one to be focused after tabbing once. Same for Shift + Tab if tabbing back.

Describe alternatives you've considered

  • Considered setting disablePortal={true}, but it just renders the popover right after the editor. Providing container ref doesn't really solve the issue, since we can't really portal the popover inside the editable content.
  • MUI's autoFocus property isn't reliable enough and it would hijack the focus order (skipping all the document/page)

Additional context

N/A

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions