Make WordPress Core


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

    r55911 r55954  
    412412            $blogname = untrailingslashit( $blog['domain'] . $blog['path'] );
    413413            ?>
    414             <label class="screen-reader-text" for="blog_<?php echo $blog['blog_id']; ?>">
     414            <label class="label-covers-full-cell" for="blog_<?php echo $blog['blog_id']; ?>">
     415                <span class="screen-reader-text">
    415416                <?php
    416417                /* translators: %s: Site URL. */
    417418                printf( __( 'Select %s' ), $blogname );
    418419                ?>
     420                </span>
    419421            </label>
    420422            <input type="checkbox" id="blog_<?php echo $blog['blog_id']; ?>" name="allblogs[]"
Note: See TracChangeset for help on using the changeset viewer.