question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

aria-label field on insert/edit link

See original GitHub issue

Feature 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>

tiny-mce-aria-label

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:open
  • Created 4 years ago
  • Reactions:1
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
lorigcommented, Dec 23, 2019

@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.

0reactions
aferciacommented, Dec 9, 2019

An aria-label, when present, is read instead of the actual link text and can be used to differentiate links when the link text is the same for more than one instance on a page. For example, you have different sections on a page that to a non-visually impaired person, the groupings are very clear, but for a screen reader tabbing through the page, the aria-label is read instead of “Admissions…Admissions…Admissions”. Link title attributes do not work.

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).

I am not sure how this could do more harm than good

The example you provided at the beginning of this issue would:

<a href="someURL.edu" aria-label="MBA admissions">Admissions</a>

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found