Skip to content

Commit 643023d

Browse files
crisbetokara
authored andcommitted
fix(dialog): set margin on buttons inside md-dialog-actions (#5778)
1 parent 106ded4 commit 643023d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/lib/dialog/dialog.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ $mat-dialog-padding: 24px !default;
66
$mat-dialog-border-radius: 2px !default;
77
$mat-dialog-max-width: 80vw !default;
88
$mat-dialog-max-height: 65vh !default;
9+
$mat-dialog-button-margin: 8px !default;
910

1011
.mat-dialog-container {
1112
@include mat-elevation(24);
@@ -59,4 +60,16 @@ $mat-dialog-max-height: 65vh !default;
5960
&[align='center'] {
6061
justify-content: center;
6162
}
63+
64+
.mat-button + .mat-button,
65+
.mat-raised-button + .mat-raised-button,
66+
.mat-button + .mat-raised-button,
67+
.mat-raised-button + .mat-button {
68+
margin-left: $mat-dialog-button-margin;
69+
70+
[dir='rtl'] & {
71+
margin-left: 0;
72+
margin-right: $mat-dialog-button-margin;
73+
}
74+
}
6275
}

0 commit comments

Comments
 (0)