Clarity is a scalable, accessible, customizable, open-source design system built with web components. Works with any JavaScript framework, created for enterprises, and designed to be inclusive.
onKeyDown is never fired during tests for components CdsControlAction and CdsButton. I first noticed this in CdsControlAction and reproduced it in CdsButton while making the repro, so maybe it's an issue with the base button?
Describe the bug
onKeyDown
is never fired during tests for componentsCdsControlAction
andCdsButton
. I first noticed this inCdsControlAction
and reproduced it inCdsButton
while making the repro, so maybe it's an issue with the base button?How to reproduce
Here's a repo that reproduces the problem: https://github.com/dturcotte/cds-control-action-keydown (stackblitz/codesandbox are problematic for test only repros)
The test output is in the README for your convenience
Steps to reproduce the behavior:
yarn install
yarn test
CdsButton
andCdsControlAction
tests fail, and the<button>
test passesExpected behavior
onKeyDown
should work in testsVersions
Clarity project:
Clarity version:
Framework:
Framework version: React 18
Device:
Additional notes