Skip to content
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(material/dialog) Use align as @Input() in MatDialogActions #24178

Conversation

PooSham
Copy link
Contributor

@PooSham PooSham commented Jan 9, 2022

Right now we're relying on css selectors [align='center'] and [align='end'] for aligning action buttons in the dialog. Relying on a non-standard attribute causes some issues, such as no self-documentation, no type checkings, more annoying data-binding syntax and errors from IDEs and text editors (notably, VS Code marks the align-attribute as red).

This is a continuation from this PR that failed to trigger CircleCI workflows, here

Fixes #18479

PooSham and others added 7 commits December 25, 2020 16:17
…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
…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
@PooSham PooSham changed the title fix(material/dialog) Use align as @Input() in dialog-actions directive fix(material/dialog) Use align as @Input() in dialog-actions directive Jan 10, 2022
@PooSham PooSham changed the title fix(material/dialog) Use align as @Input() in dialog-actions directive fix(material/dialog) Use align as @Input() in MatDialogActions Jan 10, 2022
@PooSham
Copy link
Contributor Author

PooSham commented Jan 13, 2022

Not sure why I get a Build error in circleci. I don't know what the Orb eddiewebb/queue is or why it isn't loaded on my branch. @crisbeto

@crisbeto
Copy link
Member

Me neither, I guess CircleCI is just being weird 🙁. This is a shot in the dark, but we could try squashing all the commits (currently it's only one) and recreating the PR.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Mar 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clarify use of non-standard "align" attribute for mat-dialog-actions
3 participants