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-ms-users-list-table.php

    r55732 r55954  
    236236        }
    237237        ?>
    238         <label class="screen-reader-text" for="blog_<?php echo $user->ID; ?>">
     238        <label class="label-covers-full-cell" for="blog_<?php echo $user->ID; ?>">
     239            <span class="screen-reader-text">
    239240            <?php
    240241            /* translators: Hidden accessibility text. %s: User login. */
    241242            printf( __( 'Select %s' ), $user->user_login );
    242243            ?>
     244            </span>
    243245        </label>
    244246        <input type="checkbox" id="blog_<?php echo $user->ID; ?>" name="allusers[]" value="<?php echo esc_attr( $user->ID ); ?>" />
Note: See TracChangeset for help on using the changeset viewer.