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

Action - Ensure CSS background images that convey meaning have textual and visible equivalents - (2036569747) #5557

Closed
Tracked by #4599
dqateam opened this issue Oct 25, 2022 · 1 comment
Labels
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.

Comments

@dqateam
Copy link
Collaborator

dqateam commented Oct 25, 2022

Module:

04 Action

Violation:

Ensure CSS background images that convey meaning have textual and visible equivalents

WCAG Reference:

Instance ID:

2036569747

Severity:

8

Description:

[Issue]
The "blue" meaningful CSS indicator with no textual equivalents.

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

[Code Reference]

CSS:
constructed stylesheet
:host([indicator]
.button::after {
   content: "";
   position: absolute;
   block-size: 0.5rem;
   inline-size: 0.5rem;
   border-radius: 9999px;
   border-width: 2px;
   background-color: var(--calcite-action-indicator-color);
   border-color: var(--calcite-ui-foreground-1);
   inset-block-end: 0.75rem;
   inset-inline-end: 0.75rem;
}

Note:

[Suggestion]
Ensure CSS background images that convey meaning have textual and visible equivalents.

The best way to do this is to use a real <img> or SVG element. To provide a textual equivalent for an <img> element, add an alt attribute set to the desired text. To provide a textual equivalent for an SVG, add role="img" to the <svg> element and add an aria-label attribute set to the desired text.

[Compliant Code Example]

N/A

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

Closing in favor of #4813, as we have more discussion, context, and information through the original issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.
Projects
None yet
Development

No branches or pull requests

2 participants