Motor impairments: Who use alternative input methods, such as voice control, due to limited hand mobility.
Vision impairments: Who use screen readers to access the names of interactive elements.
Sandra is 38 years old. At the age of 16, her life took an unexpected turn during a sports accident on the basketball court. While attempting a daring dunk, she landed in an awkward manner, resulting in a spinal cord injury. Unfortunately, this event left her paralyzed from the waist down.
"I rely on dictation software to navigate websites because using a mouse for too long causes me pain. But sometimes, I tell the software to 'Click Submit,' and nothing happens because the button has a different label in the code like 'Send Form.' It is frustrating when simple tasks become impossible just because what I see does not match what the software recognizes. It might seem small, but when you face this all the time, it really adds up."
This section gives some examples of the issue.
A webpage contains a link with visible text that differs from the accessible name set by the aria-label attribute.
<a href="https://www.w3.org/TR/WCAG22/" aria-label="WCAG">Web Content Accessibility Guidelines</a>In this case, the visible text is
This mismatch can cause issues for users who rely on voice recognition software. For instance, if a user gives the command "Click Web Content Accessibility Guidelines," the software does not recognize the instruction because it references the visible text, not the accessible name. This inconsistency can lead to frustration and hinder users from accessing the intended link effectively.
A webpage contains a link where the visible text is included in the accessible name set by the aria-label attribute.
<a href="https://www.w3.org/TR/WCAG22/" aria-label="Web Content Accessibility Guidelines (WCAG)">Web Content Accessibility Guidelines</a> In this case, the visible text is Web Content Accessibility Guidelines, and the accessible name is Web Content Accessibility Guidelines (WCAG).
Since the visible label is included in the accessible name, users who rely on voice recognition software can successfully activate the link by saying "Click Web Content Accessibility Guidelines." This consistency ensures a smooth and accessible user experience for those users who navigate through speech commands.
This section provides information on how to identify and fix the issue.
The Acquia Web Governance platform highlights elements that have a semantic role as a widget supporting name from content. It flags these elements if they have visible text content and include an aria-label or aria-labelledby attribute, but the visible label is not part of the accessible name.
To fix the error, adjust the name set in the aria-label or aria-labelledby so that it matches or at least includes the visible text from the element, as shown in the example section on this page.
For more information, visit the link in the ACT rules section below for a complete technical explanation of this check.
Related accessibility conformance testing rules.
If this content did not answer your questions, try searching or contacting our support team for further assistance.
If this content did not answer your questions, try searching or contacting our support team for further assistance.