W3C home > Mailing lists > Public > w3c-wai-gl@w3.org > January to March 2019

RE: Color contrast principle

From: Alastair Campbell <acampbell@nomensa.com>
Date: Thu, 7 Feb 2019 22:27:30 +0000
To: James A. <A.James@soton.ac.uk>, "WCAG list (w3c-wai-gl@w3.org)" <w3c-wai-gl@w3.org>
Message-ID: <AM5PR0902MB2002F7E67C537A3941C755D2B9680@AM5PR0902MB2002.eurprd09.prod.outlook.com>
James wrote:
> We are looking at coloured buttons without a border and there doesn’t seem to be any examples that cover this in the understanding document.

Conceptually the ‘boundaries’ section covers this:
“This success criteria does not require that controls have a visual boundary indicating the hit area, but if the visual indicator of the control is the only way to identify the control, then that indicator must have sufficient contrast. …  If a button with text also has a colored border, since the border does not provide the only indication there is no contrast requirement beyond the text contrast”

Perhaps that should be  “If a button with text also has a colored border or background…”?

Just before publication of 2.1 there was a discussion along the lines of: Requiring links/buttons with a background seemed to be counter-productive. There were quite a few examples [1] where it was judged that requiring a flat background color to have contrast had a negative impact.

That should be represented in the understanding doc, but if it isn’t clear, we can add some examples.

So the answer to:


  *   if there is a visual indicator of the control other than through the colour of the hit area (e.g. through styling of the text as in this example), does it pass?

It depends on the control, but a hit-area isn’t required, so if it is a link/button then there is no contrast requirement beyond the ‘content’ (text or icon). Other types of control rely more on visual information though, so inputs and checkboxes (for example) would need some visual indicators with contrast.


  *   if it easier to pass this success criteria when no indication of the hit area is provided (particularly with icon buttons), would that actually be more detrimental to accessibility/usability?

That was part of the reason why we decided not to have a requirement for hit area, it would setup a negative incentive. So whilst it is desirable to have a hit-area (i.e. an affordance) for buttons, that is more from a usability point than accessibility (i.e. sucks for everyone).

There is an argument for an accessibility guideline for visual affordances, but it’s a different one from the low-vision contrast requirement that probably requires some form of personalisation.

Cheers,

-Alastair

1] https://lists.w3.org/Archives/Public/public-comments-wcag20/2018May/0001.html


Received on Thursday, 7 February 2019 22:27:56 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 21:08:29 UTC