Skip to content

fix(a11y): improve color contrast for WCAG compliance - #47

Open
bholmesdev wants to merge 1 commit into
mainfrom
fix/color-contrast
Open

bholmesdev wants to merge 1 commit into
mainfrom
fix/color-contrast

Conversation

@bholmesdev

Copy link
Copy Markdown
Owner

Fix color contrast for WCAG compliance

Summary

Improves color contrast ratios for elements that fail WCAG 1.4.3 (Contrast Minimum) and WCAG 1.4.11 (Non-text Contrast). This is a follow-up to #46 which addressed other accessibility concerns.

Changes

Blog heading counter number (src/pages/blog/[...slug].astro)

  • color: gray-600 → gray-500 on gray-900 background
  • Contrast ratio: ~2.4:1 → ~3.7:1 (passes 3:1 for large text)

Blockquote border (src/pages/blog/[...slug].astro)

  • border-color: gray-900 → gray-700 on gray-950 background
  • Contrast ratio: ~1.1:1 → ~2.0:1 (significant visibility improvement)

Newsletter input border (src/components/Newsletter.tsx)

  • border-slate-700 → border-slate-500 on gray-900 background
  • Contrast ratio: ~1.8:1 → ~3.8:1 (passes 3:1 for UI components)

This PR was generated with Warp.

- Blog heading counter: gray-600 → gray-500 on gray-900 bg (~2.4:1 → ~3.7:1)
- Blockquote border: gray-900 → gray-700 on gray-950 bg (~1.1:1 → ~2.0:1)
- Newsletter input border: slate-700 → slate-500 on gray-900 bg (~1.8:1 → ~3.8:1)

Addresses WCAG 1.4.3 (Contrast Minimum), 1.4.11 (Non-text Contrast)

Co-Authored-By: Warp <agent@warp.dev>
@netlify

netlify Bot commented Feb 11, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for bholmes ready!

Name Link
🔨 Latest commit 7ddc4d8
🔍 Latest deploy log https://app.netlify.com/projects/bholmes/deploys/698d0fc42b52a000083f38f9
😎 Deploy Preview https://deploy-preview-47--bholmes.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying bholmesdev with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7ddc4d8
Status: ✅  Deploy successful!
Preview URL: https://73359069.bholmesdev.pages.dev
Branch Preview URL: https://fix-color-contrast.bholmesdev.pages.dev

View logs

@bholmesdev bholmesdev left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview: This PR makes targeted contrast adjustments, but the branch is currently not mergeable and one changed JSX attribute lost normal formatting.

⚠️ [IMPORTANT] GitHub reports this branch as CONFLICTING. Rebase or merge main and resolve the conflicts so the contrast changes can be validated against the current layout/theme files.

💡 [SUGGESTION] In src/components/Newsletter.tsx, keep the changed className attribute aligned with the surrounding input attributes; the current diff moves it to column 1.

Found: 0 critical, 1 important, 1 suggestions

Recommendation: Request changes. Posted as COMMENT because GitHub does not allow the authenticated user to request changes on their own PR.

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