Skip to:

Opened 8 years ago

Closed 8 years ago

Last modified 6 years ago

#7065 closed enhancement (fixed)

Accessibility: Change markup order of `<tbody>` and `<tfooter>` in BP List Tables

Reported by: mercime's profile mercime Owned by: mercime's profile mercime
Milestone: 2.6 Priority: normal
Severity: normal Version:
Component: Core Keywords: has-screenshots has-patch


By default, the focus order for keyboard users and screen readers follows the structure of the underlying HTML markup. By moving <tbody> before <tfooter> within the List Tables of our Activity and Groups screens:

  • screen readers will read the table rows in the same order that these are rendered visually in the front end, instead of hearing the same information in the top row and last row being read before the second row.
  • keyboard users won't be disoriented when the focus suddenly jumps to the last row (tfooter) after tabbing through first row(thead) of the List Table and then focus jumps up back to the second row (tbody).

Keyboard tabbing, before patch:

Keyboard tabbing, after patch:

Screen reader, before and after patch:

Patch coming up.

Attachments (1)

7065.patch (1.3 KB) - added by mercime 8 years ago.

Download all attachments as: .zip

Change History (6)

8 years ago

#1 @mercime
8 years ago

  • Keywords has-patch added
  • Milestone changed from Awaiting Review to 2.6

#2 @dcavins
8 years ago

Just a note: With HTML4, <tfoot> had to appear before the <tbody>; that requirement has been relaxed with HTML5:

#3 @mercime
8 years ago

Thanks @dcavins! We are fortunate that the WordPress admin has been using HTML5 DOCTYPE declaration for a while now so we're good to go here for a11y's sake :)

#4 @mercime
8 years ago

  • Owner set to mercime
  • Resolution set to fixed
  • Status changed from new to closed

In 10776:

Accessibility: Improve focus order in the Activity and Groups screens.

Ensured that the underlying DOM order is consistent with the
visual order by moving <tbody> before <tfoot> within the List
Tables in the Groups and Activity wp-admin screens.

Fixes #7065.

#5 @DJPaul
8 years ago

  • Component changed from General - UX/UI to Core
Note: See TracTickets for help on using tickets.