I have a button than when clicked will expand a card with more information
Do I need to add onKeyDown to button for accessibility compliance?
Or is that redundant because the element is already a button?
I am missing something else to comply with WCAG 2.0?
Here is my collapsible button code with react
const ariaPressed = checked ? "true" : "false";
return (
<button
tabIndex={0}
role="button"
component="button"
aria-pressed={ariaPressed}
aria-expanded={ariaPressed}
onClick={toggleChecked}
>
{checked ? "Hide Versions" : "View Versions"}
</button>
);

