From c519b3cbd5de3979b3b0a4482a5320e411386707 Mon Sep 17 00:00:00 2001 From: Francis Storr Date: Mon, 11 Mar 2024 12:17:23 -0700 Subject: [PATCH 1/2] Update F73 to remove example 2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR removes example 2, “Removing the underline from a link in a sentence or paragraph without providing another visual cue besides color”, which contradicts guidance in G183. This issue came up in #3717. --- techniques/failures/F73.html | 67 +++++++++++++++++++----------------- 1 file changed, 35 insertions(+), 32 deletions(-) diff --git a/techniques/failures/F73.html b/techniques/failures/F73.html index 0c8576c6f2..134355e00d 100644 --- a/techniques/failures/F73.html +++ b/techniques/failures/F73.html @@ -4,54 +4,57 @@

The objective of this failure is to avoid situations in which people who cannot perceive color differences cannot identify links (when people with color vision can identify links). Link underlines or some other non-color visual distinction are required (when the links are discernible to those with color vision).

While some links may be visually evident from page design and context, such as navigational links, links within text are often visually understood only from their own display attributes. Removing the underline and leaving only the color difference for such links would be a failure because there would be no other visual indication (besides color) that it is a link.

-

Red and Pink are the same color (hue) but they have different lightness (which is not color ). So red and pink would pass the requirement for "not distinguished by color (hue) alone" since they differ by lightness (which is not color) - as long as the difference in lightness (contrast) is 3:1 or greater. For example, if surrounding text is RED and the link is PINK it would pass. Similarly a light green and a dark red differ BOTH by color AND by lightness so they would pass if the contrast (lightness) difference is 3:1 or greater before focus or pointing.

+

Red and pink are the same color (hue) but they have different lightness (which is not color). So red and pink would pass the requirement for "not distinguished by color (hue) alone" since they differ by lightness (which is not color) - as long as the difference in lightness (contrast) is 3:1 or greater. For example, if surrounding text is red and the link is pink it would pass. Similarly a light green and a dark red differ BOTH by color AND by lightness so they would pass if the contrast (lightness) difference is 3:1 or greater before focus or pointing.

There is no requirement that links be identifiable by people who cannot perceive color if they are not perceivable for those with color vision. (e.g. if the links are hidden for everyone – as in a game or test).

-

If the non-color cue only happens when the mouse hovers over the link or when the link receives focus, it is still a failure.

If the link is a different color and bold it would not fail because the boldness is not color dependent.

-

Examples

+
+
+

Examples

-

Links with no underlines and similar contrast to body text

- -

A Web page includes a large number of links within the body text. The links are styled so that they do not have underlines and are very similar in color to the body text. This would be a failure because users would be unable to differentiate the links from the body text.

- -
-
-

Removing the underline from a link in a sentence or paragraph without providing another visual cue besides color

- +

Links with no underlines and low contrast to body text

+

A web page includes links inline with non-link text. The links are styled so that they do not have underlines in any state and have a contrast lower than 3:1 with the surrounding non-link text. This would be a failure because users would be unable to differentiate the links from the body text.

+
<head>
   <style>
-    p a:link {text-decoration: none}
-    p a:visited {text-decoration: none}
-    p a:active {text-decoration: none}
-    p a:hover {text-decoration: underline; color: red;}
+   body{
+    background-color: white;
+    color: black;
+    }
+    p a {
+      color: #1E2EB8;
+      text-decoration: none;
+    }
   </style>
 </head>
 <body>
   <p>There are many resources to find out more about the
-     <a href="rain-in-spain.html">rain in spain</a>.
+    <a href="rain-in-spain.html">rain in spain</a>.
   </p>
-</body>
- -
-

If the visual cue is only provided on hover (as in the example above), it would still fail. -

-
- +</body>
-

Tests

-

Procedure

+
+
+

Tests

+
+

Procedure

    -
  1. Check that each link in the page that is identifiable by color (hue) is visually identifiable via some other means (e.g., underlined, bolded, italicized, sufficient difference in lightness, etc).
  2. +
  3. Check that each link in the page that is identifiable by color (hue) is visually identifiable via some other means (e.g., underlined, bolded, italicized, sufficient difference in lightness, etc).
-

Expected Results

+
+

Expected Results

  • If check #1 is false, then this failure condition applies and the content fails this Success Criterion.
-
- +
+ + + From aa72a254a1bac20844748009ffce6f8e9217e929 Mon Sep 17 00:00:00 2001 From: Francis Storr Date: Mon, 11 Mar 2024 15:20:39 -0700 Subject: [PATCH 2/2] Update techniques/failures/F73.html Co-authored-by: Patrick H. Lauke --- techniques/failures/F73.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/techniques/failures/F73.html b/techniques/failures/F73.html index 134355e00d..4b2ac6c621 100644 --- a/techniques/failures/F73.html +++ b/techniques/failures/F73.html @@ -4,7 +4,7 @@

The objective of this failure is to avoid situations in which people who cannot perceive color differences cannot identify links (when people with color vision can identify links). Link underlines or some other non-color visual distinction are required (when the links are discernible to those with color vision).

While some links may be visually evident from page design and context, such as navigational links, links within text are often visually understood only from their own display attributes. Removing the underline and leaving only the color difference for such links would be a failure because there would be no other visual indication (besides color) that it is a link.

-

Red and pink are the same color (hue) but they have different lightness (which is not color). So red and pink would pass the requirement for "not distinguished by color (hue) alone" since they differ by lightness (which is not color) - as long as the difference in lightness (contrast) is 3:1 or greater. For example, if surrounding text is red and the link is pink it would pass. Similarly a light green and a dark red differ BOTH by color AND by lightness so they would pass if the contrast (lightness) difference is 3:1 or greater before focus or pointing.

+

Red and pink are the same color (hue) but they have different lightness (which is not color). So red and pink would pass the requirement for "not distinguished by color (hue) alone" since they differ by lightness (which is not color) - as long as the difference in lightness (contrast) is 3:1 or greater. For example, if surrounding text is red and the link is pink it would pass. Similarly a light green and a dark red differ both by color and by lightness so they would pass if the contrast (lightness) difference is 3:1 or greater before focus or pointing.

There is no requirement that links be identifiable by people who cannot perceive color if they are not perceivable for those with color vision. (e.g. if the links are hidden for everyone – as in a game or test).

If the link is a different color and bold it would not fail because the boldness is not color dependent.