Opened 12 years ago
Closed 17 months ago
#21516 closed enhancement (fixed)
Make the entire .check-column the click target for the checkbox
Reported by: | mitchoyoshitaka | Owned by: | joedolson |
---|---|---|---|
Milestone: | 6.3 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Administration | Keywords: | has-ux-feedback has-testing-info has-screenshots needs-patch |
Focuses: | accessibility | Cc: |
Description
Sometimes checkboxes are quite small. In various list tables, checkboxes are wrapped in a .check-column. Why not make the entire .check-column clickable, in case people (like me) miss?
Attachments (6)
Change History (30)
#3
@
11 years ago
- Keywords needs-patch added; has-patch removed
Looked at this with @TacoVerdo, this needs a new patch if we want to fix it that ties into the check all functionality. Right now it doesn't check all when it should and doesn't check the current checkbox when you click it.
This ticket was mentioned in Slack in #design by karmatosed. View the logs.
7 years ago
#6
@
7 years ago
- Keywords has-ux-feedback added; ux-feedback removed
This would be great to have as an enhancement, we discussed this in our weekly design triage and it would be great to have implemented. Could we get a new patch for this?
This ticket was mentioned in Slack in #core by audrasjb. View the logs.
3 years ago
#9
@
3 years ago
- Focuses accessibility added
- Keywords needs-refresh 2nd-opinion added
- Milestone changed from 5.9 to Future Release
The patch is 9 years old and needs refresh. Adding accessibility
focus and 2nd-opinion
. I don't think it's safe for 5.9 as it is now. Let's move to future release. Feel free to bring it back to 5.9 if a working patch is ready to go.
This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.
20 months ago
#11
@
20 months ago
- Keywords 2nd-opinion removed
- Milestone changed from Future Release to 6.3
We think this could be beneficial for accessibility by providing a larger click target for users. The JS solution isn't really necessary; if we make the label a block-level element filling the table cell & move the screen reader text class to an internal span, then we get this behavior for free.
We may want to add some kind of hover state to provide affordance that the entire cell is clickable, although the mouse cursor will provide a clue there.
#12
@
19 months ago
- Keywords has-patch added; needs-patch needs-refresh removed
21516.3.diff would need some polishing (indentation to meet coding standards, etc.). Note that it does not affect the Select All checkboxes on the Updates page because those have a label in a separate cell. The hover style uses the same box-shadow
as the focus style, which might confuse some mouse users after they select a checkbox and hover over another.
This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.
18 months ago
#14
@
18 months ago
- Keywords has-testing-info has-screenshots added
@sabernhardt does it mean that an element needs to lose focus after the mouse is moved to another place? It can be tricky. I think existing behaviour is consistent across all admin and if so, this questions about focus and hover can be moved to another ticket and this patch can be applied with small adjustments to targeting issue in question.
I noticed 4px borders at Privacy tables (screenshot is above), and I have no idea what they are used for.
For testing — this patch is applied to:
- updates (themes and plugins tables): /wp-admin/update-core.php
- media (list view): /wp-admin/upload.php?mode=list
- post list: /wp-admin/edit.php
- pages list: /wp-admin/edit.php?post_type=page
- categories: /wp-admin/edit-tags.php?taxonomy=category
- tags: /wp-admin/edit-tags.php?taxonomy=post_tag
- comments: /wp-admin/edit-comments.php
- plugins: /wp-admin/plugins.php
- users: /wp-admin/users.php
- Export Personal Data: /wp-admin/export-personal-data.php (with border)
- Erase Personal Data: /wp-admin/export-personal-data.php (with border)
- list of sites for multisite
Correct if I missed something.
@
18 months ago
clicking on one checkbox and then hovering over the next while the first checkbox still has the focus state
#15
@
18 months ago
No, focus loss would be a problem.
The question about focus is whether reusing the same style for the hover state would confuse someone. If so, I do not have a good idea for a new hover style.
In privacy-related tables, the left border is a way to reinforce the status of privacy requests with specific colors.
#16
@
18 months ago
- Keywords commit added; dev-feedback removed
I don't have a problem with reusing the hover/focus states. Hover states are reinforced by the mouse cursor and selected states are reinforced by being checked; I think that the common characteristics of the checkbox itself are not a concern.
This works for me; marking for commit.
This ticket was mentioned in PR #4652 on WordPress/wordpress-develop by @joedolson.
18 months ago
#18
Make entire checkbox cell clickable in list tables.
Trac ticket: https://core.trac.wordpress.org/ticket/21516
@joedolson commented on PR #4652:
18 months ago
#20
Closed in r55954
#21
@
17 months ago
- Keywords commit removed
- Resolution fixed deleted
- Status changed from closed to reopened
Follow-up ticket about moving the checkboxes before the labels: #58703
Also, I made a mistake with the .check-column .label-covers-full-cell input
selector, which probably should have been .check-column .label-covers-full-cell + input
with the label first.
Looks good to me. In 21516.2.diff I updated the patch, and made a slight tweak to include this functionality for the "check all" checkboxes in the table header row.