How to give a small icon a larger click target
Answer in brief
Put the glyph inside a larger button and attach interaction to that button. Measure the clickable box independently of the visible artwork.
Test a dense action row
Center a 16-pixel pencil inside a 32-by-32 CSS pixel button. Click the padded corners, then inspect the gap to the next button. WCAG 2.2 target size minimum uses 24 by 24 CSS pixels and defines exceptions including spacing.
Watch for overlapping hit boxes
Giving every action generous padding can make neighboring targets overlap if they are absolutely positioned. Click the shared boundary between edit and delete from both directions. Inspect which button receives each click, then adjust the row layout so each visible control has a predictable interactive area.
Sources
- [1] Understanding Success Criterion 2.5.8: Target Size (Minimum) | WAI | W3C — W3C, accessed November 23, 2026
Frequently asked questions
Does a large shadow increase the target?
A shadow can enlarge the painted area without enlarging the clickable box. Use the element's dimensions and pointer tests to check the target.