Make WordPress Core


Ignore:
Timestamp:
06/21/2023 01:52:16 AM (16 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-comments-list-table.php

    r55749 r55954  
    885885        if ( $this->user_can ) {
    886886            ?>
    887         <label class="screen-reader-text" for="cb-select-<?php echo $comment->comment_ID; ?>">
     887        <label class="label-covers-full-cell" for="cb-select-<?php echo $comment->comment_ID; ?>">
     888            <span class="screen-reader-text">
    888889            <?php
    889890            /* translators: Hidden accessibility text. */
    890891            _e( 'Select comment' );
    891892            ?>
     893            </span>
    892894        </label>
    893895        <input id="cb-select-<?php echo $comment->comment_ID; ?>" type="checkbox" name="delete_comments[]" value="<?php echo $comment->comment_ID; ?>" />
Note: See TracChangeset for help on using the changeset viewer.