Skill library

Agent skill Review & testing

Interactive Hit Areas

Review the accessibility of visible web interface elements and interactions.

  • Accessibility
  • Interaction design

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add millionco/skills --skill interactive-hit-areas --agent claude-code --yes

Check this file in your project.claude/skills/interactive-hit-areas/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add millionco/skills --skill interactive-hit-areas

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Bring an interactive chart or contiguous control group, its current event target, and a local preview.

View operation manual

What this skill helps with

  • Review the accessibility of visible web interface elements and interactions.

Good for

  • Accessible interfaces
Skill name
interactive-hit-areas
Scenario
Remove pointer dead zones in a chart
Deliverable
A continuous hit band with stable labels and unchanged visual bar spacing.
Skill name
interactive-hit-areas

Give the request a concrete task

A request with an unclear outcome

Increase the CSS gap so the chart feels less crowded.

When only the bars own handlers, a larger empty gap can make the highlight disappear during a pointer sweep.

A workflow with observable results

  1. Find the dead zone and intended slot
  2. Make each interactive slot flush and inset the visual
  3. Sweep every boundary and check alignment

Interactive Hit Areas operation manual

Keep the visual gap between chart bars while letting each full slot receive its intended interaction.

Replace the bracketed details with your own project and target.

  1. Find the dead zone and intended slot

    Sweep the actual band and identify where the highlight drops.

    Prompt · Step 1
    Use interactive-hit-areas to inspect [chart and local route]. Sweep the pointer between bars at the same height and find where the highlight clears. Trace the DOM element that receives the handler and distinguish the intended full column from the visual bar. Confirm the design actually calls for a contiguous band and record the gap and label alignment.
  2. Make each interactive slot flush and inset the visual

    Move the event to the full slot and keep bar appearance.

    Prompt · Step 2
    Use interactive-hit-areas to fix [confirmed chart dead zone]. Put the handler and existing interactive semantics on one full-width slot per bar. Remove outside gaps only in this contiguous band. Reproduce spacing with a narrower centered child or internal padding. Align the label row to the same column tracks. Preserve keyboard and touch activation where the original chart supports them.
  3. Sweep every boundary and check alignment

    Test the outer edges, former gaps, and mobile width.

    • Former gap points resolve to the expected slots.
    • Labels remain aligned with the visible bars.
    Prompt · Step 3
    Use interactive-hit-areas to verify [updated chart] at [preview route]. Sweep across the whole intended band at chart height and along the labels. Check the former blank coordinates resolve to the correct neighboring slot and the active state does not flicker. Compare bar and label centers at two widths, then exercise keyboard and touch where supported. Note any intentionally inert adjacent space.

Find the relevant rule

Point the assistant to the installed Skill and a specific issue.

A visual gap is stealing pointer eventsReference
Command or reference
SKILL.md · The fix (general)
Examples
Give the full column to the interactive target, then place the narrower bar inside.
Labels drift from the barsReference
Command or reference
SKILL.md · React / Tailwind specifics
Examples
Use the same column tracks and gap treatment for both rows.

Interactive Hit Areas troubleshooting

Should unrelated cards have no gap?

Use flush targets only where the intended interaction is continuous. Gaps remain appropriate between separate controls or cards.