Skip to content

Update CSS styles for improved UI consistency#8476

Merged
mrleemurray merged 1 commit intomainfrom
mrleemurray/misleading-amethyst-cheetah
Feb 4, 2026
Merged

Update CSS styles for improved UI consistency#8476
mrleemurray merged 1 commit intomainfrom
mrleemurray/misleading-amethyst-cheetah

Conversation

@mrleemurray
Copy link
Copy Markdown
Contributor

Enhance the user interface by updating CSS styles for consistency, including adjustments to checkbox appearance and border-radius values across various components. This improves the overall visual coherence of the application.

Copilot AI review requested due to automatic review settings February 4, 2026 14:25
@mrleemurray mrleemurray enabled auto-merge (squash) February 4, 2026 14:25
@mrleemurray mrleemurray self-assigned this Feb 4, 2026
@mrleemurray mrleemurray requested a review from alexr00 February 4, 2026 14:25
@mrleemurray mrleemurray added this to the February 2026 milestone Feb 4, 2026
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 pull request updates CSS styles across multiple webview files to improve visual consistency in the UI. The changes standardize border-radius values and background colors throughout the application.

Changes:

  • Standardized border-radius values: 2px → 4px for buttons/inputs, 3px → 6px for panels/containers, and 4px → 6px for status checks
  • Updated background colors from editorWidget-background to panel-background for better consistency
  • Implemented custom checkbox styling with a checkmark indicator using CSS pseudo-elements and the :has() selector

Reviewed changes

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

Show a summary per file
File Description
webviews/editorWebview/index.css Updated border-radius (3px→6px, 4px→6px) and background colors for review comments, status items, merge containers, code blocks, and Box headers
webviews/createPullRequestViewNew/index.css Added border-radius and margin-top styling to validation error/warning messages with updated padding
webviews/components/automergeSelect.tsx Added checkbox-wrapper class to enable custom checkbox styling
webviews/common/common.css Updated button/input border-radius (2px→4px), implemented custom checkbox appearance with checkmark, and updated automerge section styling
webviews/activityBarView/index.css Updated textarea border-radius from 2px to 4px

background-color: var(--vscode-inputValidation-errorBackground);
color: var(--vscode-inputValidation-errorForeground);
border-radius: 4px;
margin-top: 4px
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

Missing semicolon at the end of the margin-top property. This should be "margin-top: 4px;" to ensure valid CSS syntax.

Copilot uses AI. Check for mistakes.
background-color: var(--vscode-inputValidation-warningBackground);
color: var(--vscode-inputValidation-warningForeground);
border-radius: 4px;
margin-top: 4px
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

Missing semicolon at the end of the margin-top property. This should be "margin-top: 4px;" to ensure valid CSS syntax.

Copilot uses AI. Check for mistakes.
Comment on lines +165 to +166
.checkbox-wrapper:has(input:checked)::after {
opacity: 1;
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

The :has() pseudo-class has limited browser support and may not work in older versions of VS Code's embedded browser (Electron). Consider using JavaScript to toggle a class on the wrapper when the checkbox is checked, or test thoroughly to ensure this works in the minimum supported VS Code version. If VS Code's Electron version supports :has(), this should be fine, but it's worth verifying.

Copilot uses AI. Check for mistakes.
@@ -851,8 +851,8 @@ button.secondary.change-base {
padding: 16px;
background-color: var(--vscode-editorHoverWidget-background);
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

This element still uses var(--vscode-editorHoverWidget-background) while most other similar elements in the PR were updated to use var(--vscode-panel-background) for consistency. The border-radius was updated on this line's rule set, but the background color was not. Consider whether this should also be changed to var(--vscode-panel-background) for consistency with the other changes in this PR (e.g., lines 175, 252, 318, 335, 381, 437, 1212, 1420).

Suggested change
background-color: var(--vscode-editorHoverWidget-background);
background-color: var(--vscode-panel-background);

Copilot uses AI. Check for mistakes.
@mrleemurray mrleemurray merged commit 1cb83c5 into main Feb 4, 2026
12 checks passed
@mrleemurray mrleemurray deleted the mrleemurray/misleading-amethyst-cheetah branch February 4, 2026 14:58
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