Skip to content

fix: Improve How It Works heading and step-card contrast for dark mode - #282

Open
Oberonskii wants to merge 1 commit into
Muskankr:mainfrom
Oberonskii:fix/how-it-works-contrast
Open

fix: Improve How It Works heading and step-card contrast for dark mode#282
Oberonskii wants to merge 1 commit into
Muskankr:mainfrom
Oberonskii:fix/how-it-works-contrast

Conversation

@Oberonskii

Copy link
Copy Markdown

Closes #276

What was changed

Fixed the "How It Works" section text legibility on dark backgrounds:

  • Heading (<h3>) — added color: var(--card-text) so it uses the theme-aware text color instead of inheriting a low-contrast default
  • Step titles (<h4>) — same var(--card-text) fix for proper light/dark contrast
  • Step descriptions (<p>) — removed opacity: 0.8 that dimmed text to 80% opacity, added var(--card-text) for full WCAG AA compliant contrast
  • Step cards (<div>) — used var(--card-bg) with color: var(--card-text) on the card itself so all text inherits theme-appropriate colors

How it was tested

  • TypeScript compilation passes (tsc --noEmit ✓)
  • Changes are purely CSS — no logic or functionality affected
  • All text now respects --card-text (light: #0f172a, dark: #e2e8f0) and card background uses --card-bg (light: #ffffff, dark: rgba(2,6,23,0.6))

Verification

  • WCAG AA contrast ratio is satisfied in both light and dark themes
  • Step icons remain visually consistent (unchanged)

- Add 'var(--card-text)' color to heading, step titles, and descriptions
  for WCAG AA contrast compliance in both light and dark themes
- Remove 'opacity: 0.8' on step descriptions that reduced legibility
- Use 'var(--card-bg)' with proper theme-aware background instead of
  the barely-visible rgba fallback on step cards

Closes Muskankr#276
@Oberonskii
Oberonskii requested a review from Muskankr as a code owner July 21, 2026 18:59
@vercel

vercel Bot commented Jul 21, 2026

Copy link
Copy Markdown

@Oberonskii is attempting to deploy a commit to the a2521729-9889's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Muskankr

Copy link
Copy Markdown
Owner

@Oberonskii , Resolve merge conflicts

@Muskankr Muskankr added enhancement New feature or request ECSoC26 frontend bug Something isn't working and removed enhancement New feature or request labels Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ECSoC26 frontend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix "How It Works" section heading and step-card contrast

2 participants