Problem/Motivation

The screenshot below shows a GLOSSARY element containing the 'text' with the value #...

editorially-fault-targeting-a-link-containing-a-hash

In this scenario the # is indeed valid text so should either:

  • Not be identified as erroneous
  • Could still be but with options to 'IGNORE' or 'MARK AS OK'

Comments

sirclickalot created an issue. See original summary.

itmaybejj’s picture

Title: Faulty location of an empty link » Unpronounceable link throwing tip saying it is empty

Is there an aria-label or hidden text for that link that provides a machine-readable word to speak ("Number")? Otherwise this is a real WCAG 2.4.4 failure which should not be dismissable, as "#" is not a character screen readers speak; it is treated as an empty space. I suspect that is the case, because that test checks for ARIA and hidden text before throwing.

Is this custom code or the Glossary module? If not we should report this as an issue.

That said -- two thoughts:

  • Wow...yeah this 3.x tip title is definitely not helpful for figuring that out. I wrote this up for Adam so it can discuss splitting out a separate test. Otherwise I'll rewrite the tip.
  • The 3.x library can now accept parameters from themes or modules to allow dismissing specific errors by test name. I have not exposed that to the GUI, but it is something I am considering. Feel free to add that as a feature request if you think it is a feature you would use; I would only want to tackle that if people would actually use it.
sirclickalot’s picture

@itmaybejj

This is actually the output if the Search API AZ Glossary module.
(https://www.drupal.org/project/search_api_glossary)

The markup for each of the list items in the list is:

<li class="facet-item glossaryaz is-active yes-results"><ed11y-element-result class="ed11y-element" id="ed11y-result-0" data-ed11y-result="0" data-ed11y-open="false" style="outline: transparent solid 0px; top: initial; left: initial; transform: translate(-34px, 10px);" data-ed11y-jump-position="0" data-ed11y-action="false"></ed11y-element-result><a href="/glossary?glossary%5B0%5D=glossary%3Ac" rel="nofollow" class="is-active">#</a></li>
itmaybejj’s picture

Ok yup that's a real bug. I've added an issue to that queue.

I'll leave this open for the other half of the issue -- rewriting my tooltip or splitting the text.

On your site, if you are not able to fix the problem and just want to suppress the alert temporarily, you could add a selector for .glossaryaz to Editoria11y's config list of selectors for elements to ignore. I wouldn't.

  • itmaybejj committed 4631d97f on 3.0.x-dev
    feat: #3574734 Unpronounceable link throwing tip saying it is empty
    
itmaybejj’s picture

Status: Active » Fixed

Rewriting my tip for now; will revisit if Adam and I decide to split the test.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.