mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Jeremy Elbourn
parent
7cd002dff6
commit
3163cc6d74
+1
@@ -45,6 +45,7 @@ export declare const matDialogAnimations: {
|
||||
};
|
||||
|
||||
export declare class MatDialogClose implements OnInit, OnChanges {
|
||||
_hasAriaLabel?: boolean;
|
||||
_matDialogClose: any;
|
||||
ariaLabel: string;
|
||||
dialogRef: MatDialogRef<any>;
|
||||
|
||||
Reference in New Issue
Block a user