-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(dialog) make align attribute into an input of dialog actions directive instead of css #21439
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
fix(dialog) make align attribute into an input of dialog actions directive instead of css #21439
Conversation
…tions directive instead of css Fixes multiple issues, such as self-documentation of the align attribute, type checking, better bindings, and IDE support. Because align is not standard for HTMLDivElement, it doesn't make much sense to assume end users to know they can use the align attribute. Fixes angular#18479
7b51418
to
5da4caa
Compare
I can't figure out how to add target label, I assume I don't have the rights to do it. It should probably be a patch. |
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.
I believe that this will be a breaking change for people using [attr.align]="someExpression"
. Also it looks like a bunch of unrelated code was modified.
I changed both in material-experimental and the regular material, including tests and example files. The formatting changed in some files as well automatically by clang-format (which is a recommended extension to VS Code). If you want, I can revert those changes. Regarding the |
…of dialog actions directive Fixes multiple issues, such as self-documentation of the align attribute, type checking, better bindings, and IDE support. Because align is not standard for HTMLDivElement, it doesn't make much sense to assume end users to know they can use the align attribute. Fixes angular#18479 for material-experimental
1a05339
to
462d407
Compare
@crisbeto Can you please rerun the checks now that I've updated the CLA? |
There's a bug in CircleCI that sometimes prevents the workflows from running and we don't have a way of triggering them. The one above which says that it needs approval is for deploying the dev app and it is optional. |
Oh ok, seems to have run now. Do you have any feedback on the PR? Is there anything that needs to be fixed? |
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.
It looks like CircleCI still didn't run. It might be easier to resubmit the PR.
}) | ||
export class MatDialogActions {} | ||
export class MatDialogActions { | ||
@Input() align?: 'center' | 'end' = undefined; |
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.
Rather than undefined
, should it support start
which doesn't apply any styling?
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.
Ok, I will resubmit a new PR.
Yes, that might be better for API consistency. I will do that change in my next PR
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Fixes multiple issues, such as self-documentation of the align attribute, type checking, better bindings, and IDE support. Because align is not standard for HTMLDivElement, it doesn't make much sense to assume end users to know they can use the align attribute.
Fixes #18479