Esri / calcite-design-system

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

calcite-input-date-picker (range) has no viable hidden label for screen readers #8480

Open abp6318 opened 6 months ago

abp6318 commented 6 months ago

Check existing issues

Actual Behavior

Tabbing over the calcite-input-date-picker (range) OR using CTRL + OPTION + ARROWS does not read aloud the following:

While aria-label does work, it results in a "serious" issue with axeDev tools.

Expected Behavior

That a screen reader can read aloud 1 or more of the following when referencing a calcite-input-date-picker (range):

Reproduction Sample

https://codepen.io/abp6318/pen/LYaYVaE?editors=1000

Reproduction Steps

  1. Open Chrome, Firefox, or Safari
  2. Use COMMAND + F5 on Mac, or turn on a screen reader of your choice
  3. Navigate to the input using tab or CTRL + OPTION + ARROWS

Reproduction Version

1.11

Relevant Info

MacBook Pro 16 inch 2023 Apple M2 Chip 32 GB macOS Sonoma 14.1.2 Chrome Default screen reader

Regression?

No response

Priority impact

p3 - want for upcoming milestone

Impact

Users who need screen readers cannot hear any text related to date inputs. Out specific use case is for date range validation.

Calcite package

Esri team

ArcGIS Hub

geospatialem commented 6 months ago

Related: https://github.com/Esri/calcite-design-system/issues/7993

geospatialem commented 4 months ago

Spike results

It appears like the current value is read via the date format's placeholder text.

https://github.com/Esri/calcite-design-system/blob/b4ef364c2f7ea73cc810538835e33dae3da24742/packages/calcite-components/src/components/input-date-picker/input-date-picker.tsx#L563-L565

Would recommend we try to:

github-actions[bot] commented 4 months ago

cc @geospatialem, @brittneytewks