Skip to content

Commit

Permalink
Updates button styles to match closer to VS Code
Browse files Browse the repository at this point in the history
  • Loading branch information
d13 committed May 11, 2024
1 parent bac3827 commit 304fffc
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions src/webviews/apps/shared/components/button.ts
Expand Up @@ -25,10 +25,11 @@ export class GlButton extends LitElement {
--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-padding: 0.4rem;
--button-gap: 0.6rem;
--button-compact-padding: 0.6rem 0.8rem;
--button-line-height: 1.694;
--button-compact-padding: 0.4rem;
--button-tight-padding: 0.4rem 0.8rem;
--button-line-height: 1.35;
--button-border: var(--vscode-button-border, transparent);
display: inline-block;
Expand All @@ -53,7 +54,7 @@ export class GlButton extends LitElement {
align-items: center;
gap: var(--button-gap);
padding: var(--button-padding);
line-height: normal;
line-height: var(--button-line-height);
color: inherit;
text-decoration: none;
Expand Down Expand Up @@ -100,8 +101,6 @@ export class GlButton extends LitElement {
--button-background: transparent;
--button-foreground: var(--vscode-foreground);
--button-hover-background: var(--vscode-toolbar-hoverBackground);
--button-padding: 0.4rem;
--button-line-height: 1.6;
--button-border: transparent;
}
Expand Down Expand Up @@ -133,13 +132,8 @@ export class GlButton extends LitElement {
padding: var(--button-compact-padding);
}
:host([density='tight']) {
line-height: 1;
}
:host([density='tight']) .control {
padding: var(--button-compact-padding);
line-height: 1;
padding: var(--button-tight-padding);
}
:host([density='tight']) .control ::slotted(code-icon) {
Expand Down

0 comments on commit 304fffc

Please sign in to comment.