Esri / calcite-design-system

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

[input type="date"] dark mode low contrast icon #8859

Open gpbmike opened 4 months ago

gpbmike commented 4 months ago

Check existing issues

Actual Behavior

The calendar icon on the calcite-input component with type="date" is hard to distinguish from the background.

image

Expected Behavior

The calendar icon color contrast should make it more visible (left).

image

Reproduction Sample

https://codepen.io/gpbmike/pen/eYomOQY?editors=100

Reproduction Steps

<body class="calcite-mode-dark">
  <calcite-input type="date"></calcite-input>
</body>

Reproduction Version

2.6.0

Relevant Info

MacOS 14.3.1 Chrome 122

Regression?

No response

Priority impact

p4 - not time sensitive

Impact

Accessibility issue.

Calcite package

Esri team

ArcGIS Site Scan

gpbmike commented 4 months ago

Setting color-scheme: dark on the shadow DOM input is how I changed the icon in the "expected" screenshot.

geospatialem commented 3 months ago

Spike to determine next steps.

Can we support native and browser icons when the input is set to "date", "week", "time", "month", etc...?

gpbmike commented 3 months ago

I ended up working around this by adding html { color-scheme: dark; }.

Some possible solutions to this:

github-actions[bot] commented 3 months ago

cc @geospatialem, @brittneytewks

geospatialem commented 3 months ago

Based on Mike's sleuthing above we can add a dark mode css selector - updated the estimate and priority for future implementation.