WebAIM - Web Accessibility In Mind

E-mail List Archives

1.4.1 use of color for state indicator

for

From: glen walker
Date: Mar 9, 2020 12:20AM


--00000000000068f3f105a0660246
Content-Type: text/plain; charset="UTF-8"

[image: image.png]
(Image Description: Four buttons, labeled A, B, C, and D. Buttons A, B,
and D have black text and a white background. Button C has white text and
a black background.)

If you have a set of buttons, such as in a toolbar, and one button is
selected and the others are not, and that selection is indicated by a color
difference, isn't that a 1.4.1 failure?

"Color is not used as the only visual means of conveying information..."

The example in the image has the highest contrast difference between states
but there isn't a requirement for contrast between states. Technically,
the black selected button is only different from the other buttons by
color. It's using color as the only means to convey the selected meaning.
Even if the selected button had a "pushed in" appearance, that would still
only be a color difference (having the southeast button borders be a light
color and the northwest borders be a darker color).

F73 (https://www.w3.org/TR/2016/NOTE-WCAG20-TECHS-20161007/F73) talks about
red and pink not being color differences but rather lightness differences
so if my unselected buttons were red and the selected button was pink, it
could technically pass, but I'm sure I agree with that.

F73 could be applied to the black and white buttons too, and as noted in
"Note 1", the buttons would differ by both color and lightness so could
technically pass.

This just seems weird. White is a color and black is a color and that's
the only difference between the buttons and that difference has meaning, so
it seems like it would fail.

I know the buttons could pass if the selected button had a bold or italic
font, such this:

[image: image.png]
(the bold font of the C button is hard to distinguish)

[image: image.png]
(italic font is a little easier to spot but still not great)

Or if there was some other visual indicator to show its selection, such as
an extra underline under the button such as this:

[image: image.png]

I can't think of a case where a user that has sight, even if severe color
deficiencies, could not tell the difference between the buttons without the
font change or underline. (Assuming aria-pressed is specified too).

--00000000000068f3f105a0660246
Content-Type: image/png; name="image.png"
Content-Disposition: inline; filename="image.png"
Content-Transfer-Encoding: base64
Content-ID: <ii_k7k1xqb11>
X-Attachment-Id: ii_k7k1xqb11

iVBORw0KGgoAAAANSUhEUgAAAKcAAAAiCAYAAAA6a8mHAAAEEklEQVR4nO2cT0gjVxzHf7dBpEgC
OUn2EkoPHqTUg2xOWcoeLMQVukihORVbPHgpLAUpBAqhROhCaSA5NL3k4GULCbs9V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5vfcqmB3d3
x3e7sbt8/9dpd5JAPiGymFws8acOT4g2V0LDF8fUycWdt/bRHCVZTExOcSf9UIujpNcjzNzXT6i3
2vQ0pXN8SOPFj3z7yU29n61vNZU+FTTfSnKJ+VaSWoycCjFyqsXIqRAjp1qMnAoxcqrlSnLu7Oyc
fdDvYUdQMq6trfmeLUh1tMt6QU7dwtoRhIw6iRmUOtplNf+OxqAtRk6Dthg5Ddpi5DRoy7/zk+cz
eg5b1wAAAABJRU5ErkJggg==
--00000000000068f3f105a0660246
Content-Type: image/png; name="image.png"
Content-Disposition: inline; filename="image.png"
Content-Transfer-Encoding: base64
Content-ID: <ii_k7k2jhhy2>
X-Attachment-Id: ii_k7k2jhhy2

iVBORw0KGgoAAAANSUhEUgAAAKoAAAAhCAYAAABJATCZAAAEQUlEQVR4nO2cP2hbVxSHz/YwohgZ
NCVuB1E0ZBAhHoRNB5dMLchxKIRANAQjiqFaCl00VFAQRR5CQw3yEE8eTCAFmTaDjQUpCcglbqHU
jQNCFEshiA5KwSY4ZPg6SLFl5cn2ld59f+D+4A7Se7rvp/O+d8899woJRkYBkHhtwMjoPDKgGgVC
BlSjQMgW1Eaj4ZtWrVZtjXvtK2geG40Gy8vLfUHw2ttZMfU1qNVqlWKx6OvABsFjo9GGtJ9Pv3m1
i+mpoHqtYrF4JgRe6zweRcTzdprPbq9+kJ1XA+qQMqA6LwOqBhlQnZcBVYMMqM7LgKpBBlTn5Rqo
O4V4O0DheTYOB+5GA6glUnY3MhTh0rUCjxrqZnWCOvbZXdaf1fnv9dujPt/st6g/W+fel5OMeQ1q
KWUby48SSb69/xetAe+9S6Buk4u+Mx5mfghStYEavUo6ne60m3z68SiWCBLJUFa0qwfUMW6t7fHm
jGv/8b0/QI1eTR/FM5m4wKjVvqYVy7DRVOsS3AJ1O0dUhKl8nqQI4fkNBkVVG6ipUs/7TVaSFiLj
ZCvOe1QFNVbcpWsMZe/XPNcvjiAywsXredar+4B/QH0vnAe73J+LYYlgTRT404GH33FQt3NRRKZY
rLVYSQpipSg5mAKG89gPVKhkxxGZ4M5z5z0qgTqSpfL6uI/9J98w8t55Mb7afMFTv4IKQIuHcxFE
LGZXW0rdugBqJ+1PLVID6kvTiFikBiTVHVAP+Gczz3RYiMw9RC2kGkD97mnXaLrH6ieDzW+9BxWo
LTIlgiRXlOKqH9RO2o8Xdtqv60tMi2ClSgOlf9eKKRE++HyJ3QM9HlWAmll7edzBq03SDkDqGahU
yI4LEs5QVuhWO6jttB/nHadQZ2l68PTvTjGVJpmIEBJBIilKipN/raC+XGMm0KDuUIgLIin6nmIj
zaB2np54gZ2ud4dJ/27OUZsPbhAW9eLPjKjnGFHHs6jUqHpBrWQZPyVQ1uyqlvmfmvqDenSs50Fz
wqOZo/pojtqumsNc+SJ9Iq2m0zdJRASxZlEs/twF9fABN/wA6oc/8vcxqX2q/jFu/eL3qv+QSjaK
z6r+zhAfzbFtc7S9U+WM4cE9Qn9QD/g9P4ElQjRn9w2G86g6+s389OLEOmpz6+7JddTnr3iLj9dR
Dxs8yk0SEsGauKP04INOUMsZwqfd5E4KUE3/7hRTSRKRUHt6EvuasoZRXz1Vx8g++bcLVnv5BdR+
O1OhyRyP/bQzVc6EOVnt96rG4pR6+ndnecpi9MIlruV+9sXy1HEb4fLtezZ7/U1qv63xw+3LNlMC
b0A90Y72+ncZIJyA+fWUFplfTzkvA6oGGVCdlwFVgwyozsuAqkEGVOelBOrW1tbRB7xuQfa4sLDg
ubezfPoxnr1ebUH1s+EgefQbpP18+jGevV7NX/oYBUIGVKNAyIBqFAj9D6VC3SqcAoDOAAAAAElF
TkSuQmCC
--00000000000068f3f105a0660246
Content-Type: image/png; name="image.png"
Content-Disposition: inline; filename="image.png"
Content-Transfer-Encoding: base64
Content-ID: <ii_k7k2l03a3>
X-Attachment-Id: ii_k7k2l03a3

iVBORw0KGgoAAAANSUhEUgAAAKgAAAAgCAYAAACGqDMBAAAERklEQVR4nO2cP2gbZxiH3+0QphgF
NDnqIooHD8bUg6nIoF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IToMmTRzOXVvE+rt9NsnG0wTdeFPT0mO8WJtDE2l2R4QTdXsY/
6OZW1gibaPPOLJKizAXG9GnI5Fds2/CUN/PUu/F9uX1S1KL5osJhqUTpsEK9c9Z5nOZd1wXtd5Kk
MbGQ40+vnCRtL/sHT5ipsBY23uad2WbSGJ+Y4k7iBw9tM+lPypl7eX6rvqLZag/4ukG9UmI9efX5
uzOCXvw552fxOzXLTw/Vt5lMor7NZC1KUItRglqLEtRilKDWogS1GCWotby1oHt7e+cfdvvqxahk
XF1ddT3bKNWxX9YLgnotcC9GIaOX5ByVOvbLqv71jcLTKEEVnkYJqvA0SlCFp/kPOUE0jA5+QpQA
AAAASUVORK5CYII=
--00000000000068f3f105a0660246
Content-Type: image/png; name="image.png"
Content-Disposition: inline; filename="image.png"
Content-Transfer-Encoding: base64
Content-ID: <ii_k7k2n5zx4>
X-Attachment-Id: ii_k7k2n5zx4

iVBORw0KGgoAAAANSUhEUgAAAKgAAAArCAYAAADsb8PCAAAFy0lEQVR4nO2cT0gjVxzH320QKUuE
nIp7CWUPe5BSD7KeLHuphewKXZaF5lRC8eClIAUpCIVQFFooFeKhOXnwsgVDW2PUlEzYoEk0bSTZ
XRykNor4j6kxmphM9NtDMlbdJDrjvPmD7wO/i8E3P37zmfd7700IAYNhYojRCTAYzWCCMkwNE5Rh
at4RdGNjwzQhCELdpI3Oy2o5+nw+0+fYqI6mFVQQBHi9XlMX1go5+nw+0+fYrI4NBTUar9d7bWGN
5iY5EkIMDavXkQl6C5ig2sAEpQQTVBuYoJRggmoDE5QSTFBt0FXQ9EhHtTi2fsyeqB6GQmGn4Kp3
E1vtePh0BOEN5cnSE7QNvR4//sweoCBVx5MKB9hei8Hv6UWbaQQ9wZSLq16rewxrKkfRUdAlDDvk
4tjQfwtDqQnqeAy3212LF/j4g3vgCAGxDyCkMF0qgrZ8iO8T/0ICgFIe2dcxxGIx/LW2dy5r8juT
CCpOoo+Tr9WNMZWG6ifo0jAchKDb44GTENj6Z6FWUW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