mdn / content

The content behind MDN Web Docs
https://developer.mozilla.org
Other
8.96k stars 22.45k forks source link

aria-label can be used on non-interactive elements #28397

Open luce-carevic opened 11 months ago

luce-carevic commented 11 months ago

MDN URL

https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label

What specific section or headline is this issue about?

No response

What information was incorrect, unhelpful, or incomplete?

The aria-label attribute defines a string value that labels an interactive element.

The aria-label attribute is intended for interactive elements only.

Note: aria-label is intended for use on interactive elements, or elements made to be interactive via other ARIA declarations, when there is no appropriate text visible in the DOM that could be referenced as a label

What did you expect to see?

For the first sentence, I would expect the mdn page to use the same definition as the Accessible Rich Internet Applications (WAI-ARIA) 1.2 W3C Recommendation.

Defines a string value that labels the current element.

For the other paragraphs, I would simply delete them since it's not accurate (and contradicts the rest of the doc).

Do you have any supporting links, references, or citations?

Official spec: https://www.w3.org/TR/wai-aria-1.2/#aria-label

Do you have anything more you want to share?

No response

MDN metadata

Page report details * Folder: `en-us/web/accessibility/aria/attributes/aria-label` * MDN URL: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label * GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/accessibility/aria/attributes/aria-label/index.md * Last commit: https://github.com/mdn/content/commit/07f0cf4375aaa02e1071d8bd0e8518db7609b7a9 * Document last modified: 2023-07-17T23:05:13.000Z
bsmth commented 11 months ago

Thanks for opening the issue. For context, this wording was introduced here: https://github.com/mdn/content/pull/10575#discussion_r753715233

julienw commented 3 weeks ago

From #31739:

Especially I'd like to see the difference in behavior between "roles supporting Name from Author" and "roles supporting Name from Content" and some more explanation around these concepts.

Thanks