Skip to content

Fix unreadable founder-card title on About page#58

Merged
Kanyandula merged 2 commits into
masterfrom
fix/about-founder-title-contrast
May 16, 2026
Merged

Fix unreadable founder-card title on About page#58
Kanyandula merged 2 commits into
masterfrom
fix/about-founder-title-contrast

Conversation

@Kanyandula
Copy link
Copy Markdown
Owner

Summary

  • Add text-white to the About-page founder card <h2>.
  • The card sets a dark background + text-white, but the heading had no
    color class, so the prose heading rule
    (--tw-prose-headings: var(--color-on-surface)) won and rendered the
    title near-black on the dark card — ≈1.5:1, failing WCAG AA.
  • Matches the paragraph's existing text-white/80; one class, overrides
    the prose rule by source order.

Deploy status

⚠️ Already live in production (hotfix-deployed from this branch on
2026-05-16). This PR exists to bring master back in sync with what is
deployed — master is currently behind prod by this commit.

Merge ordering

Merge this PR FIRST, then #57. Both edit adjacent lines of
personal/templates/personal/about.html (line 33 here, line 32 in #57),
so whichever merges second may hit a trivial conflict — resolution is to
keep both one-line changes (the text-white on the h2 and the
bg-primary-container token swap).

Test plan

  • /about (no trailing slash) — founder title legible in light mode.
  • Toggle dark mode — title and body both readable.

The "Founded by" card sets a dark teal background and text-white, but
its h2 had no color class, so the prose heading rule
(--tw-prose-headings: var(--color-on-surface)) won and rendered the
title near-black on the dark card — ~1.5:1 contrast, failing WCAG AA.

Add text-white to the h2 so it matches the card's intended light-on-dark
scheme, consistent with the paragraph's existing text-white/80.
Resolve about.html founder-card conflict by keeping both changes:
bg-primary-container token (from #57 on master) and text-white on the
h2 (this branch / #58).
@Kanyandula Kanyandula merged commit ccc2974 into master May 16, 2026
9 checks 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