Skip to content

Conversation

@os-davidlourenco
Copy link
Contributor

This PR is to fix the submenu focus behaviour on hover

What was happening

  • When a submenu with the open on hover option was hovered the submenu title would get on focus with the focus outline. Furthermore once the user stopped hovering the menu the next element would be automatically focused.

Previous

What was done

  • A validation was added to the Submenu to verify whether the OpenOnHover option is disabled before putting the menu tile in focus, as well as to store and restore the focus after leaving the menu.

Test Steps

  1. Open the sample page
  2. Hover the menu with the OpenOnHover option enabled
  3. Validate that the menu title did not present the on focus outline
  4. Validate that after leaving the menu the next item is not on focus displaing the message "SKIP TO CONTENT (PRESS ENTER)"

Screenshots

After

@os-davidlourenco os-davidlourenco requested a review from a team as a code owner December 31, 2025 11:09
@sonarqubecloud
Copy link

@os-davidlourenco os-davidlourenco merged commit 46ee90c into dev Dec 31, 2025
12 of 17 checks passed
@os-davidlourenco os-davidlourenco deleted the ROU-12487 branch December 31, 2025 15:04
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.

3 participants