|
1 | 1 | <section class="sc new"> |
2 | 2 |
|
3 | | - <h4>Focus Appearance (Minimum)</h4> |
| 3 | + <h4>Focus Appearance</h4> |
4 | 4 |
|
5 | 5 | <p class="conformance-level">AA</p> |
6 | 6 | <p class="change">New</p> |
7 | 7 |
|
8 | | - <p>When a <a>user interface component</a> has keyboard focus, the <a>focus indicator</a>:</p> |
9 | | - <ul> |
10 | | - <li><a>Encloses</a> the visual presentation of the user interface component;</li> |
11 | | - <li>Has a contrast ratio of at least 3:1 between its pixels in the focused and unfocused states;</li> |
12 | | - <li>Has a contrast ratio of at least 3:1 against adjacent colors.</li> |
13 | | - </ul> |
14 | | - <p>Exceptions:</p> |
15 | | - |
16 | | - <ul> |
17 | | - <li>The focus indicator is determined by the user agent and cannot be adjusted by the author, or</li> |
18 | | - <li>The focus indicator and the indicator's background color are not modified by the author, or</li> |
| 8 | + <p>When a <a>user interface component</a> has keyboard focus, one or both of the following is true:</p> |
| 9 | + <ol> |
| 10 | + <li>The <a>focus indicator</a>: |
| 11 | + <ul> |
| 12 | + <li><a>encloses</a> the visual presentation of the user interface component, and</li> |
| 13 | + <li>has a contrast ratio of at least 3:1 between the same pixels in the focused and unfocused states, and</li> |
| 14 | + <li>has a contrast ratio of at least 3:1 against adjacent colors.</li> |
| 15 | + </ul> |
| 16 | + </li> |
19 | 17 | <li>An area of the focus indicator meets all the following: |
20 | 18 | <ul> |
21 | | - <li>At least as large as the area of a 1 <a>CSS pixel</a> thick <a>perimeter</a> of the unfocused component, or is at least as large as a 4 CSS pixel thick line along the shortest side of the <a>minimum bounding box</a> of the unfocused component, and</li> |
22 | | - <li>has a contrast ratio of at least 3:1 against the same pixels in the unfocused state, and </li> |
| 19 | + <li>is at least as large as the area of a 1 <a>CSS pixel</a> thick <a>perimeter</a> of the unfocused component, or is at least as large as a 4 CSS pixel thick line along the shortest side of the <a>minimum bounding box</a> of the unfocused component, and</li> |
| 20 | + <li>has a contrast ratio of at least 3:1 between the same pixels in the focused and unfocused states, and</li> |
23 | 21 | <li>has a contrast ratio of at least 3:1 against adjacent non-focus-indicator colors, or is no thinner than 2 CSS pixels.</li> |
24 | 22 | </ul> |
25 | 23 | </li> |
| 24 | + </ol> |
| 25 | + |
| 26 | + <p>Where a user interface component has active sub-components, if a sub-component receives a focus indicator, these requirements may be applied to the sub-component instead.</p> |
| 27 | + |
| 28 | + <p>Exceptions:</p> |
| 29 | + <ul> |
| 30 | + <li>The focus indicator is determined by the user agent and cannot be adjusted by the author, or</li> |
| 31 | + <li>The focus indicator and the indicator's background color are not modified by the author.</li> |
26 | 32 | </ul> |
27 | 33 |
|
28 | | - <p>Where a user interface component has active sub-components, if a sub-component receives a focus indicator, these requirements can be applied to the sub-component instead.</p> |
29 | | - |
30 | 34 | <p class="note">Note: Examples of sub-components that may receive a focus indicator are menu items in an opened drop-down menu. However, it may also be possible to indicate user interaction for such sub-components by relying strictly on a visual indication of which item is <em>selected</em>. Where selectable sub-components have no differentiated focus indicator, the visual indicator for sub-component selection is measured against <a href="https://www.w3.org/WAI/WCAG22/Understanding/non-text-contrast.html">1.4.11 Non-text Contrast</a> requirements, not against this Criterion.</p> |
31 | 35 | <p class="note">Note: Contrast calculations can be based on colors defined within the technology (such as HTML, CSS and SVG). Pixels modified by user agent resolution enhancements and anti-aliasing can be ignored.</p> |
32 | 36 |
|
|
0 commit comments