Make WordPress Core


Ignore:
Timestamp:
07/23/2026 08:59:29 PM (3 weeks ago)
Author:
joedolson
Message:

Administration: Use post title column as table header in post lists.

The select column has been the th with row scope for post list tables since at least 2010. This results in a row name for screen readers that is based on the checkbox input and its label, which can be an empty value when that input is not available.

Move the th to the post title column, change the select column to td, and add aria-label to the th to provide a simplified row name to supporting screen readers.

Styles are additive, to retain support for custom list table implementations.

Developed in https://github.com/WordPress/wordpress-develop/pull/9761

Props afercia, abcd95, ozgursar, nikunj8866, joedolson.
Fixes #32892.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/forms.css

    r62516 r62838  
    19681968        }
    19691969
    1970         .wp-list-table.privacy_requests tr:not(.inline-edit-row):not(.no-items) td.column-primary:not(.check-column) {
     1970        .wp-list-table.privacy_requests tr:not(.inline-edit-row):not(.no-items) td.column-primary:not(.check-column),
     1971        .wp-list-table.privacy_requests tr:not(.inline-edit-row):not(.no-items) th.column-primary:not(.check-column) {
    19711972                display: table-cell;
    19721973        }
Note: See TracChangeset for help on using the changeset viewer.