Skip to content

Commit

Permalink
fix(fuselage): button min-width (#1029)
Browse files Browse the repository at this point in the history
Co-authored-by: Douglas Fabris <devfabris@gmail.com>
  • Loading branch information
juliajforesti and dougfabris committed Apr 17, 2023
1 parent e83ac08 commit cde9a42
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/fuselage/src/components/Button/Button.styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

.rcx-button {
@mixin with-rectangular-size($height, $padding-x, $line-height) {
min-width: calc(#{$height} * 2);
padding: calc((#{$height} - #{$line-height}) / 2 - 2px)
calc(#{$padding-x} - 2px);
padding-block: calc((#{$height} - #{$line-height}) / 2 - 2px);
Expand All @@ -13,6 +14,7 @@

@mixin with-squared-size($size) {
width: $size;
min-width: $size;
height: $size;
padding: 0;

Expand Down

0 comments on commit cde9a42

Please sign in to comment.