Skip to content

Commit

Permalink
feat(GovAlta#2162): replace design tokens for button
Browse files Browse the repository at this point in the history
  • Loading branch information
vanessatran-ddi committed Oct 22, 2024
1 parent c7f32a8 commit 1fe5cf1
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions libs/web-components/src/components/button/Button.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -100,28 +100,22 @@

<style>
:host {
--button-height: 2.625rem; /* 42px */
--button-height-compact: 2rem; /* 32px */
--button-height-tall: 3.25rem; /* 52px */
box-sizing: border-box;
font-family: var(--goa-font-family-sans);
}
button {
display: inline-flex;
box-sizing: border-box;
border-radius: 0.25rem;
border-radius: var(--goa-button-border-radius);
border: 2px solid var(--goa-color-interactive-default);
box-sizing: border-box;
cursor: pointer;
font-family: var(--goa-font-family-sans);
font-size: var(--goa-font-size-5);
font-weight: 400;
height: var(--button-height);
font: var(--goa-button-text);
height: var(--goa-button-height);
letter-spacing: var(--goa-letter-spacing-button);
line-height: 100%;
padding: 0 0.75rem;
padding:0 var(--goa-button-padding-lr);
white-space: nowrap;
/* for leading and trailing icon vertical alignment */
Expand Down Expand Up @@ -162,10 +156,10 @@
}
button.compact {
height: var(--button-height-compact);
height: var(--goa-button-height-compact);
font-size: var(--goa-font-size-4);
padding-left: var(--goa-space-xs);
padding-right: var(--goa-space-xs);
padding-left: var(--goa-button-padding-lr-compact);
padding-right: var(--goa-button-padding-lr-compact);
}
button.start {
Expand Down

0 comments on commit 1fe5cf1

Please sign in to comment.