Skip to content

Action widget: hover background for open pickers#299301

Merged
daviddossett merged 4 commits intomainfrom
daviddossett/action-widget-separators-hover
Mar 5, 2026
Merged

Action widget: hover background for open pickers#299301
daviddossett merged 4 commits intomainfrom
daviddossett/action-widget-separators-hover

Conversation

@daviddossett
Copy link
Collaborator

@daviddossett daviddossett commented Mar 4, 2026

  • Fire onDidChangeVisibility in ActionWidgetDropdown so aria-expanded is set correctly for all picker types
  • Apply toolbar hover background to picker buttons while their dropdown is open
  • Smaller min width for model picker since it's often unnecessarily wide

…ckers

- Remove horizontal padding from action widget, inset list rows instead
  so separators span edge-to-edge
- Fire onDidChangeVisibility in ActionWidgetDropdown so aria-expanded
  is set correctly for all picker types
- Apply toolbar hover background to picker buttons while their
  dropdown is open
Copilot AI review requested due to automatic review settings March 4, 2026 22:21
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves the chat “action widget” dropdown UI/UX by making separators span the full widget width and ensuring picker trigger buttons remain visually “active” while their dropdown is open (via correct aria-expanded updates).

Changes:

  • Adjust action widget CSS so list rows are inset while separators remain full-width.
  • Fix ActionWidgetDropdown.show()/hide flow to correctly fire onDidChangeVisibility (enabling aria-expanded="true" while open).
  • Add chat toolbar styling keyed off [aria-expanded="true"] to persist the hover background; tweak model picker dropdown min width.

Reviewed changes

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

File Description
src/vs/workbench/contrib/chat/browser/widget/media/chat.css Styles open picker triggers using [aria-expanded="true"] to keep the hover background visible.
src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.ts Reduces model picker dropdown minimum width.
src/vs/platform/actionWidget/browser/actionWidgetDropdown.ts Calls super.show() and ensures hide() runs on dropdown close so visibility events (and aria-expanded) stay in sync.
src/vs/platform/actionWidget/browser/actionWidget.css Insets list rows while keeping separators full-width; aligns action bar and filter padding with new layout.

@daviddossett daviddossett marked this pull request as ready for review March 4, 2026 22:38
@vs-code-engineering vs-code-engineering bot added this to the 1.111.0 milestone Mar 4, 2026
@daviddossett daviddossett marked this pull request as draft March 4, 2026 22:50
@daviddossett daviddossett changed the title Action widget: full-width separators and hover background for open pickers Action widget: hover background for open pickers Mar 4, 2026
@daviddossett daviddossett merged commit 5b2bd44 into main Mar 5, 2026
20 checks passed
@daviddossett daviddossett deleted the daviddossett/action-widget-separators-hover branch March 5, 2026 00:17
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