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

Shell and Shell Panel - Avoid inappropriate use of ARIA roles, states, and properties - (2036570578) #7824

Closed
Tracked by #7851
dqateam opened this issue Sep 19, 2023 · 2 comments
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 Sep 19, 2023

Violation:

Avoid inappropriate use of ARIA roles, states, and properties

image

WCAG Reference:

Severity:

5

Media Type:

ARIA


Areas for Remediation:

  • Title: Shell and Shell Panel - Avoid inappropriate use of ARIA roles, states, and properties - (2036570578)
  • Module: Shell and Shell Panel
    Pattern: ARIA - Inappropriate use of aria-label.]

Issue
There are buttons with inappropriate use of aria-label and title attribute. that renders out inaccurate information.

Occurrences
29 Shell and Shell Panel

  • Navigate through the action bar
  • Additional Block example
  • A filter-enabled value list
  • Layers action, for display purposes only

30 Shell Center Row

  • Navigate through the action bar
  • Additional Block example
  • A filter-enabled value list
  • Layers action, Indicator on
  • Shell center row example

User Impact
When inappropriate ARIA roles, states, and/or properties are used, screen reader users will mistake these elements for other control structures or the use may prevent users of assistive technology from interacting with the control.

Code Reference

<button aria-controls="d2584e27-fb95-18bd-fe10-4e09e487eb07-region" aria-expanded="true" aria-label="Collapse" class="toggle" id="d2584e27-fb95-18bd-fe10-4e09e487eb07-button" title="Collapse">
(...)
</button>

Suggestion
Developers must avoid inappropriate use of ARIA roles, states, and/or properties. Remove aria-label and title attributes.

Compliant Code Example

<button aria-controls="d2584e27-fb95-18bd-fe10-4e09e487eb07-region" aria-expanded="true" class="toggle" id="d2584e27-fb95-18bd-fe10-4e09e487eb07-button">
(...)
</button>

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 Sep 19, 2023
@macandcheese
Copy link
Contributor

This seems unrelated to Shell or Shell Panel - referenced code is not part of these components. Could we close this one?

@geospatialem
Copy link
Member

The issue was with block, which was addressed in #5565.

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

3 participants