You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using label elements to associate text labels with form controls (e.g., radio, checkbox) is common, and may be required by WCAG. If a labeled element doesn't have a valid aria-label or aria-labelledby attribute, the text from the label element can be used as an accessible name. However, suppose a labeled element has an aria-label or aria-labelledby attribute. In that case, the accessible name is calculated from the aria-label or aria-labelledby, and this rule should be triggered (with an error) if the label text is not part of the accessible name.
For example,
email:
Using label elements to associate text labels with form controls (e.g., radio, checkbox) is common, and may be required by WCAG. If a labeled element doesn't have a valid aria-label or aria-labelledby attribute, the text from the label element can be used as an accessible name. However, suppose a labeled element has an aria-label or aria-labelledby attribute. In that case, the accessible name is calculated from the aria-label or aria-labelledby, and this rule should be triggered (with an error) if the label text is not part of the accessible name.
For example,
email:
Also, refer to #2075 for more discussions.
The text was updated successfully, but these errors were encountered: