Skip to content

Commit

Permalink
fix dialogs body rounded corners when header/footer missing
Browse files Browse the repository at this point in the history
  • Loading branch information
salarenko committed Mar 31, 2020
1 parent e0ddc62 commit 7bea1d0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/dialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ $button: #{$fd-namespace}-button;
// Footer
$fd-dialog-footer-button-min-width: 4rem;

@include fd-reset();

@extend %dialog;

display: none;
Expand Down Expand Up @@ -140,13 +142,13 @@ $button: #{$fd-namespace}-button;
padding-bottom: 0;
}

& ~ .#{$block}__header,
& ~ .#{$block}__subheader {
.#{$block}__header + &,
.#{$block}__subheader + & {
border-top-left-radius: initial;
border-top-right-radius: initial;
}

& + :not(.#{$block}__footer) {
&:not(:last-child) {
border-bottom-left-radius: initial;
border-bottom-right-radius: initial;
}
Expand Down

0 comments on commit 7bea1d0

Please sign in to comment.