Skip to content

Conversation

@TagajN
Copy link

@TagajN TagajN commented Nov 17, 2025

Contributes to #

What did you do?

Fixing Cv-Overflow-Menu focus issue.

Why did you do it?

When the first element was disabled then the focus was on a different element not on the menu

How have you tested it?

User test

Were docs updated if needed?

N/A

  • N/A
  • No
  • Yes

Copy link
Contributor

@guilherme-gm guilherme-gm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

From my tests, while this solves the original issue of not closing the menu, it breaks the accessibility of the component.

Since the focus is now moved to the menu element instead of the items, a keyboard user is no longer able to navigate through the menu items.

Example: (original code)

  • Press tab to select the menu
  • Press Enter --> Menu is open, first element targeted
  • Press Tab --> Next element targeted
  • Press ESC --> Menu gets closed

on new code, we can only focus the entire menu.

@guilherme-gm guilherme-gm self-assigned this Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants