Skip to content

Fix product-card link styles and define compare-and-swap - #49

Merged
charlesgreen merged 4 commits into
mainfrom
fix-product-cards-and-cas
Oct 25, 2026
Merged

charlesgreen merged 4 commits into
mainfrom
fix-product-cards-and-cas

Conversation

@charlesgreen

@charlesgreen charlesgreen commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Why

/products/ and the homepage "Also from us" band wrapped each product in <a class="ax-card">. Guides already use .ax-listcard (display: block; text-decoration: none) for the same card-as-link pattern. Without that class, headings, body copy and status lines inherited the browser's visited colour and underline.

CAS was shown as a stat with no definition.

What

  • Product and homepage sibling cards now use ax-card ax-listcard, the same class as guides and blog. No new card identity.
  • .ax-listcard also inherits colour so a visited link cannot leak through an unstyled child.
  • Hero titles wrap instead of clipping when text-wrap: balance would keep a short title on one overflowing line (the hero uses overflow: hidden).
  • /sync/ has a Compare-and-swap section. The hero stat spells the acronym out.

Check

make build && make lint.

Bare <a class="ax-card"> inherited the browser's visited colour and
underline, so every line on /products/ looked like a link. Treat
card-as-link as a flex card with body colour and the status pinned to
the bottom. Spell out CAS on /sync/.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Deploying aixgo with  Cloudflare Pages  Cloudflare Pages

Latest commit: 16c55bc
Status: ✅  Deploy successful!
Preview URL: https://c6aba04a.aixgo.pages.dev
Branch Preview URL: https://fix-product-cards-and-cas.aixgo.pages.dev

View logs

The earlier pass added flex, min-height, and a focus ring. Those were
new design. Guides already use ax-listcard for text-decoration: none;
the product and homepage sibling cards now do the same.
The previous Pages check failed instantly after a follow-up push. Lint
was green. Empty commit to get a new preview build.
text-wrap: balance plus overflow:hidden on the hero can clip a short
title on a narrow viewport. List cards inherit colour so a visited
link cannot leak through an unstyled child.
@charlesgreen
charlesgreen merged commit f5615b2 into main Oct 25, 2026
5 checks passed
@charlesgreen
charlesgreen deleted the fix-product-cards-and-cas branch October 25, 2026 05:50
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