Skip to content

Conversation

@knowler
Copy link
Contributor

@knowler knowler commented Feb 3, 2026

This refactors the cards in the CTA section (used on the home and about pages) to have headings (i.e. <h3> elements) and improves the focus rings. The links are now within the cards rather than wrapping the cards. I’m using the tried and true trick of making an sub-element within the link to cover the card, but then using z-index to keep heading and paragraph text on top so it can be directly selected.

For accessibility, this makes these call to action cards navigable (i.e. since they have headings AT can navigate to them) and the accessible names of the links are more focused (i.e. they don’t include the entire card’s contents).

Glad to receive feedback on my utility class name ordering.

Aside: eventually a <Card> component (with a clickable variant) could be a good abstraction.

@vercel
Copy link

vercel bot commented Feb 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
npmx.dev Ready Ready Preview, Comment Feb 3, 2026 4:27am
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs.npmx.dev Ignored Ignored Preview Feb 3, 2026 4:27am
npmx-lunaria Ignored Ignored Feb 3, 2026 4:27am

Request Review

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