design-sparx / design-sparx/pattern-base

fix(antd,bootstrap): add keyboard listeners to non-interactive elements with click handlers (a11y)

Open
#36 0 comments 0 reactions 1 assignee View on GitHub

@kelvink96 is already working on this.

Since Sep 19, 2026.

lint
Dominant language
TypeScript
Stars
1
Forks
0
Avg merge
23h 44m
Merged PRs (30d)
5

Description

Problem

Antd and Bootstrap packages have jsx-a11y/click-events-have-key-events and jsx-a11y/no-static-element-interactions warnings on clickable div/span elements that lack keyboard support.

Affected files

  • packages/antd/src/components/action-plan/action-plan.tsx
  • packages/antd/src/components/chained-action/chained-action.tsx
  • packages/antd/src/components/footprints/footprints.tsx
  • packages/bootstrap/src/components/action-plan/action-plan.tsx
  • packages/bootstrap/src/components/chained-action/chained-action.tsx
  • packages/bootstrap/src/components/footprints/footprints.tsx

Fix

Add role="button" and onKeyDown handler to each affected element, or replace the div with a button where appropriate.

Count

~12 instances across 6 files.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.