palantir / blueprint

A React-based UI toolkit for the web
https://blueprintjs.com/
Apache License 2.0
20.75k stars 2.18k forks source link

Card keyboard navigation #6870

Open evansjohnson opened 5 months ago

evansjohnson commented 5 months ago

Steps to reproduce

https://blueprintjs.com/docs/#core/components/card

Actual behavior

Cannot use keyboard to navigate to and interact with an interactive Card element

Expected behavior

Possibly should only be keyboard accessible if onClick is defined, but if so, should be able to trigger with keyboard.

Possible solution

Use a generic wrapper component that hooks up keyboard navigation support when adding onClick to elements that are not keyboard accessible by default.

Similar issue to https://github.com/palantir/blueprint/issues/4782, but in this issue cannot navigate to with keyboard at all, in addition to not being able to trigger action with keyboard.

evansjohnson commented 5 months ago

Also applies to the related CardList component