Problem/Motivation

This is in somewhat gray area. At the time I type this, the only official WCAG target size requirement is 2.5.5 Target Size, and this is an AAA requirement, higher than the AA standard Drupal is built to meet. This requires the clickable element to be at least 44x44px.

However, there is a slightly less strict AA version of this proposed for the next set of WCAG standards, 2.2: 2.5.8 Pointer Target Spacing. The element can be smaller than 44x44 as long as the surrounding whitespace (or anything non-clickable) provides a minimum 44x44 "box" around it

Since some version of 2.5.8 Pointer Target Spacing is likely to be part of the next version of WCAG, and because it benefits tablet/touchscreen users I'd like to add this. The buttons + spacing are currently 36x36px, so an extra 8px of spacing and/or button size would take care of this.

Steps to reproduce

Proposed resolution

Likely add Drupal specific styles to enlarge the button and/or its spacing, but it's possible this is something the CKEditor devs would want to address and make part of their default theme.

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork ckeditor5-3207451

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bnjmnm created an issue. See original summary.

bnjmnm’s picture

bnjmnm’s picture

Status: Active » Fixed

Setting to fixed - the PR on the Github repo was merged.

zrpnr’s picture

Status: Fixed » Needs work

Thanks for doing this research @bnjmnm, I more or less copied the styles for the admin UI from the CK5 online builder.

it's possible this is something the CKEditor devs would want to address

That's out of scope here I think, the toolbar UI is totally under our control and sizing the buttons is in css/toolbar.admin.css
We need to make your changes there as well.

zrpnr’s picture

Status: Needs work » Needs review

Updated toolbar.admin.css with @bnjmnm changes in https://github.com/zrpnr/ckeditor5-drupal-admin/pull/3/files

  • zrpnr committed 543df70 on 1.0.x
    Issue #3207451 by zrpnr, bnjmnm: Toolbar UI Button size accessibility
    
zrpnr’s picture

Status: Needs review » Fixed

This seems pretty safe to merge :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.