Components: Confirmative dialog buttons should be placed on the right side

Created on 16 Dec 2017  路  6Comments  路  Source: angular/components

Bug, feature request, or proposal:

In all the material samples of the https://material.angular.io/components/dialog section, the confirmative dialog buttons should be placed on the right side of the dialogs, as per Material design guidelines: https://material.io/guidelines/components/dialogs.html#dialogs-specs

What is the expected behavior?

All the confirmative buttons (like OK, Install etc) should be placed on the right, whereas the Dismissive actions (like No thanks etc) should go to the left.

What is the current behavior?

Currently, all the confirmative buttons are placed on the left, whereas the dismissive ones are placed on the right.

What are the steps to reproduce?

Open https://material.angular.io/components/dialog/overview and https://material.angular.io/components/dialog/examples pages and try open the sample dialogs

What is the use-case or motivation for changing an existing behavior?

The samples should conform to the official Material design Guidelines

docs has pr

Most helpful comment

@ewaschenko yeah, thank you. But I thought it would be logical if Angular Material enforces a default layout to right, to be in line with official Material spec

All 6 comments

There's still a problem with this. According to the spec, "Dismissive actions are placed directly to the left of affirmative actions and return the user to the originating screen or step in the process".

So, generally speaking, the dialog action buttons should be aligned to the right. However, currently they are aligned to the left.

This issue should be re-opened. As @Maximaximum said, according to the Material Dialog Specs actions should be right aligned not left aligned as they currently are.

To test, open the Material Dialog in stackblitz and increase the Dialog width to 400px

@josephperrott could you please reopen this issue?

@Maximaximum Looking at the Material Demo Page

you can set the actions to the right with [attr.align]="'end'"

@ewaschenko yeah, thank you. But I thought it would be logical if Angular Material enforces a default layout to right, to be in line with official Material spec

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._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xtianus79 picture xtianus79  路  3Comments

Miiekeee picture Miiekeee  路  3Comments

crutchcorn picture crutchcorn  路  3Comments

kara picture kara  路  3Comments

3mp3ri0r picture 3mp3ri0r  路  3Comments