WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Use of colour

for

From: Patrick H. Lauke
Date: May 6, 2018 1:14PM


On 06/05/2018 20:08, Birkir R. Gunnarsson wrote:
> 1. Color contrast is not required for disabled elements )text to
> background on disabled links do not have to pass the 4.5:1), of course
> if you can make them pass, you should.

Arguably, when the link is not clickable, it turns into an indicator
(rather than just being a disabled element).

> 2. Make sure that the color difference is not the only thing telling
> disabled links from active links. There must be a programmatic
> indication as well, such as using the aria-disabled="true" attribute
> for screen readers (in addition to tabindex='-1", or just removing the
> href attribute from inactive links.
> See the list of conditions in situation a on:
> https://www.w3.org/WAI/WCAG21/Understanding/use-of-color.html

Strangely, I thought there was an exemption for when there's a complete
inversion of foreground/background, but I must have misremembered.

P
--
Patrick H. Lauke

www.splintered.co.uk | https://github.com/patrickhlauke
http://flickr.com/photos/redux/ | http://redux.deviantart.com
twitter: @patrick_h_lauke | skype: patrick_h_lauke