Give nearby controls enough space to reduce accidental activation, especially for people using touch or eye trackers. Measure the area that responds to clicks, taps, or eye-tracker dwelling—not just the visible icon or text. Larger targets are easier to use; WCAG 2.2 specifies minimum target sizes of 24 × 24 CSS px at Level AA and 44 × 44 CSS px at Level AAA. section 5.5.2
.pagination ul { #A
gap: 8px; #B
display: flex;
flex-wrap: wrap;
list-style: none;
margin: 0;
padding: 0;
align-items: center;
}
.pagination a { #C
min-width: 50px; #D
min-height: 50px; #E
padding-inline: 1rem; #F
padding-block: 0.625rem; #G
font-size: 1rem; #H
line-height: 1.2;
border: 1px solid var(--control-border);
border-radius: 0.375rem;
text-decoration: none;
font-weight: 700;
display: inline-flex;
align-items: center;
justify-content: center;
}
This pagination example combines 8px gaps with links at least 50px wide and tall, giving each target room to activate. section 5.5.2
