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 76 forks source link

Input Time Picker - Ensure ARIA roles, states, and properties are valid - (2036570553) #7795

Closed dqateam closed 1 year 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:

driskull commented 1 year ago

This one does not seem valid. disabled is not a native attribute on a custom web component.

geospatialem commented 1 year ago

Closing per https://github.com/Esri/calcite-design-system/issues/7795#issuecomment-1799404009