Skip to content

Commit

Permalink
fix(button): height fixed changed to min-height
Browse files Browse the repository at this point in the history
  • Loading branch information
Alyssa committed May 7, 2019
1 parent bc400cf commit 8f7c221
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 9 deletions.
30 changes: 24 additions & 6 deletions src/elements/button/ButtonPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,32 +81,50 @@ function ButtonPage() {
</div>
<p>Icon</p>
<div className="theme-cat" style={{ marginBottom: 15 }}>
<button type="button" className="zep-button zep-button-primary">
<button
type="button"
className="zep-button zep-button-primary zep-button-icon"
>
<CopyIcon className="zep-button__icon" />
</button>
</div>
<div className="theme-zeppelin" style={{ marginBottom: 15 }}>
<button type="button" className="zep-button zep-button-primary">
<button
type="button"
className="zep-button zep-button-primary zep-button-icon"
>
<CopyIcon className="zep-button__icon" />
</button>
</div>
<div className="theme-rental" style={{ marginBottom: 15 }}>
<button type="button" className="zep-button zep-button-primary">
<button
type="button"
className="zep-button zep-button-primary zep-button-icon"
>
<CopyIcon className="zep-button__icon" />
</button>
</div>
<div className="theme-cat" style={{ marginBottom: 15 }}>
<button type="button" className="zep-button zep-button-secondary">
<button
type="button"
className="zep-button zep-button-secondary zep-button-icon"
>
<CopyIcon className="zep-button__icon" />
</button>
</div>
<div className="theme-zeppelin" style={{ marginBottom: 15 }}>
<button type="button" className="zep-button zep-button-secondary">
<button
type="button"
className="zep-button zep-button-secondary zep-button-icon"
>
<CopyIcon className="zep-button__icon" />
</button>
</div>
<div className="theme-rental" style={{ marginBottom: 15 }}>
<button type="button" className="zep-button zep-button-secondary">
<button
type="button"
className="zep-button zep-button-secondary zep-button-icon"
>
<CopyIcon className="zep-button__icon" />
</button>
</div>
Expand Down
9 changes: 6 additions & 3 deletions src/elements/button/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
text-align: center;
vertical-align: top;
cursor: pointer;
height: 3rem;
min-height: 3rem;
padding: 0;
}
.#{$prefix}button-primary {
Expand Down Expand Up @@ -107,6 +107,10 @@
}
}

.#{$prefix}button-icon {
min-width: 3rem;
}

.#{$prefix}button__text {
@extend %typo-special-4;
display: inline-block;
Expand All @@ -116,7 +120,6 @@
.#{$prefix}button__icon {
height: 1.375rem;
width: 1.375rem;
margin: 0.8125rem;
}

.#{$prefix}button__text--tertiary {
Expand All @@ -137,7 +140,7 @@
}

.#{$prefix}button--small {
height: 2.5rem;
min-height: 2.5rem;
.#{$prefix}button__text {
@extend %typo-special-3;
display: inline-block;
Expand Down

0 comments on commit 8f7c221

Please sign in to comment.