-
Notifications
You must be signed in to change notification settings - Fork 414
Add notes to 2.4.3 understanding to try and address static content receiving focus and what does/doesn't constitute a focus order failure #1643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
417b9ff
3d08ead
d0138bd
7cd188a
8be23bd
29dcb88
c3e0403
147b6fe
0028075
8667b31
d0382d3
9f7feb7
083dbab
d841c2a
61fda92
116e230
aa6dcd8
3e33e78
14dc43e
df6eed7
42da714
ad8f4fb
dc8904c
18d56fe
509dad6
b3cecfb
7fd76fa
526ced4
d077606
8170927
f2c00e2
1defc51
dcbbb0c
cdd58fe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,6 +54,32 @@ <h2>Intent of Focus Order</h2> | |
| Web page. Care should be taken so that the focus order makes sense to both of these | ||
| sets of users and does not appear to either of them to jump around randomly. | ||
| </p> | ||
|
|
||
| <p>Focus order also does not normatively need to follow the visual presentation of the web page, | ||
| as long as the order in which elements receive focus is logical, and the hierarchy and relationship | ||
| of content implied by the visual presentation is preserved. For instance, in a two-column | ||
| layout, visually the assumption in western left-to-right systems may be that elements in the | ||
| left-hand column would receive focus first. However, if meaning and operation are not affected, | ||
| it is not a normative failure if elements in the right-hand column receive focus first. | ||
| Again, as a best practice, care should be taken to make sure the focus order does not | ||
|
patrickhlauke marked this conversation as resolved.
Outdated
|
||
| appear random and illogical. | ||
| </p> | ||
|
|
||
| <div class="note"> | ||
| <p>Normatively, it is not a failure of this success criterion if static/non-interactive content | ||
|
patrickhlauke marked this conversation as resolved.
Outdated
|
||
| receives focus. Making an element that does not act as an actionable user interface component | ||
| focusable, or programmatically moving focus to such an element, does not necessarily constitute | ||
| a failure of this success criterion. Similarly, redundant focusable elements – for instance, | ||
| having two or more "focus stops" for what may visually appear to be a single user interface | ||
| component such as a "card" component – do not automatically fail this criterion.</p> | ||
| <p>These situations are only failures if they | ||
| significantly impede the operation of the content, or create illogical focus orders - for example, a control | ||
|
patrickhlauke marked this conversation as resolved.
Outdated
|
||
| appearing to receive focus multiple times due to the use of nested focusable elements.</p> | ||
| <pre><code><div tabindex="0"><button>...</button></div></code></pre> | ||
| <p>As a best practice, authors should avoid excessive use of focusable elements which cannot be operated | ||
|
patrickhlauke marked this conversation as resolved.
Outdated
|
||
| or actioned, as well as redundant focus stops, as these are likely to make operation unnecessarily | ||
| tedious for keyboard users.</p> | ||
| </div> | ||
|
|
||
| <p>For clarity:</p> | ||
|
|
||
|
|
@@ -62,6 +88,8 @@ <h2>Intent of Focus Order</h2> | |
| <li>Focusable components need to receive focus in an order that preserves meaning and | ||
| operability only when navigation sequences affect meaning and operability. | ||
| </li> | ||
|
|
||
| <li>Focus order does not need to follow visual presentation or layout.</li> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think that I agree with this statement. The issue is that the interpretation of the visual presentation is subjective.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does not necessarily need to follow visual presentation, perhaps? i've seen extreme cases where auditors gleefully fail things if they're not exactly in the same order as the visual, with things like three little icon-based buttons that receive focus right-to-left instead of left-to-right (because the author used CSS floats that effectively reversed the order) ... but where the meaning was not impacted and it was not really a problem. there must be some way we can somehow make that clear...
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, add "necessarily".
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wonder if it's too handwavy though. maybe best to expand this, or add some more words that reflect what @awkawk rightly says...that it's subjective?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Who is deciding what is the visual presentation order? Shouldn't the tab order follow whatever that is decided to be?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. or adding "as long as meaning/operation are not affected"
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "Who is deciding what is the visual presentation order?" not sure i follow...is this rhetorical? the author/designer will work on the visual/layout, but for various reasons the focus order may be slightly different. the point is that as long as meaning/operation aren't affected (and it's...subjectively...not too haphazard jumping all over the place) it's not necessarily a failure if the focus order doesn't strictly follow the western top-to-bottom/left-to-right (in left-to-right writing cultures)
alastc marked this conversation as resolved.
Outdated
|
||
|
|
||
| <li>In those cases where it is required, there may be more than one order that will preserve | ||
| meaning and operability. | ||
|
|
@@ -70,6 +98,10 @@ <h2>Intent of Focus Order</h2> | |
| <li>If there is more than one order that preserves meaning and operability, only one of | ||
| them needs to be provided. | ||
| </li> | ||
|
|
||
| <li>Redundant focus stops, and static/non-interactive elements receiving focus, are allowed, as | ||
| long as they don't significantly impede operation of the content. | ||
| </li> | ||
|
|
||
| </ol> | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.