Esri / calcite-design-system

A monorepo containing the packages for Esri's Calcite Design System
https://developers.arcgis.com/calcite-design-system/
Other
290 stars 75 forks source link

Tile Select Group and Tile Select - Ensure ARIA roles, states, and properties are valid - (2036570566) #7843

Closed dqateam closed 10 months ago

dqateam commented 1 year ago

Violation:

Ensure ARIA roles, states, and properties are valid

WCAG Reference:

Severity:

5

Media Type:

ARIA


Areas for Remediation:

Issue There are elements with invalid ARIA attribute aria-disabled="true" as it already has native HTML disabled attribute.

Occurrences 04 Action

User Impact Assistive technologies may be unable to parse this content.

[Code R eference]

(..)

Suggestion Ensure ARIA roles, states, and properties are valid. Many ARIA attributes can only be used on certain elements. Some can only be used in combination with other attributes. Additionally, if an attribute references an ID, that ID must be present in the page.

To detect many of these errors automatically, use the Nu Html Checker: https://validator.w3.org/nu/

Compliant Code Example

<div calcite-hydrated="" tabindex="-1" summary="Materials or substances such as minerals, forests, water, and fertile land that occur in nature and can be used for economic gain." heading="Natural Resources" disabled="">
(..)
</div>

Additional Resources:

geospatialem commented 10 months ago

Duplicate - closing in favor of https://github.com/Esri/calcite-design-system/issues/7775