This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
feat(datePicker): add support for aria-describedby #11762
Closed
Description
Bug, enhancement request, or proposal:
Enhancement request
Detailed Reproduction Steps:
- Create an md-datepicker and an ng-messages block for displaying input errors from the date picker.
- Attempt to specify the relationship between the two by using aria-describedby on the md-datepicker.
What is the expected behavior?
mdDatepicker should support an attribute of 'input-aria-describedby' that accepts element IDs. It should be propagated down to the input element.
mdAutocomplete supports this already:
https://material.angularjs.org/latest/api/directive/mdAutocomplete
What is the current behavior?
There's no easy way to associate the date-picker element with the error messages.
What is the use-case or motivation for changing an existing behavior?
Accessibility/screen readers.
Which versions of AngularJS, Material, OS, and browsers are affected?
Latest