Claro icons and sizes

The specified target area of the icons is too small to be usable on handheld devices. Most human fingertips are more than 12 x 12px in size.

WCAG 2.1 AAA guidelines specify a minimum size of 44 x 44px for target areas. The AAA standard goes beyond the legal minimum for compliance.

Recommendation:

If that 44 x 44px is not feasible, then set a minimum of 36 x 36px for the target area in the admin UI, if not 24 x 24px (L size).

Reference

Material Design sets their icons inside of a 24 x 24px square by default. See https://material.io/design/iconography/system-icons.html#grid-keyline-sh...

Comments

modulist created an issue. See original summary.

modulist’s picture

Issue summary: View changes
saschaeggi’s picture

@modulist I've updated the documentation according to your bug report. there was no specification that S should be used for mobile use. These are just meant to be different icon sizes which can be used throughout the user interface.

So the doc now includes target areas to clarify this. Thanks for pointing out.
So e.g. the icons for the toolbar would have a target area of 24x24 but the icon itself would be 16x16.

fhaeberle’s picture

Version: 8.x-1.x-dev » 8.x-2.x-dev
Category: Bug report » Task

Can this issue be closed? As I assume, the iconography size system was established without the target area included to have a flexible design approach. However, the icons are used with enough target spacing in a lot of components and we should asses this accessibility concern for each component separately (which is already be done for the majority of the components).

huzooka’s picture

Project: Claro » Drupal core
Version: 8.x-2.x-dev » 8.9.x-dev
Component: User interface » Claro theme

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

rainbreaw’s picture

I haven't investigated this issue thoroughly in the actual theme, but want to make a clarifying note here:

The image or icon itself does not need to be 44x44 (WCAG and iOS) or 48x48 (Material), it is the touch area that must be this size. Touch area isn't simply referring to physical touch on a mobile device, but also cursor touch and accuracy on a computer, as well.

Even if material icons are 24x24, the CSS itself must include enough padding around the icon or target to create enough tappable space.

While this is a WCAG 2.1 Level AAA criterion, it is a serious issue for users with dexterity challenges. This can include a large number of individuals in both permanent and situational/temporal scenarios, such as aging, repetitive stress injury, being very young, certain medications, ticks, tremors, stereotypies/repetitive motions associated with developmental disorders, etc. For more on this, see WCAG 2.5.5 Target Size.

ckrina’s picture

Issue summary: View changes
StatusFileSize
new20.74 KB

We defined this min target area:

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.