Skip to content

Commit

Permalink
Add a comment regarding the negative bottom margin on the dialog acti…
Browse files Browse the repository at this point in the history
…ons.
  • Loading branch information
crisbeto committed Dec 14, 2016
1 parent 8043139 commit eeff3e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/dialog/dialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ md-dialog-actions, [md-dialog-actions], mat-dialog-actions, [mat-dialog-actions]
display: block;

&: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: -$md-dialog-padding;
}
}

0 comments on commit eeff3e1

Please sign in to comment.