Reading order does not match visual order #15317
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Type] Bug
An existing feature does not function as intended
Reading order does not match visual order
Issue description
When assistive technology users are reading through the "Keyboard
Shortcuts" list, the items in the list are announced differently than
their visual order: each shortcut keystroke is announced before its
description, even though the description comes first visually.
Users who need an alternative presentation of content benefit from a
logical reading order. Users who have a cognitive disability and have
difficulty reading may also be confused by an unexpected or illogical
reading order when using text-to-speech programs.
Issue Code
Remediation Guidance
Avoid the use of flexbox
order
properties to change the order ofelements, because this change is not reflected in the DOM reading
order.
It appears as though this has been done so that the description can be
the
<dd>
and the keystroke can be the<dt>
, however this isnot necessary. The description can be considered the term, since it's
the primary frame of reference for a user (i.e. a user wouldn't
encounter a keystroke and wonder what function it controls, they would
encounter a function and wonder what keystroke can be used for it).
Therefore, the
order
property can be removed, and the markupinverted to use
<dt>
for the description and<dd>
for thekeystroke.
Recommended Code
Relevant standards
(Level A)
Note: This issue may be a duplicate with other existing accessibility-related bugs in this project. This issue comes from the Gutenberg accessibility audit, performed by Tenon and funded by WP Campus. This issue is GUT-71 in Tenon's report
The text was updated successfully, but these errors were encountered: