Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(button): add separator in button sets #6608

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(button): support vertically stacked buttons in set
emyarod committed Aug 11, 2020
commit 37c4d7b765af683f8acab37e8a91684d8371464d
12 changes: 12 additions & 0 deletions packages/components/src/components/button/_button.scss
Original file line number Diff line number Diff line change
@@ -23,6 +23,10 @@
display: flex;
}

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

.#{$prefix}--btn-set > .#{$prefix}--btn {
width: 100%;
// 196px from design kit
@@ -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