Make WordPress Core


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

    r55903 r55954  
    983983                } else {
    984984                        $checkbox = sprintf(
    985                                 '<label class="screen-reader-text" for="%1$s">%2$s</label>' .
     985                                '<label class="label-covers-full-cell" for="%1$s"><span class="screen-reader-text">%2$s</span></label>' .
    986986                                '<input type="checkbox" name="checked[]" value="%3$s" id="%1$s" />',
    987987                                $checkbox_id,
Note: See TracChangeset for help on using the changeset viewer.