Problem/Motivation

The "Close"-link for the crisis-banner has a different text as the aria-label:
<a href="/node#close" class="banner-close-button active dvgCrisisBanner-processed" aria-label="Sluit deze banner" role="button" tabindex="0">Sluiten</a>

According to https://www.w3.org/WAI/WCAG21/Understanding/label-in-name.html these should be the same.

Steps to reproduce

Inspect the code when a crisis banner is active.

Proposed resolution

* Change the title of the link to "Close this banner"
* Remove the aria-label, as they are the same

Comments

JoshaHubbers created an issue. See original summary.

joshahubbers’s picture

Issue summary: View changes
joshahubbers’s picture

StatusFileSize
new900 bytes

This patch changes the link label and removes the aria-label.

bskibinski’s picture

Status: Needs review » Reviewed & tested by the community

Yes, perfect, this will make it easier for voice command navigation.

Works as intended!

joshahubbers’s picture

Status: Reviewed & tested by the community » Fixed

Committed

  • JoshaHubbers authored 30c289f on 7.x-1.x
    Issue #3227506 by JoshaHubbers, bskibinski: WCAG 2.5.3: Label in Name....

Status: Fixed » Closed (fixed)

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