Make WordPress Core


Ignore:
Timestamp:
06/21/2023 01:52:16 AM (20 months ago)
Author:
joedolson
Message:

Administration: Make checkbox column clickable.

Change the label for .check-column inside list tables to a block filling the entire cell. Improves accessibility by increasing the target area for the control.

Props mitchoyoshitaka, lessbloat, sabernhardt, ogleker, tacoverdo, joostdevalk, karmatosed.

Fixes #21516.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-list-table.php

    r55911 r55954  
    13071307        if ( ! empty( $columns['cb'] ) ) {
    13081308            static $cb_counter = 1;
    1309             $columns['cb']     = '<label class="screen-reader-text" for="cb-select-all-' . $cb_counter . '">' .
     1309            $columns['cb']     = '<label class="label-covers-full-cell" for="cb-select-all-' . $cb_counter . '">' .
     1310                '<span class="screen-reader-text">' .
    13101311                    /* translators: Hidden accessibility text. */
    13111312                    __( 'Select All' ) .
     1313                '</span>' .
    13121314                '</label>' .
    13131315                '<input id="cb-select-all-' . $cb_counter . '" type="checkbox" />';
Note: See TracChangeset for help on using the changeset viewer.