fix(dialog): don't assign aria-label to close button if button has text (#11093)

No longer adds the `aria-label` to the `mat-dialog-close` directive, if the element that it's being applied to has text. This prevents the label from being read instead of the button text.

Fixes #11084.
This commit is contained in:
Kristiyan Kostadinov
2019-02-13 16:29:38 +01:00
committed by Jeremy Elbourn
parent 7cd002dff6
commit 3163cc6d74
3 changed files with 44 additions and 3 deletions
+1
View File
@@ -45,6 +45,7 @@ export declare const matDialogAnimations: {
};
export declare class MatDialogClose implements OnInit, OnChanges {
_hasAriaLabel?: boolean;
_matDialogClose: any;
ariaLabel: string;
dialogRef: MatDialogRef<any>;