WebAIM - Web Accessibility In Mind

E-mail List Archives

QuestionVisual button order versus announced button focus order

for

From: Chamberland, Robert
Date: Jul 8, 2015 9:02AM


Hi All,

We have a situation where a form page has the buttons coded as:

<button> Submit </button>
<button> Back</button>
<button> Cancel</button>

And we'd use CSS to float the submit button to the right and position the back button on the left, so visually it is displayed as Back, Cancel and Submit. The Back button is visually on the left, where a left arrow might be. The Submit button is visually on the right, where a right arrow might be. The Cancel button will be in between.

The thinking is that the Submit button, the one on the right, should by design receive focus first after coming out of the form inputs. Then, if tabbing, the Back button should receive the next focus, followed by Cancel.

But obviously, the visual order as displayed is not the same as the focus order announced by the screen reader (I'm assuming the screen reader will always announce according to focus order, which could be wrong). The visual user sees Cancel, Back, Submit, in that order, reading or scanning from left to right. The screen reader presumably announces Submit, tabbing to Back and then Cancel, in that order.

SC 1.3.2 (Meaningful Sequence) and SC 2.4.3 (Focus Order) don't quite seem to "fit" this question except to say that "Focusable components need to receive focus in an order that preserves meaning and operability only when navigation sequences affect meaning and operability." Is this such a case?

It does seem to go against the spirit of C27: Making the DOM order match the visual order<http://www.w3.org/TR/WCAG20-TECHS/C27.html>; and also of G59: Placing the interactive elements in an order that follows sequences and relationships within the content<http://www.w3.org/TR/WCAG20-TECHS/G59.html>;, but these are techniques.

In not following the visual order is this a faux pas? Is some meaning lost in showing the visual user one order, the screen reader user something else?

Any feedback would be appreciated and thank you.

Rob Chamberland