ods-ios icon indicating copy to clipboard operation
ods-ios copied to clipboard

Update background color of button in disable state

Open ludovic35 opened this issue 1 year ago • 1 comments

If we put the button on yellow surface we have this:

Capture d’écran 2024-01-31 à 16 46 53

Today we use Color(UIColor.quaternarySystemFill) with an alpha. So what is the right token color ?

ludovic35 avatar Jan 31 '24 15:01 ludovic35

This button should not appear on a yellow background, it will only appear on light and dark surfaces, so there should be no issue with colour. In terms of accessibility there is not criteria for colour contrast in the W3C standards for disabled UI elements. In fact it specifically says disabled elements do not need to meet the criteria:

https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html

mccart77 avatar Feb 07 '24 10:02 mccart77