Skip to content

fix(tools): make each tools card a link to its docs page - #56

Merged
jm-rivera merged 2 commits into
devfrom
fix/tools-cards-clickable
Oct 24, 2026
Merged

jm-rivera merged 2 commits into
devfrom
fix/tools-cards-clickable

Conversation

@jm-rivera

Copy link
Copy Markdown
Contributor

Each card in the home page's "Build in your own tools" section opens its docs page from a click anywhere on the card. Only the arrow button navigated before, through router.push, while the card's pointer cursor and whole-card arrow hover made the rest of it look clickable.

In BuildTools.tsx, a Link wraps the title and text and fills the box. The arrow is a second Button with the same href, set beside the link because an anchor cannot hold another anchor, and kept out of the tab order and the accessibility tree with tabIndex={-1} and aria-hidden. The Gallery tiles use the same arrangement. A stretched ::after on the arrow would need one element only, but the arrow's data-reveal sets translate, which makes the arrow the containing block and shrinks the overlay to the arrow's own size.

In BuildTools.module.scss, the box padding moves to .boxLink, with rem(48) at the bottom to keep the text clear of the arrow, which sits absolutely positioned in the bottom-right corner.

Testing: tsc --noEmit, ESLint and Stylelint pass. On a local dev server at 1440px wide, a click in the empty lower-left corner of each card opened /docs/api/quickstart, /docs/tools/oda-reader, /docs/mcp/connect and /docs/build/embed, and a click on the MCP Server arrow opened /docs/mcp/connect. A screenshot of the section matched the existing layout.

Generated with Claude noreply@anthropic.com

Only the arrow button navigated, through router.push, while the card's
pointer cursor and whole-card hover made the rest look clickable. A
Link now fills each card, and the arrow is a second link to the same
page, kept out of the tab order and the accessibility tree.

Generated with Claude <noreply@anthropic.com>
@jm-rivera
jm-rivera marked this pull request as ready for review October 23, 2026 22:39
Generated with Claude <noreply@anthropic.com>
@jm-rivera
jm-rivera merged commit 99264d7 into dev Oct 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant