Skip to content

Commit

Permalink
fix(dialog): set margin on buttons inside md-dialog-actions (#5778)
Browse files Browse the repository at this point in the history
  • Loading branch information
crisbeto authored and kara committed Jul 20, 2017
1 parent 106ded4 commit 643023d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/lib/dialog/dialog.scss
Expand Up @@ -6,6 +6,7 @@ $mat-dialog-padding: 24px !default;
$mat-dialog-border-radius: 2px !default;
$mat-dialog-max-width: 80vw !default;
$mat-dialog-max-height: 65vh !default;
$mat-dialog-button-margin: 8px !default;

.mat-dialog-container {
@include mat-elevation(24);
Expand Down Expand Up @@ -59,4 +60,16 @@ $mat-dialog-max-height: 65vh !default;
&[align='center'] {
justify-content: center;
}

.mat-button + .mat-button,
.mat-raised-button + .mat-raised-button,
.mat-button + .mat-raised-button,
.mat-raised-button + .mat-button {
margin-left: $mat-dialog-button-margin;

[dir='rtl'] & {
margin-left: 0;
margin-right: $mat-dialog-button-margin;
}
}
}

0 comments on commit 643023d

Please sign in to comment.