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

A11y: Global Styles - Light Mode Warning Yellow not hitting contrast ratio standard #3145

Closed rmstinson closed 1 year ago

rmstinson commented 3 years ago

Light mode warning yellow doesn't hit contrast ratio standards on a white background. Dark mode warning yellow is fine as long as it's on the prescribed background colors. Screen Shot 2021-09-30 at 3 46 43 PM

Recommend we use the dark yellow #7D7227 we use for headlines and links on the homepage as part of the out-of-the-box yellow theme option. It's kind of ugly but it's as close to yellow as we can get without it being completely brown:

Screen Shot 2021-09-30 at 3 46 53 PM

Thoughts?

github-actions[bot] commented 3 years ago

More information is required to proceed with this issue:

This issue will be automatically closed in three days if the information is not provided. Thanks for your understanding.

macandcheese commented 3 years ago

This came up in a previous issue and because the icon / accent bar color is purely decorative - and the text content itself should convey severity - it was deemed non-actionable: https://github.com/Esri/calcite-components/issues/994#issuecomment-842527676

I'll leave this issue open if others want to chime in here.

rmstinson commented 3 years ago

@macandcheese Gotcha! I'm wondering tho, if an icon isn't unimportant enough to not be legible for some users, should we be using the icon at all? It feels like it's not just an accessibility issue, the globe icons in the chips are barely legible to me and I don't have any visual impairments.

Screen Shot 2021-10-01 at 3 28 16 PM

It seems to me like we should reassess, since it's the only global style we have in the set.

macandcheese commented 3 years ago

Yeah, maybe we could look at adjusting the yellow value (although, if the result of that is a brown-yellow, folks will likely just override it). As far as using the icon - it's already opt-in / user-overridable so it is ultimately up to the implementing design team.

since it's the only global style we have in the set.

What do you mean by this?

rmstinson commented 3 years ago

since it's the only global style we have in the set.

@macandcheese Must have lost a word in editing should be "since it's the only inaccessible global style."

rmstinson commented 3 years ago

Warning Icons

Discussing it with @mitc7862 and other members of the design team, we got a lot of consensus around this direction - maintaining the yellow color theme, while keeping the warning icon as the default gray to ensure legibility - icons that are emphasizing messaging need to hit at least a 3:1 contrast ratio.

Hopefully this strategy can banish the gold/brown direction for all time

macandcheese commented 3 years ago

Per conversation with @rmstinson and @mitc7862 - design work / proposal to follow.

jcfranco commented 3 years ago

@macandcheese Any update on the design work/proposal?

macandcheese commented 3 years ago

@jcfranco not yet - needs to be done in coordination with the dark theme update to ensure any new colors work then. This should be pre v1 for sure but no immediate work has been done.

jcfranco commented 3 years ago

Got it. Thanks for the info!

@benelan We should probably adjust the milestone of this one since https://github.com/Esri/calcite-components/issues/3122 is in the Freezer. WDYT?

benelan commented 3 years ago

Yeah I agree, they should be together. I think we should freeze this one and add it to the v1 priorities project.

jcfranco commented 3 years ago

the_shining_-jack-frozen

geospatialem commented 2 years ago

@ashetland Can you take a look at the global style to determine the feasibility prior to our 1.0.0 release? If its feasible - once design recommendations are accepted, we can relay on to developers. cc @yelenakreyndel

geospatialem commented 1 year ago

@ashetland Remember touching base on this one a while back, but trying to recall the next steps as we move towards 1.0. WDYT on implementing for the January release?

ashetland commented 1 year ago

I believe we're going to look at this post v1.0 since it will require a rethink of color application. For now though, I believe we satisfy the AA req since the use of warning yellow is on secondary items (e.g. icons) and the "warning" itself would be written in the text. Even in the Chip example above, if the yellow Chip is meant to be a warning of some kind, that would be communicated in the chip text and the yellow border would be secondary to communicating that information.

geospatialem commented 1 year ago

I believe we satisfy the AA req since the use of warning yellow is on secondary items (e.g. icons) and the "warning" itself would be written in the text. Even in the Chip example above, if the yellow Chip is meant to be a warning of some kind, that would be communicated in the chip text and the yellow border would be secondary to communicating that information.

With the above, we believe to be adhering to the a11y success criterion. @SkyeSeitz and @ashetland verified Figma documentation provides guidance for designers.

Additional research will be conducted to determine if additional documentation is needed to ensure devs do not rely on color alone, and provide additional supporting text content.

geospatialem commented 1 year ago

Removing the design label as research has been conducted previously.

yelenakreyndel commented 1 year ago

@geospatialem Aaron and I were wondering if this issue is good to be closed or if something else is needed?

geospatialem commented 1 year ago

@yelenakreyndel Yes, didn't comment on this sooner, but I assigned myself to determine if the documentation site needs to be modified to ensure we mention color should not be the only means to convey information on our site. Reassigned to the April milestone to tackle.

geospatialem commented 1 year ago

Added a section to the the accessibility page on color considerations, anticipated in next Wednesday's doc release on Wed May 10.

github-actions[bot] commented 1 year ago

Installed and assigned for verification.

geospatialem commented 1 year ago

Verified on next.sites on the accessibility page - targeted for release on Wed May 10.

verify-a11y