-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Review the usage of aria-label on the blocks contenteditable #5981
Comments
For clarity: when using
so the aria-label makes perfectly sense. Its value should be improved though. Instead, when
this is not exposed like a text field or textarea. See also #5983 |
|
Removing the Needs Testing label as there's not so much to test. The visible placeholder text is used also as value for the aria-label attribute, also when the contenteditable area has content. This is far from ideal and needs to be changed for assistive technologies users. Will expand later with some proposals. |
Moving this out of milestone as it's not clear what remains actionable here. If we need an issue for "aria-label should be different when contenteditable element has content" let's open one and treat it like a bug. |
Yes there's the need for "aria-label should always be different from the placeholder". It's important enough to stay in the milestone. Please let the a11y team know if there's the need to open a new issue or just re-open this one. |
This seems to be a duplicate of #1659, specifically #1659 (comment) |
Currently, the various blocks
contenteditable
use anaria-label
attribute, some examples (with other attributes relevant for aassistive technologies):Though the intent is to give users some instructions or hint about what to type, this is a not proper use of aria-label, as it is supposed to override the element content. I doubt there's any expected behavior about what
aria-label
should do when used on acontenteditable
element.contenteditable
is buggy and still greatly inconsistent across browsers and assistive technologies. For example, some screen readers read out the aria-label and thecontenteditable
content, some don't.Regardless, we shouldn't use
aria-label
this way. We should find a different way to provide users this "hint".The text was updated successfully, but these errors were encountered: