mirror of
https://github.com/penpot/penpot.git
synced 2026-11-06 01:50:39 +00:00
A template card was an <a> without href inside a focusable div: Tab reached the div, and neither Enter nor Space imported the template, so the cards could not be used from the keyboard. Importing is an action, so the card is now a <button> with the same look; it takes the tab index the div had, and the manual Enter handler goes away. Keyboard focus looks like hover (accent border and "Add to your project"). The templates visual test gives 0 px of difference at rest, on hover and for the scroll and collapse buttons; a new shot covers the focus. AI-assisted-by: claude-opus-5-5