Esri / calcite-design-system

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

Rating (Form) - Ensure color is not the sole means of communicating information - (2036570496) #5630

Closed dqateam closed 1 year ago

dqateam commented 2 years ago

Module:

40 Form

Violation:

Ensure color is not the sole means of communicating information

WCAG Reference:

Instance ID:

2036570496

Severity:

10

Description:

[Issue] There is image after the "How many stars would you give Calcite components?" that uses color alone to visually indicate selected state information.

[User Impact] Users with color blindness will have difficulty identifying the colors used to convey this information.

[Code Reference]

<label class="star selected" for="calcite-ratings-29af6f19-da8e-6288-620e-bc02ffec3557-1">
  (...)
</label>

.hovered, .selected, :host([read-only]) .average, :host([read-only]) .fraction {
    color: var(--calcite-ui-brand);
}

Note:

[Suggestion] Ensure color is not the sole means of communicating information. Color can be used as long as other visual indicators of the information are also present. Common additional visual indicators include underlining, bolding, additional on-screen text conveying the information, or change in shape or size.

Media Type:

Color and Contrast

Additional Resources:

geospatialem commented 1 year ago

image

geospatialem commented 1 year ago

This doesn't seem like a valid issue as selections are filled and colored, whereas unselected values are not filled or colored. Closing and marking as resolved.