Skip to content

sessions: use secondary button border for agent feedback Remove button#323363

Merged
benibenj merged 1 commit into
mainfrom
agents/agent-feedback-editor-button-styles
Jun 28, 2026
Merged

sessions: use secondary button border for agent feedback Remove button#323363
benibenj merged 1 commit into
mainfrom
agents/agent-feedback-editor-button-styles

Conversation

@benibenj

Copy link
Copy Markdown
Contributor

What

The Remove button in the agent feedback editor widget is a secondary button (next to the primary Accept button). Its border was set to --vscode-button-border, which inherits the themed/contrast border and renders blue. This swaps it to the dedicated --vscode-button-secondaryBorder token so it appears as a subtle gray, consistent with other secondary buttons across the UI.

Why

A secondary button should not have a blue (primary/contrast) border. --vscode-button-secondaryBorder is the purpose-built token for this (a ~15% transparent foreground gray in light/dark, contrast border in HC), keeping the widget consistent with the rest of VS Code.

Notes for reviewers

  • Single-line change in agentFeedbackEditorWidgetContribution.ts.
  • The primary Accept button styling is unchanged.

The Remove button in the agent feedback editor widget is a secondary button but used --vscode-button-border for its border, which inherits the themed/contrast (blue) border. Switch to the dedicated --vscode-button-secondaryBorder token so it renders as a subtle gray consistent with other secondary buttons.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 28, 2026 20:28
@benibenj benibenj enabled auto-merge (squash) June 28, 2026 20:28

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

This PR updates the Agents window’s agent feedback editor widget to use the dedicated secondary-button border theme token for the Remove button, ensuring it no longer inherits the primary/contrast (“blue”) border styling and instead matches standard secondary button appearance across VS Code.

Changes:

  • Switch the Remove button’s border from --vscode-button-border (with widget-border fallbacks) to --vscode-button-secondaryBorder.
Show a summary per file
File Description
src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackEditorWidgetContribution.ts Updates secondary button border styling to use the proper theme token for secondary buttons.

Review details

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Low

@benibenj benibenj merged commit c833c14 into main Jun 28, 2026
30 checks passed
@benibenj benibenj deleted the agents/agent-feedback-editor-button-styles branch June 28, 2026 20:57
@vs-code-engineering vs-code-engineering Bot added this to the 1.127.0 milestone Jun 28, 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.

3 participants