-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increase clickable area for Block controls #4223
Comments
Worth mentioning the new WCAG 2.1 (going to happen soon) will require the target size to be at least 44 by 22 pixels for the AA level, with a few exceptions. See https://www.w3.org/TR/WCAG21/#target-size |
I knew there was an accessibility issue, but I was looking through the WCAG 2.0 spec for it. Thanks for the link, @afercia. 🙂 |
Yeah 2.1 is not an official recommendation yet, it will be soon and at that point we should start addressing this issue also in core where all things need to be... bigger :) |
Can we see in a PR what 44 x 22 would be like? I'd agree we should go with that, depending on what it looks like. |
Initial tinkering in developer tools to show general appearance of (In latter case, we could still allow clickable area at those dimensions but reduce focus effect styling) |
Update: the target size requirement has been moved to level AAA in the Candidate Recommendation of WCAG 2.1. Some background here: http://www.incobs.de/articles/items/target-size-fate.html |
I can fix this, I need to address this as part of #5400 anyway. |
@jasmussen as this is being done as part of another issue should we close this one and wrap them into one? |
Yes, all issues mentioned in this one will be fixed when #5400 is fixed, or vice versa. I'll close one of them. But the PR to address both is almost ready to go. |
* Polish side UI, make arrows bigger. This is initial work to improve the side UI. It fixes #5400 and #4223 by making the arrows visually bigger. It also simplifies the hover styles and improves mobile in the process. * Refine mobile block UI, and responsive hover labels. * Add trash button to right side UI. More to come. * Enhance situation in wide blocks. * Remove role from Remove button, and remove Trash from menu. * Editor: Fix Eslint issues in BlockSettingsMenu * Refine collapsing margins hack, fix flickering. * Add some clearance between side UI and block. * Fix z-index issue. * Fix block settings dropdown menu
* Polish side UI, make arrows bigger. This is initial work to improve the side UI. It fixes WordPress#5400 and WordPress#4223 by making the arrows visually bigger. It also simplifies the hover styles and improves mobile in the process. * Refine mobile block UI, and responsive hover labels. * Add trash button to right side UI. More to come. * Enhance situation in wide blocks. * Remove role from Remove button, and remove Trash from menu. * Editor: Fix Eslint issues in BlockSettingsMenu * Refine collapsing margins hack, fix flickering. * Add some clearance between side UI and block. * Fix z-index issue. * Fix block settings dropdown menu
Unless I am mistaken this should be closed now? If not we can always reopen. |
The block move and block ellipsis buttons both have 20x20 clickable areas - this feels a little easy to miss, particularly with the hover visual feedback being quite subtle.
For comparison, the similar buttons in Dropbox Paper have a 24x24 icon, with a 32x32 clickable area.
I suspect this will become more necessary when #3044 is implemented, as having UI that disappears if you twitch too much is wildly frustrating.
Also mentioned here: https://wordpress.org/support/topic/tested-for-a-couple-hours-today-feedback/
The text was updated successfully, but these errors were encountered: