Skip to content

fix(about): readable Education headings (text-base color collision)#4

Merged
nimkimi merged 1 commit into
mainfrom
fix-about-text-base-collision
Jun 21, 2026
Merged

fix(about): readable Education headings (text-base color collision)#4
nimkimi merged 1 commit into
mainfrom
fix-about-text-base-collision

Conversation

@nimkimi

@nimkimi nimkimi commented Jun 21, 2026

Copy link
Copy Markdown
Owner

What

The Education degree/institution <h3>s used text-base, which emitted both a font-size and color: #0E0E10 — because the palette defines a base color and base is also Tailwind's default font-size key. sm:text-lg overrode the size but not the leaked color, leaving the headings black-on-near-black (invisible).

Fix: drop text-base so the heading inherits ink and sizes via sm:text-lg.

Tests

Adds e2e/about-readability.spec.ts — a real-browser contrast guard. jsdom can't see the cascade and axe marks it "incomplete" (the .grain overlay defeats its background detection), so an explicit Playwright contrast check is the only reliable regression guard.

Notes

Split out of #2 (CI pipeline) so the design fix isn't gated behind CI review. Partially addresses #3 — the underlying base token collision (design-token rename) is still tracked there.

The degree/institution <h3>s used `text-base`, which emits both a
font-size AND `color: #0E0E10` because the palette's `base` color shares
Tailwind's default `base` font-size key. `sm:text-lg` overrode the size
but not the leaked color, rendering the headings invisible (black on the
near-black background). Drop `text-base` so the heading inherits `ink`
and sizes via `sm:text-lg`.

Add e2e/about-readability.spec.ts: a real-browser contrast guard (jsdom
can't see the cascade; axe marks it "incomplete" because the .grain
overlay defeats its background detection). Closes #3 partially — the
underlying token collision is tracked there for a design-token rename.
@vercel

vercel Bot commented Jun 21, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
hackimi Ready Ready Preview, Comment Jun 21, 2026 1:59pm

@nimkimi nimkimi merged commit e99e14d into main Jun 21, 2026
3 checks passed
@nimkimi nimkimi deleted the fix-about-text-base-collision branch June 21, 2026 14:03
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