Skip to content

Fix cropped install button outline in plugin list#308390

Merged
joshspicer merged 1 commit intomainfrom
copilot/cooperative-armadillo
Apr 8, 2026
Merged

Fix cropped install button outline in plugin list#308390
joshspicer merged 1 commit intomainfrom
copilot/cooperative-armadillo

Conversation

@joshspicer
Copy link
Copy Markdown
Member

@joshspicer joshspicer commented Apr 7, 2026

Add outline-offset: -1px to the gallery install button's :focus-visible state, matching the existing pattern used for .list-button-group buttons. This prevents the focus outline from being clipped by overflow: hidden on ancestor containers (list rows, .mcp-list-widget).

Fixes #308206

Copilot AI review requested due to automatic review settings April 7, 2026 23:08
Copy link
Copy Markdown
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 fixes a UI focus-outline clipping issue in the AI Customizations “Plugins” list by adjusting the focus styling of the gallery install button so its outline is rendered inside the element, avoiding clipping from overflow: hidden containers (as reported in #308206).

Changes:

  • Add outline-offset: -1px to .mcp-gallery-install-button:focus-visible.
  • Align install-button focus treatment with the existing .list-button-group .monaco-button:focus-visible pattern used within .mcp-list-widget.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css Adds a focused-outline offset for the gallery install button to prevent outline cropping within overflow-hidden list rows/widgets.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

Copy link
Copy Markdown
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

Adjusts focus styling in the AI Customization plugins/gallery list to prevent the Install button’s keyboard focus outline from being visually clipped by ancestor containers that use overflow: hidden, addressing issue #308206.

Changes:

  • Add outline-offset: -1px to .mcp-gallery-install-button:focus-visible so the focus outline renders inward instead of being cropped.
  • Align the install button’s focus treatment with the existing pattern already used for .mcp-list-widget .list-button-group .monaco-button:focus-visible.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css Adds inward focus outline offset for the gallery install button to avoid clipping inside overflow-hidden list rows/widgets.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 7, 2026

Screenshot Changes

Base: 063a61db Current: 1f52a6e2

Changed (4)

chat/aiCustomizations/aiCustomizationManagementEditor/McpBrowseMode/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/PluginBrowseMode/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/McpBrowseMode/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/PluginBrowseMode/Light
Before After
before after

@joshspicer joshspicer marked this pull request as ready for review April 8, 2026 00:12
@joshspicer joshspicer enabled auto-merge (squash) April 8, 2026 00:13
@joshspicer joshspicer disabled auto-merge April 8, 2026 00:14
pwang347
pwang347 previously approved these changes Apr 8, 2026
Move the install button out of the details footer to be a direct child
of the gallery item container. This vertically centers the button
alongside the text content via the parent's align-items:center layout.

Add explicit description styling with truncation (ellipsis) for gallery
items. Ensure the .details container has proper flex sizing with
min-width:0 to prevent overflow.

Apply outline-offset:-1px on the install button focus-visible state,
matching the existing pattern, to prevent clipping by overflow:hidden
ancestors.

Fixes #308206

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@joshspicer joshspicer merged commit 6eb3fed into main Apr 8, 2026
23 checks passed
@joshspicer joshspicer deleted the copilot/cooperative-armadillo branch April 8, 2026 01:48
@vs-code-engineering vs-code-engineering bot added this to the 1.116.0 milestone Apr 8, 2026
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.

Cropped install btn

4 participants