Skip to content

Commit

Permalink
fix(dialog): set margin on buttons inside md-dialog-actions
Browse files Browse the repository at this point in the history
Based on the spec, buttons inside the dialog actions are supposed to have a margin. This is follow-up from #5283.
  • Loading branch information
crisbeto committed Jul 17, 2017
1 parent c20bec8 commit a2c45ed
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/lib/dialog/dialog.scss
Original file line number Diff line number Diff line change
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 a2c45ed

Please sign in to comment.