Skip to content

Commit

Permalink
feat(button): support vertically stacked buttons in set
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod committed Aug 4, 2020
1 parent a7c062f commit 20b73c6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/components/src/components/button/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
display: flex;
}

.#{$prefix}--btn-set--stacked {
flex-direction: column;
}

.#{$prefix}--btn-set > .#{$prefix}--btn {
width: 100%;
// 196px from design kit
Expand All @@ -34,6 +38,14 @@
}
}

.#{$prefix}--btn-set--stacked > .#{$prefix}--btn {
border-bottom: $button-separator;

&:last-of-type {
border-right: 0;
}
}

.#{$prefix}--btn--secondary.#{$prefix}--btn--disabled
+ .#{$prefix}--btn--primary.#{$prefix}--btn--disabled,
.#{$prefix}--btn--tertiary.#{$prefix}--btn--disabled
Expand Down

0 comments on commit 20b73c6

Please sign in to comment.