placeholder text is copied to aria-label, resulting in the text read twice
Actual Behavior:
-
The screen reader reads out "Address 2 with hint address 2, edit text", which reads the placeholder text twice.
-
The reason is that the placeholder text is copied to aria-label if there is no aria-label present (https://github.com/angular/material/blob/master/src/components/input/input.js#L343)
-
By removing the redundant aria-label, the screen reader reads out "Address 2, edit text", which should be as expected.
Demo (or steps to reproduce the issue): *
- Please listen to the screen reader when the 'Address 2' input get focus in angular material demo page: https://material.angularjs.org/latest/demo/input
AngularJS Versions: *
AngularJS Version:1.5.5AngularJS Material Version:1.1.3
Shortcut to create a new CodePen Demo.
Note: * indicates required information. Without this information, your issue may be auto-closed.
Do not modify the titles or questions. Simply add your responses to the ends of the questions. Add more lines if needed.