-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(dialog): add the ability to align the content of md-dialog-actions #2557
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,12 +43,20 @@ md-dialog-content, [md-dialog-content], mat-dialog-content, [mat-dialog-content] | |
|
||
md-dialog-actions, [md-dialog-actions], mat-dialog-actions, [mat-dialog-actions] { | ||
padding: $md-dialog-padding / 2 0; | ||
display: block; | ||
display: flex; | ||
|
||
&: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; | ||
} | ||
|
||
&[align='end'] { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If someone sets There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It does. That's what I did in the playground/demo app. |
||
justify-content: flex-end; | ||
} | ||
|
||
&[align='middle'] { | ||
justify-content: center; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be
center
rather thanmiddle
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed.