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

    r55911 r55954  
    175175
    176176        ?>
    177         <label class="screen-reader-text" for="cb-select-<?php echo $link->link_id; ?>">
     177        <label class="label-covers-full-cell" for="cb-select-<?php echo $link->link_id; ?>">
     178            <span class="screen-reader-text">
    178179            <?php
    179180            /* translators: Hidden accessibility text. %s: Link name. */
    180181            printf( __( 'Select %s' ), $link->link_name );
    181182            ?>
     183            </span>
    182184        </label>
    183185        <input type="checkbox" name="linkcheck[]" id="cb-select-<?php echo $link->link_id; ?>" value="<?php echo esc_attr( $link->link_id ); ?>" />
Note: See TracChangeset for help on using the changeset viewer.