diff --git a/understanding/21/non-text-contrast.html b/understanding/21/non-text-contrast.html index 5449c18fd6..d7991fc3c6 100644 --- a/understanding/21/non-text-contrast.html +++ b/understanding/21/non-text-contrast.html @@ -180,7 +180,7 @@
Note that this success criterion does not directly compare the focused and unfocused states of a control - if the focus state relies on a change of color (e.g., changing only the background color of a button), this success criterion does not define any requirement for the difference in contrast between the two states.
+Note that this success criterion does not directly compare the focused and unfocused states of a control - if the focus state relies on a change of color (e.g., changing only the background color of a button), this success criterion does not define any requirement for the difference in contrast between the two states.
The language of Non-text Contrast specifically calls out "visual information required to identify...states." When users talk about a hover state, they are normally referring to a visual effect that takes place when the pointer is positioned over a control. However, there are a number of HTML components (such as buttons, checkboxes, radio buttons, and selects) which do not by default display any additional visual effects when the user moves a pointer control over them. The pointer itself, via its location, is the indicator of whether the user is hovering on a component. Therefore, additional author-supplied visual treatments for hover are not "required to identify" the hover state. Those treatments can be considered supplemental and do not themselves need to contrast 3:1 against the background.
This is not to say that other hover effects are discouraged. For instance, some native components alter the shape of the pointer when it is hovering over a control; the pointer becomes an I-beam when it hovers over text inputs and text areas. There will be cases where some users may benefit from additional visual hover effects, such as bolding text or use of drop shadows. However, other users may find strong hover effects distracting. The key consideration for any hover effect is that it does not cause a component itself to lose sufficient contrast against adjacent colors, or cause the visual indicators for other states, such as focus or selection, to lose sufficient contrast.
For designing focus indicators, selection indicators and user interface components that need to be perceived clearly, the following are examples that have sufficient contrast.
- -#767676), that indicator must meet 3:1 contrast
- ratio.
- #767676), that
- indicator must meet 3:1 contrast ratio.
- #CCC) outline has
- an insufficient contrast of 1.6:1 against the white
- (#FFF) background, the cursor/caret which is
- displayed when the input receives focus does provide
- a sufficiently strong visual indication.
- #043464).
- #070CD5) has a good contrast with the external
- white background. Also, the round toggle within
- (#7AC2FF) contrasts with the internal background.
- #6E747B).
- #DEDEDE). The black border has a 15:1
- contrast ratio with the grey background, so the checkbox
- continues to have good contrast. Note that the grey hover
- effect does not itself need to contrast 3:1 with the page
- background, since the pointer position is the primary
- indicator of the hover state.
- The following are examples that have insufficient contrast.
- -#0D0F13) background. The
- link's custom underline (#B1262B) is the only way
- to identify the link. The red underline contrasts less than
- 3:1 with the background color.
- #9D9D9D) has a contrast ratio of 2.7:1 with the
- white background, which is not sufficient for the visual
- information required to identify the checkbox.
- #AAA) indicator has an insufficient ratio of
- 2.3:1 with the white (#FFF) adjacent background.
- #00C7FD) has a contrast
- lower than 3:1 against the interior white
- background color of the input, so the focus
- indication fails this criterion.
- #AAA) has
- contrast lower than 3:1 against its adjacent
- white background. As the border here is
- required to identify the presence of the
- input, it must have sufficient contrast to
- pass this criterion.
- The term "graphical object" applies to stand-alone icons such as a print icon (with no text), and the important parts of a more complex diagram such as each line in a graph. For simple graphics such as single-color icons the entire image is a graphical object. Images made up of multiple lines, colors and shapes will be made of multiple graphical objects, some of which are required for understanding.
Not every graphical object needs to contrast with its surroundings - only those that are required for a user to understand what the graphic is conveying. Gestalt principles such as the "law of continuity" can be used to ignore minor overlaps with other graphical objects or colors.
@@ -559,7 +251,7 @@
The graphical objects are the "U" shape (by outline or by the
- solid red color #D0021B), and each tip of the magnet.
+ solid red color #D0021B), and each tip of the magnet.
The term "required for understanding" is used in the success criterion as many graphics do not need to meet the contrast requirements. If a person needs to perceive a graphic, or part of a graphic (a graphical object) in order to understand the content it should have sufficient contrast. However, that is not a requirement when:
-A graphic with text embedded or overlaid conveys the same information, such as labels and values on a chart.
-Text within a graphic must meet 1.4.3 Contrast (Minimum).
-The term "required for understanding" is used in the success criterion as many graphics do not need to meet the contrast requirements. If a person needs to perceive a graphic, or part of a graphic (a graphical object) in order to understand the content it should have sufficient contrast. However, that is not a requirement when:
+A graphic with text embedded or overlaid conveys the same information, such as labels and values on a chart.
+Text within a graphic must meet 1.4.3 Contrast (Minimum).
+Logos are exempted from contrast requirements, under the assumption that they must comply with stricter color choices mandated - by corporate identity or brand guidelines. However, this can be problematic when logos act as user interface components - (such as a link or other interactive control). In these cases, as a best practice, authors should consider choosing a variant of - the logo that has sufficient contrast, if allowed by the corporate identity or brand guidelines. - Alternatively, authors should consider providing an equivalent user interface component which serves the same purpose and meets - contrast requirements.
- -If logos are presented with an insufficient contrast, but their presentation was an author choice rather than - being mandated by corporate identity or brand guidelines, then that particular low contrast presentation is - not "essential", and the logo is not exempt from the contrast requirements.
- -
- Gradients can reduce the apparent contrast between areas, and make it more difficult to test. The general principles is to identify the graphical object(s) required for understanding, and take the central color of that area. If you remove the adjacent color which does not have sufficient contrast, can you still identify and understand the graphical object?
-
- Some graphics may have interactions that either vary the contrast, or display the information as text when you mouseover/tap/focus each graphical object. In order for someone to discern the graphics exist at all, the unfocused default version must already have sufficiently contrasting colors or text. For the area that receives focus, information can then be made available dynamically as pop-up text, or be foregrounded dynamically by increasing the contrast.
- - -
- Gradients can reduce the apparent contrast between areas, and make it more difficult to test. The general principles is to identify the graphical object(s) required for understanding, and take the central color of that area. If you remove the adjacent color which does not have sufficient contrast, can you still identify and understand the graphical object?
+
+ Some graphics may have interactions that either vary the contrast, or display the information as text when you mouseover/tap/focus each graphical object. In order for someone to discern the graphics exist at all, the unfocused default version must already have sufficiently contrasting colors or text. For the area that receives focus, information can then be made available dynamically as pop-up text, or be foregrounded dynamically by increasing the contrast.
+ + +
+ Infographics can mean any graphic conveying data, such as a chart or diagram. On the web it is often used to indicate a large graphic with lots of statements, pictures, charts or other ways of conveying data. In the context of graphics contrast, each item within such an infographic should be treated as a set of graphical objects, regardless of whether it is in one file or separate files.
+Infographics can mean any graphic conveying data, such as a chart or diagram. On the web it is often used to indicate a large graphic with lots of statements, pictures, charts or other ways of conveying data. In the context of graphics contrast, each item within such an infographic should be treated as a set of graphical objects, regardless of whether it is in one file or separate files.
-Infographics often fail to meet several WCAG level AA criteria including:
+Infographics often fail to meet several WCAG level AA criteria including:
- + -An infographic can use text which meets the other criteria to minimize the number of graphical objects required for understanding. For example, using text with sufficient contrast to provide the values in a chart. A long description would also be sufficient because then the infographic is not relied upon for understanding.
+An infographic can use text which meets the other criteria to minimize the number of graphical objects required for understanding. For example, using text with sufficient contrast to provide the values in a chart. A long description would also be sufficient because then the infographic is not relied upon for understanding.
Graphical objects do not have to meet the contrast requirements when "a particular presentation of graphics is essential to the information being conveyed". The Essential exception is intended to apply when there is no way of presenting the graphic with sufficient contrast without undermining the meaning. For example:
+Graphical objects do not have to meet the contrast requirements when "a particular presentation of graphics is essential to the information being conveyed". The essential exception is intended to apply when there is no way of presenting the graphic with sufficient contrast without undermining the meaning. For example:
However, this exemption can be problematic when these graphical objects also act as user interface components (or are the only visible content of a user interface component). + While normatively the exemption "carries over" to the user interface component, as a recommended practice authors are encouraged to make sure that there is an aspect of the user interface components that allows users to identify the components.
+ +In the case of logos, authors may choose a variant of the logo that has sufficient contrast, if variants are allowed by the + relevant corporate identity or brand guidelines. Otherwise, authors should consider providing an additional visual element with sufficient + contrast that helps identify the user interface component, such as additional text.
+ +Alternatively, authors may provide an equivalent user interface component which serves the same purpose + and meets contrast requirements.
+ +Note that even when graphical objects acting as user interface components are exempted, the user interface components are not exempted from other aspects of this success criterion, such as the requirement to have sufficient contrast for the control's focus indicator.
+ +If exempted graphical objects (such as logos) are presented with an insufficient contrast, but their low contrast presentation + was an author choice, then that particular low contrast presentation is not "essential", and the graphical object + is not exempt from the contrast requirements.
+ +
+ A summary of the high-level process for finding and assessing non-text content on a web page:
Pie charts make a good case study for the graphical objects part of this success criterion, the following pie charts are intended to convey the proportion of market share each browser has. Please Note: The actual figures are made up, these are not actual market shares.
-
- Fail: The pie chart has labels for each slice (so passes 1.4.1 Use of Color), but in order to understand the proportions of the slices you must discern the edges of the slices (the graphical objects conveying essential information), and the contrast between the slices is not 3:1 or greater.
-
- Not applicable: The pie chart has visible labels and values that convey equivalent information to the graphical objects (the pie slices).
-
- Pass: The pie chart has visible labels, and sufficient contrast around and between the slices of the pie chart (the graphical objects). A darker border has been added around the yellow slice in order to achieve the contrast level.
-
- Fail: Discerning the circles is required to understand the size of network and discerning the icons in each circle is required to identify which network it shows.
-The graphical objects are the circles (measured against the background) and the icons in each circle (measured against the circle's background).
-
- Pass: The circles have contrasting borders and the icons are a contrasting dark color against the light circle backgrounds.
-There are many possible solutions to ensuring contrast, the example shows the use of borders. Other techniques are to use darker colors for the circle backgrounds, or to add text labels & values for each item.
-For designing focus indicators, selection indicators and user interface components that need to be perceived clearly, the following are examples that have sufficient contrast.
+ +#767676), that indicator must meet 3:1 contrast
+ ratio.
+ #767676), that
+ indicator must meet 3:1 contrast ratio.
+ #CCC) outline has
+ an insufficient contrast of 1.6:1 against the white
+ (#FFF) background, the cursor/caret which is
+ displayed when the input receives focus does provide
+ a sufficiently strong visual indication.
+ #043464).
+ #070CD5) has a good contrast with the external
+ white background. Also, the round toggle within
+ (#7AC2FF) contrasts with the internal background.
+ #6E747B).
+ #DEDEDE). The black border has a 15:1
+ contrast ratio with the grey background, so the checkbox
+ continues to have good contrast. Note that the grey hover
+ effect does not itself need to contrast 3:1 with the page
+ background, since the pointer position is the primary
+ indicator of the hover state.
+ The following are examples that have insufficient contrast.
+ +#0D0F13) background. The
+ link's custom underline (#B1262B) is the only way
+ to identify the link. The red underline contrasts less than
+ 3:1 with the background color.
+ #9D9D9D) has a contrast ratio of 2.7:1 with the
+ white background, which is not sufficient for the visual
+ information required to identify the checkbox.
+ #AAA) indicator has an insufficient ratio of
+ 2.3:1 with the white (#FFF) adjacent background.
+ #00C7FD) has a contrast
+ lower than 3:1 against the interior white
+ background color of the input, so the focus
+ indication fails this criterion.
+ #AAA) has
+ contrast lower than 3:1 against its adjacent
+ white background. As the border here is
+ required to identify the presence of the
+ input, it must have sufficient contrast to
+ pass this criterion.
+ Pie charts make a good case study for the graphical objects part of this success criterion, the following pie charts are intended to convey the proportion of market share each browser has. Please Note: The actual figures are made up, these are not actual market shares.
+
+ Fail: The pie chart has labels for each slice (so passes 1.4.1 Use of Color), but in order to understand the proportions of the slices you must discern the edges of the slices (the graphical objects conveying essential information), and the contrast between the slices is not 3:1 or greater.
+
+ Not applicable: The pie chart has visible labels and values that convey equivalent information to the graphical objects (the pie slices).
+
+ Pass: The pie chart has visible labels, and sufficient contrast around and between the slices of the pie chart (the graphical objects). A darker border has been added around the yellow slice in order to achieve the contrast level.
+
+ Fail: Discerning the circles is required to understand the size of network and discerning the icons in each circle is required to identify which network it shows.
+The graphical objects are the circles (measured against the background) and the icons in each circle (measured against the circle's background).
+
+ Pass: The circles have contrasting borders and the icons are a contrasting dark color against the light circle backgrounds.
+There are many possible solutions to ensuring contrast, the example shows the use of borders. Other techniques are to use darker colors for the circle backgrounds, or to add text labels & values for each item.
+