Skip to content

Commit

Permalink
fix: buttons use spacing-base size to horizontal padding
Browse files Browse the repository at this point in the history
  • Loading branch information
tiago-dela-rosa committed Aug 7, 2024
1 parent 65371dc commit df8786d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions packages/core/src/components/button/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,17 @@
--ion-color-contrast: var(--color-neutral-black);
}

&[size='small'],
&[size='default'],
&[size='large'] {
--padding-start: var(--spacing-base);
--padding-end: var(--spacing-base);
height: var(--button-size);
}

&[size='default'] {
--button-size: var(--spacing-xxxxlarge);
font: var(--button-medium);
height: var(--button-size);
letter-spacing: var(--button-medium-letter);

&.is-circle {
Expand All @@ -40,7 +47,6 @@
&[size='small'] {
--button-size: var(--spacing-xxxlarge);
font: var(--button-small);
height: var(--button-size);
letter-spacing: var(--button-small-letter);

&.is-circle {
Expand All @@ -51,7 +57,6 @@
&[size='large'] {
--button-size: var(--spacing-giant);
font: var(--button-large);
height: var(--button-size);
letter-spacing: var(--button-large-letter);

&.is-circle {
Expand All @@ -67,7 +72,7 @@
}
}

&.is-outline-filled{
&.is-outline-filled {
--background: var(--color-neutral-white);
--color: var(--ion-color-base);
--border-width: 2px;
Expand Down Expand Up @@ -98,5 +103,3 @@
top: 50%;
transform: translate(-50%, -50%);
}


0 comments on commit df8786d

Please sign in to comment.