Skip to content

Commit

Permalink
fix(button): explicitly set width for expressive theme
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod committed May 13, 2021
1 parent eff0724 commit 59447a4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/components/src/components/button/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,10 @@
height: rem(20px);
}

.#{$prefix}--btn-set .#{$prefix}--btn.#{$prefix}--btn--expressive {
max-width: rem(320px);
}

// Skeleton State
.#{$prefix}--btn.#{$prefix}--skeleton {
@include skeleton;
Expand All @@ -475,6 +479,8 @@

.#{$prefix}--btn-set .#{$prefix}--btn {
width: 100%;
// 196px from design kit
max-width: rem(196px);

&:not(:focus) {
box-shadow: rem(-1px) 0 0 0 $button-separator;
Expand All @@ -485,11 +491,6 @@
}
}

.#{$prefix}--btn-set .#{$prefix}--btn:not(.#{$prefix}--btn--expressive) {
// 196px from design kit
max-width: rem(196px);
}

.#{$prefix}--btn-set .#{$prefix}--btn:focus + .#{$prefix}--btn {
box-shadow: inherit;
}
Expand Down

0 comments on commit 59447a4

Please sign in to comment.