This translation has not been editorially reviewed yet. The German version is authoritative. Deutsche Fassung
Accessibility
How do I enlarge the click area without enlarging the icon?
The click button is the element that responds to the click, not the image in it. A link with a symbol of 16 pixels reaches 24 times 24 CSS pixels as soon as it gets 4 pixels inside distance on each side; The symbol remains as large as before. The alternatives are min-width and min-height on the container or clear distance to the neighboring destination. Which path fits where is below.
Interior distance: the symbol remains, the area grows
The browser calculates the inner distance (padding) to the area of a link or button. An icon of 16 pixels with 4 pixels inside clearance on each side gives 24 CSS pixels in width and height, and clicking on the edge triggers the same as clicking on the icon. This fits for toolbars, closing crosses at reference windows and linked icons in the foot of the page. It is important that the inner distance is on the element that accepts the click: on the a or the button, not on a chip in it.
min-width and min-height for leaf strips and menus
For page numbers under a list and for navigation menus, the W3C describes the technique C42: Each entry gets min-height and min-width of 24 pixels, plus an outside distance of 3 pixels, and the list is wrapped with display: flex and flex-wrap: wrap. The digit remains as small as before, centered over text-align: center. According to W3C, the target is a sufficient distance from the neighboring targets so that no accidental click lands next to it.
Distance instead of size: the circle of 24 pixels
If a target remains smaller than 24 CSS pixels, it may still exist if there is enough space around it. The W3C describes the sample as follows: An imaginary circle with 24 CSS pixels diameter is drawn around the center of the target, which is too small. This circle must not touch another target, nor the circle of another too small target. The examples of the W3C: Two targets of 20 by 20 pixels with 4 pixel gap meet the requirement; buttons of 16 pixels with 1 pixel gap do not meet them; There are 16-pixel-high buttons if there is no target directly above and below.
Where the enlargement is omitted
Links in the flow text are excluded because their position depends on the device when the text is wrapped. Controls that the browser itself draws, such as the selection list of a select, are considered satisfied as long as you have not changed their size. Excluded is also what must be presented in this way, for example for legal reasons. For important buttons such as Send or Cart, the W3C recommends the stricter size from criterion 2.5.5: 44 times 44 CSS pixels.
Examples
Close cross at an indication window
.schliessen { width: 16px; height: 16px; }.schliessen { width: 16px; height: 16px; padding: 4px; box-sizing: content-box; }With content-box, the inner distance is added to the width: 16 plus 4 plus 4 gives 24 CSS pixels per direction. The cross remains 16 pixels in size.




