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.

Add generic audit for accessible names

See original GitHub issue

Provide a basic description of the audit

Audit if roles that require an accessible name have one (e.g. dialog or tree)

How would the audit appear in the report?

title: Elements have an accessible name failureTitle: Elements do not have an accessible name description: When a $ROLE_NAME_HERE does not have an accessible name screen readers announce it with a generic name, making it unusable for users who rely on screen readers.

The documentation should distill https://www.w3.org/TR/wai-aria-practices-1.1/#name_calculation into a format that applies on a per-role basis. The original section is quite complex.

How is this audit different from existing ones?

  • button-name only warns on buttons
  • label only on form controls

Though I suspect both just check for existence of the accessible name.

What % of developers/pages will this impact?

I can’t make an estimate. Some roles with accessible name required are probably more common (dialog) while more complex widgets are likely rarer (such as tree)

How is the new audit making a better web for end users?

People using screen readers get a more meaningful announcement when navigating e.g. dialog or tree.

What is the resourcing situation?

Would like to help. I guess the biggest problem is that this new rule doesn’t interfere with existing naming audits so that users don’t get flooded with redundant errors.

Though it might be better to add audits/docs for each role instead.

Any other links or documentation that we should check out?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
connorjclarkcommented, Nov 16, 2020

Dedupe #11207. watch #11661 for updates.

1reaction
eps1loncommented, Nov 16, 2020

This sounds like a great candidate for axe-core which is what Lighthouse uses under the hood. Have you already discussed it with that team?

Tracked in dequelabs/axe-core#2421

Can be closed once lighthouse uses axe-core@^4.1.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix: "Buttons Do Not Have Accessible Names"
Automated audits may present the “buttons do not have accessible names" error. Here's how to quickly remediate this accessibility issue.
Read more >
Buttons must have discernible text | Axe Rules | Deque Systems
The Algorithm (in simple terms). Checks all buttons to ensure that they have a discernable, accessible name. Resources.
Read more >
Providing Accessible Names and Descriptions | APG - W3C
To help authors effectively provide accessible names and descriptions, ... Necessity of Naming: Indicates how necessary it is for authors to add a...
Read more >
What Is a Manual Accessibility Audit? - ADA Site Compliance
A manual accessibility audit and testing is essential to WCAG compliance in 2021. It's a simple to follow checklist with accessibility fixes.
Read more >
High-level Indicative Accessibility Audit
An audit of web accessibility was conducted using a combination of semi-automated evaluation tools and manual evaluation by Smarter Digital ...
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