Skip to content

Fix: Apply correct dark mode theme text colors in CTASection#74

Closed
kushbosamiya wants to merge 1 commit into
StabilityNexus:mainfrom
kushbosamiya:fix/cta-theme-binding
Closed

Fix: Apply correct dark mode theme text colors in CTASection#74
kushbosamiya wants to merge 1 commit into
StabilityNexus:mainfrom
kushbosamiya:fix/cta-theme-binding

Conversation

@kushbosamiya

@kushbosamiya kushbosamiya commented Feb 26, 2026

Copy link
Copy Markdown

Applies dark:text-white utility classes to the heading and description elements in the CTASection to maintain visibility against the dark background.\n\nFixes #58

Summary by CodeRabbit

  • Style
    • Enhanced dark mode text colors for improved readability in the call-to-action section.

@vercel

vercel Bot commented Feb 26, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
identity-tokens-evm-frontend Ready Ready Preview, Comment Mar 10, 2026 2:27am

@coderabbitai

coderabbitai Bot commented Feb 26, 2026

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

This pull request adds dark mode text color styling to the CTA section by applying dark:text-white to the heading and paragraph elements, ensuring consistent text visibility when the application switches to dark theme.

Changes

Cohort / File(s) Summary
Dark Mode Text Styling
components/CTASection.tsx
Added dark:text-white class to h2 heading and paragraph elements for proper text color contrast in dark mode.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Poem

🐰 In dark mode's embrace, the text now gleams so bright,
White words on shadowed canvas—a delightful sight!
The CTA section glows with theme-aware flair,
Light or dark, the message floats through the air. ✨

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning The PR adds dark mode text colors but does not address the primary objective of replacing bg-dark-bg with bg-landing-bg to fix the background theme binding issue. Replace bg-dark-bg with bg-landing-bg in the section element and keep dark:bg-landing-bg-dark for dark mode to fix the core theme binding issue described in #58.
Out of Scope Changes check ⚠️ Warning Text color adjustments for dark mode are out of scope relative to the linked issue #58, which specifically requires background color fixes for theme consistency. Remove the text color changes and focus on fixing the background color binding as specified in issue #58 requirements.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change—applying dark mode text color adjustments to CTASection elements.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

github-actions Bot commented Mar 9, 2026

Copy link
Copy Markdown

⚠️ This PR has merge conflicts.

Please resolve the merge conflicts before review.

Your PR will only be reviewed by a maintainer after all conflicts have been resolved.

📺 Watch this video to understand why conflicts occur and how to resolve them:
https://www.youtube.com/watch?v=Sqsz1-o7nXk

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@components/CTASection.tsx`:
- Around line 21-25: The section container in CTASection.tsx still uses the dark
background class (bg-dark-bg) so light mode shows a dark background with black
text; update the section element's class list in the CTASection component to use
bg-landing-bg dark:bg-landing-bg-dark instead of bg-dark-bg so the h2 and p
(font-utsaha text-...) render correctly in both light and dark modes; ensure you
only replace the background class and keep existing layout and dark: prefixed
classes intact.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 45db8861-90dd-4f2e-bd16-c617c9fb1818

📥 Commits

Reviewing files that changed from the base of the PR and between f154d0a and ba630b9.

📒 Files selected for processing (1)
  • components/CTASection.tsx

Comment thread components/CTASection.tsx
Comment on lines +21 to +25
<h2 className="mx-auto mt-8 max-w-[90%] px-4 font-utsaha text-2xl tracking-tight text-black md:mt-[72px] md:max-w-[768px] md:px-0 md:text-6xl dark:text-white">
By Stability Nexus, For Everyone
</h2>

<p className="mt-5 px-4 font-utsaha text-lg text-black md:mt-[24px] md:text-2xl">
<p className="mt-5 px-4 font-utsaha text-lg text-black md:mt-[24px] md:text-2xl dark:text-white">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

This still leaves the light-theme CTA broken.

dark:text-white only helps in dark mode. The reported regression comes from the section container still defaulting to bg-dark-bg at Line 9, so light mode continues to render a dark background with black text here. Please switch the section to bg-landing-bg dark:bg-landing-bg-dark; otherwise this PR doesn’t actually fix issue #58.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@components/CTASection.tsx` around lines 21 - 25, The section container in
CTASection.tsx still uses the dark background class (bg-dark-bg) so light mode
shows a dark background with black text; update the section element's class list
in the CTASection component to use bg-landing-bg dark:bg-landing-bg-dark instead
of bg-dark-bg so the h2 and p (font-utsaha text-...) render correctly in both
light and dark modes; ensure you only replace the background class and keep
existing layout and dark: prefixed classes intact.

@KanishkSogani

Copy link
Copy Markdown
Member

issue mentioned is already closed.

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.

2 participants