material icon indicating copy to clipboard operation
material copied to clipboard

feat(datePicker): add support for aria-describedby

Open mkowalchuk opened this issue 7 years ago • 1 comments

Bug, enhancement request, or proposal:

Enhancement request

Detailed Reproduction Steps:

  1. Create an md-datepicker and an ng-messages block for displaying input errors from the date picker.
  2. 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

mkowalchuk avatar Jul 17 '19 18:07 mkowalchuk

Posted PR https://github.com/angular/material/pull/12060 to add support for this.

Splaktar avatar Dec 15 '20 04:12 Splaktar