Skip to content

A11Y: Radio buttons don't show checked state in high contrast mode #3875

@mpriour

Description

@mpriour

Summary

High contrast mode on Windows renders webpages with forced colors and removes box-shadows and background colors. Calcite-component's radio buttons use box-shadows to indicate checked state. This doesn't work on high contrast and makes it impossible to determine which radio button is selected.

Actual Behavior

Screen Shot 2022-01-06 at 7 52 39 PM

Layers is selected, but shows nothing.

Expected Behavior

Something like this

Screen Shot 2022-01-06 at 8 52 12 PM

Reproduction Steps

  1. Open windows VM
  2. Go to settings > High Contrast and enable
  3. Visit https://developers.arcgis.com/calcite-design-system/components/radio-button-group/

Relevant Info

All browsers on Windows. MacOS doesn't provide a true high contrast option.

Version: @esri/[email protected]

  • CDN
  • NPM package

Working W3C Example/Tutorial

Possible to use forced-colors media query to add elements or styling specifically for this issue.
https://developer.mozilla.org/en-US/docs/Web/CSS/@media/forced-colors#examples
This media query is supported on Chrome 89, Edge 79, and Firefox 89

Metadata

Metadata

Assignees

Labels

3 - installedIssues that have been merged to the "dev" branch and/or are ready for QA/QC.StaleIssues or pull requests that have not had recent activity.a11yIssues related to Accessibility fixes or improvements.bugBug reports for broken functionality. Issues should include a reproduction of the bug.p - highIssue should be addressed in the current milestone, impacts component or core functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions