Fix dark mode article title visibility on hover#45
Conversation
WalkthroughAdds dark mode CSS class variants to the blog-card component styling. The article element and text elements (title, excerpt, metadata) now include Tailwind dark: prefixed classes for dark mode appearance without altering component logic or layout. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes This is a straightforward styling change affecting a single file with repetitive, homogeneous modifications. All edits follow the same pattern (adding Tailwind dark: prefixed classes) with no logic changes or control flow alterations. Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🔇 Additional comments (3)
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. Comment |
|
"Fix dark mode hover title visibility in blog card" i am from cyber soldiers team the gradient effect applying text-transparent . |
Problem
Article titles become invisible when hovering over article cards in dark mode due to the gradient effect applying
text-transparentwithout proper contrast against the dark background.Solution
Added comprehensive dark mode styling to
blog-card.tsx:dark:bg-gray-800- provides proper dark backgrounddark:text-gray-100- ensures visibility before hoverdark:text-gray-300- maintains readabilitydark:text-gray-400- appropriate contrast for author infoResult
✅ Article titles now remain visible in dark mode
✅ Green gradient hover effect works correctly on both light and dark backgrounds
✅ Improved user experience for dark mode users
Testing
Tested locally with dark mode enabled - titles are now clearly visible and the hover gradient effect displays properly.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.