Skip to content

Fix high contrast submenu focus outlines - #327677

Open
hawkticehurst with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-high-contrast-submenu-focus-outlines
Open

Fix high contrast submenu focus outlines#327677
hawkticehurst with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-high-contrast-submenu-focus-outlines

Conversation

Copilot AI commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Fixes #327543

Summary

High contrast focus styling used a descendant selector, causing every item in an open submenu to receive an outline when its parent was focused.

Changes

  • Scope the outline to the focused action’s direct menu item:

    .action-item.focused > .action-menu-item
  • Add regression coverage for nested submenu items.

Copilot AI and others added 2 commits July 27, 2026 18:04
Co-authored-by: hawkticehurst <39639992+hawkticehurst@users.noreply.github.com>
Co-authored-by: hawkticehurst <39639992+hawkticehurst@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Fixes high-contrast submenu focus outlines by limiting the selection border to the directly focused menu item.

Changes:

  • Uses a direct-child selector for focused menu items.
  • Adds regression coverage for nested submenus.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/vs/base/browser/ui/menu/menu.ts Corrects high-contrast focus selector scoping.
src/vs/base/test/browser/ui/menu/menu.test.ts Verifies nested items remain unoutlined.

@hawkticehurst
hawkticehurst marked this pull request as ready for review July 27, 2026 20:25
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.

"..." menu items now all highlighted with yellow border

4 participants