aria-label field on insert/edit link
See original GitHub issueFeature request:
Are there any plans to include a field on the insert/edit link interface so one could include an aria-label? We are required to comply with WCAG standards and this would help us immensely. For example:
<a href="someURL.edu" aria-label="MBA admissions">Admissions</a>

We have both the stand-alone plugin for TinyMCE Advanced (5.2) and also WPBakery with TinyMCE integrated on different domains. Our WordPress (5.2.1) version and all plugins are all up to date. Looks like the majorVersion is 4 and the minorVersion is 9.4 for both.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:11 (2 by maintainers)
Top Results From Across the Web
Technique ARIA8:Using aria-label for link purpose - W3C
The aria-label attribute provides a way to place a descriptive text label on an object, such as a link, when there are no...
Read more >aria-label - examples and best practices - Aditus
aria -label is an attribute defined in the WAI-ARIA(opens in a new tab) specification. This specification extends native HTML, allowing you to change...
Read more >48609 (aria-label on links) - WordPress Trac
Are there any plans to include a field on the insert/edit link interface so one could add an aria-label? We are required to...
Read more >How to bind dynamic data to aria-label? - Stack Overflow
@BrunoJoão sorry, I meant that you should not use [attr.aria-label] and {{productDetails}} together, since the square brackets already resolve ...
Read more >aria-label - Accessibility - MDN Web Docs
The aria-label attribute defines a string value that labels an interactive element. Description. Sometimes the default accessible name of an ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@afercia You are correct and I was mistaken on this. My apologies as I didn’t know that aspect of the aria-label requirements. If this is considered in the future, perhaps the link text can be automatically visible (not editable) in an aria-label field or preview area, but the aria-label attribute would only be inserted in the markup if the user types something in the aria-label field. Food for thought. Thank you for your time.
Thanks @lorig, I’m pretty familiar with how aria-label works 🙂 Still, that example wouldn’t work for speech recognition software users. Screen readers are just one of the assistive technologies to support.
To meet the Label in Name WCAG success criterion, the aria-label needs to at least start with the same words used for the visible text. Otherwise, it won’t work for all users (and it will also be flagged as non-compliant).
The example you provided at the beginning of this issue would:
<a href="someURL.edu" aria-label="MBA admissions">Admissions</a>