-
Notifications
You must be signed in to change notification settings - Fork 705
Fix button border styles for disabled state and split buttons #8410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -142,7 +142,7 @@ input[type='checkbox'] { | |||||||||
| body button:disabled, | ||||||||||
| input[type='submit']:disabled { | ||||||||||
| opacity: 0.4; | ||||||||||
| border: 1px solid var(--vscode-button-border, transparent) !important; | ||||||||||
| border: 1px solid var(--vscode-button-background, transparent) !important; | ||||||||||
| } | ||||||||||
|
|
||||||||||
| body .hidden { | ||||||||||
|
|
@@ -396,6 +396,8 @@ button.split-left { | |||||||||
|
|
||||||||||
| .split.disabled { | ||||||||||
| opacity: 0.4; | ||||||||||
| border-top: 1px solid var(--vscode-button-background); | ||||||||||
| border-bottom: 1px solid var(--vscode-button-background); | ||||||||||
|
Comment on lines
+399
to
+400
|
||||||||||
| border-top: 1px solid var(--vscode-button-background); | |
| border-bottom: 1px solid var(--vscode-button-background); | |
| border-top: 1px solid var(--vscode-button-border); | |
| border-bottom: 1px solid var(--vscode-button-border); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using
--vscode-button-backgroundfor border styling is semantically incorrect. The variable--vscode-button-backgroundis intended for background colors, not borders. This could cause visual inconsistencies in themes where these variables have different color values. Consider using--vscode-button-borderif the goal is to maintain a border, or removing the border entirely for disabled buttons withborder: 1px solid transparent !important;.