Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit b11441c

Browse files
crisbetohansl
authored andcommitted
fix(dialog): add extra classes to identify buttons (#9463)
Adds classes to help identify the confirmation and close buttons in a dialog. This helps with writing tests that involve the dialog, because it doesn't depend on DOM order.
1 parent ce33beb commit b11441c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/dialog/dialog.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,10 +600,10 @@ function MdDialogProvider($$interimElementProvider) {
600600
' </md-dialog-content>',
601601
' <md-dialog-actions>',
602602
' <md-button ng-if="dialog.$type === \'confirm\' || dialog.$type === \'prompt\'"' +
603-
' ng-click="dialog.abort()" class="md-primary">',
603+
' ng-click="dialog.abort()" class="md-primary md-cancel-button">',
604604
' {{ dialog.cancel }}',
605605
' </md-button>',
606-
' <md-button ng-click="dialog.hide()" class="md-primary" md-autofocus="dialog.$type===\'alert\'">',
606+
' <md-button ng-click="dialog.hide()" class="md-primary md-confirm-button" md-autofocus="dialog.$type===\'alert\'">',
607607
' {{ dialog.ok }}',
608608
' </md-button>',
609609
' </md-dialog-actions>',

0 commit comments

Comments
 (0)