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.

Associate for attribute in label elements with aria-label with input elements #612

Closed
@ThomasBurleson

Description

@ThomasBurleson

Consider usage scenario of a table with checkbox columns:

table-editor-disabled-checkboxes

<label for='<some-id>'></label>
<p> ipsum lorem </p>
<md-checkbox id='some-id' ng-model="isChecked"></md-checkbox>
<!-- or even using:
<md-input id='some-id' type=checkbox type='checkbox'>
-->

Since the md-input or md-checkbox element has an assigned id, first check for a md-label element with matching for attribute value before warning about the aria-label; otherwise inject the lookup value (if aria-label was not explicitly specified).

md-label - when a for attribute could potentially register the aria-label is a global lookup. So the input element search associated labels is NOT a DOM search.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions