Skip to content

Commit

Permalink
fix(Button): remove min-width
Browse files Browse the repository at this point in the history
  • Loading branch information
amje committed Jul 12, 2023
1 parent 016298d commit a0b1a35
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/components/Button/Button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ $iconWidth: 16px;
box-sizing: border-box;
height: var(--yc-button-height);
line-height: var(--yc-button-height);
min-width: var(--yc-button-min-width);
font-size: var(--yc-button-font-size);
user-select: none;
text-align: center;
Expand Down Expand Up @@ -97,7 +96,6 @@ $iconWidth: 16px;
&_xs {
--yc-button-height: 20px;
--yc-button-border-radius: var(--g-border-radius-xs);
--yc-button-min-width: 32px;
--yc-button-padding: 6px;
--yc-button-icon-size: 12px;
--yc-button-icon-offset: 4px;
Expand All @@ -107,7 +105,6 @@ $iconWidth: 16px;
&_s {
--yc-button-height: 24px;
--yc-button-border-radius: var(--g-border-radius-s);
--yc-button-min-width: 48px;
--yc-button-padding: 8px;
--yc-button-icon-size: 16px;
--yc-button-icon-offset: 4px;
Expand All @@ -117,7 +114,6 @@ $iconWidth: 16px;
&_m {
--yc-button-height: 28px;
--yc-button-border-radius: var(--g-border-radius-m);
--yc-button-min-width: 56px;
--yc-button-padding: 12px;
--yc-button-icon-size: 16px;
--yc-button-icon-offset: 8px;
Expand All @@ -127,7 +123,6 @@ $iconWidth: 16px;
&_l {
--yc-button-height: 36px;
--yc-button-border-radius: var(--g-border-radius-l);
--yc-button-min-width: 64px;
--yc-button-padding: 16px;
--yc-button-icon-size: 16px;
--yc-button-icon-offset: 8px;
Expand All @@ -137,7 +132,6 @@ $iconWidth: 16px;
&_xl {
--yc-button-height: 44px;
--yc-button-border-radius: var(--g-border-radius-xl);
--yc-button-min-width: 80px;
--yc-button-padding: 24px;
--yc-button-icon-size: 20px;
--yc-button-icon-offset: 12px;
Expand Down Expand Up @@ -451,7 +445,6 @@ $iconWidth: 16px;

&:has(#{$block}__icon:only-child) {
--yc-button-padding: 0;
--yc-button-min-width: 0;
width: var(--yc-button-height);
}

Expand Down

0 comments on commit a0b1a35

Please sign in to comment.