Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input, Input Message - Provide alternative text for images - (2036569944) #5577

Closed
Tracked by #4599
dqateam opened this issue Oct 25, 2022 · 2 comments
Closed
Tracked by #4599
Labels
4 - verified Issues that have been released and confirmed resolved. a11y Issues related to Accessibility fixes or improvements. bug Bug reports for broken functionality. Issues should include a reproduction of the bug.

Comments

@dqateam
Copy link
Collaborator

dqateam commented Oct 25, 2022

Module:

16 Input & Input Message

Violation:

Provide alternative text for images

image

WCAG Reference:

Instance ID:

2036569944

Severity:

10

Description:

[Issue]
There are meaningful images without a textual equivalent. Examples include:

  • "i" icon
  • "Success" icon
  • "warning" icon
  • "error " icon

[User Impact]
Screen reader users will be unable to determine what these images represent.

[Code Reference]

<calcite-icon class="calcite-input-message-icon" aria-hidden="true" icon="information" scale="s" calcite-hydrated="">
<svg class="svg" fill="currentColor" height="100%" viewBox="0 0 16 16" width="100%" xmlns="http://www.w3.org/2000/svg">
(...)
</svg>
</calcite-icon>

Note:

[Suggestion]
Provide alternative text for images. Meaningful images must have a concise but descriptive textual equivalent. Remove aria-hidden="true" from the <calcite> element. In the case of svg elements, it is recommended to add role="img", <title> with the text equivalent and aria-labelledby set to the id of the title element

[Compliant Code Example]

<calcite-icon class="calcite-input-message-icon" icon="information" scale="s" calcite-hydrated="">
<svg class="svg" fill="currentColor" height="100%" viewBox="0 0 16 16" width="100%" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="title">
<title id="title">Information</title>
(...)
</svg>
</calcite-icon>

Media Type:

Images

Additional Resources:

  • Report Source: Product accessibility evaluation conducted on the Calcite Design System in August, 2022.
@dqateam dqateam added 0 - new New issues that need assignment. a11y Issues related to Accessibility fixes or improvements. bug Bug reports for broken functionality. Issues should include a reproduction of the bug. needs triage Planning workflow - pending design/dev review. labels Oct 25, 2022
@geospatialem
Copy link
Member

A similar request is needed for #5603

@geospatialem geospatialem added 4 - verified Issues that have been released and confirmed resolved. and removed 0 - new New issues that need assignment. needs triage Planning workflow - pending design/dev review. labels Feb 13, 2023
@geospatialem
Copy link
Member

Mitigated in a PR prior to the 1.0.5 release, where the svg uses aria-hidden="true".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4 - verified Issues that have been released and confirmed resolved. a11y Issues related to Accessibility fixes or improvements. bug Bug reports for broken functionality. Issues should include a reproduction of the bug.
Projects
None yet
Development

No branches or pull requests

2 participants