Skip to content

Commit f17ff49

Browse files
committed
Fixes #4833 improves gate button text color across themes
1 parent ed19b44 commit f17ff49

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/webviews/apps/shared/components/button.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,16 @@ export class GlButton extends LitElement {
140140
:host([appearance='alert']) {
141141
--button-background: transparent;
142142
--button-border: var(--color-alert-infoBorder);
143-
--button-foreground: var(--color-button-foreground);
143+
--button-foreground: var(--color-alert-infoForeground);
144144
--button-hover-background: var(--color-alert-infoBorder);
145145
--button-line-height: 1.64;
146146
width: max-content;
147147
}
148148
149+
:host([appearance='alert']:hover) {
150+
--button-foreground: var(--vscode-button-foreground);
151+
}
152+
149153
/* Variant property for semantic states - appearance controls structure, variant controls color */
150154
151155
/* Solid buttons (default and secondary) with variants get full color treatment */
@@ -213,11 +217,6 @@ export class GlButton extends LitElement {
213217
--button-border: transparent;
214218
}
215219
216-
:host-context(.vscode-light):host([appearance='alert']:not(:hover)),
217-
:host-context(.vscode-high-contrast-light):host([appearance='alert']:not(:hover)) {
218-
--button-foreground: var(--color-foreground);
219-
}
220-
221220
:host([appearance='input']) .control {
222221
padding: var(--button-input-padding);
223222
--button-line-height: 1.1;

0 commit comments

Comments
 (0)