diff --git a/src/lib/dialog/dialog.scss b/src/lib/dialog/dialog.scss index 2604ef84653..03a72fc6802 100644 --- a/src/lib/dialog/dialog.scss +++ b/src/lib/dialog/dialog.scss @@ -46,12 +46,8 @@ $mat-dialog-button-margin: 8px !default; display: flex; flex-wrap: wrap; - &:last-child { - // If the actions are the last element in a dialog, we need to pull them down - // over the dialog padding, in order to avoid the action's padding stacking - // with the dialog's. - margin-bottom: -$mat-dialog-padding; - } + // Pull the actions down to avoid their padding stacking with the dialog's padding. + margin-bottom: -$mat-dialog-padding; &[align='end'] { justify-content: flex-end;