Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

fix(input): expect md-input-container to have aria-label #2397

Conversation

matthewrfindley
Copy link
Contributor

Bug fix for #1242.

See issue for requirements.

@@ -110,6 +110,8 @@ function labelDirective() {
*
* @param {number=} md-maxlength The maximum number of characters allowed in this input. If this is specified, a character counter will be shown underneath the input.<br/><br/>
* The purpose of **`md-maxlength`** is exactly to show the max length counter text. If you don't want the counter text and only need "plain" validation, you can use the "simple" `ng-maxlength` or maxlength attributes.
* @param {string=} aria-label Aria-label is required when no label is present. A warning message will be logged in the console if not present.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably read "aria-label is required when no label element is present. mdInput will attempt to copy placeholder content to aria-label. If neither is present, a warning will be logged to the console."

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants