design-sparx / design-sparx/pattern-base
fix(antd,bootstrap): add keyboard listeners to non-interactive elements with click handlers (a11y)
Open
@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.tsxpackages/antd/src/components/chained-action/chained-action.tsxpackages/antd/src/components/footprints/footprints.tsxpackages/bootstrap/src/components/action-plan/action-plan.tsxpackages/bootstrap/src/components/chained-action/chained-action.tsxpackages/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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.