Sfoglia il codice sorgente

Fixes alert button color on light themes

main
Eric Amodio 1 anno fa
parent
commit
095b6eee9e
1 ha cambiato i file con 7 aggiunte e 2 eliminazioni
  1. +7
    -2
      src/webviews/apps/shared/components/button.ts

+ 7
- 2
src/webviews/apps/shared/components/button.ts Vedi File

@ -9,8 +9,8 @@ export class GKButton extends LitElement {
elementBase,
css`
:host {
--button-foreground: var(--vscode-button-foreground);
--button-background: var(--vscode-button-background);
--button-foreground: var(--color-button-foreground);
--button-background: var(--color-button-background);
--button-hover-background: var(--vscode-button-hoverBackground);
--button-padding: 0.4rem 1.1rem;
--button-line-height: 1.694;
@ -82,6 +82,11 @@ export class GKButton extends LitElement {
width: max-content;
}
:host-context(.vscode-light):host([appearance='alert']:not(:hover)),
:host-context(.vscode-high-contrast-light):host([appearance='alert']:not(:hover)) {
--button-foreground: var(--color-foreground);
}
:host([appearance='toolbar'][href]) > a {
display: flex;
align-items: center;

Caricamento…
Annulla
Salva