Skip to content
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

Description

@mkowalchuk

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2: requiredIssues that must be fixed.a11yThis issue is related to accessibilityg3: reportedThe issue was reported by an internal or external product team.has: Pull RequestA PR has been created to address this issueresolution: fixedtype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions