Skip to content

Fixed inconsistent card hover colour across themes - #193

Merged
palchhinparihar merged 1 commit into
palchhinparihar:mainfrom
mahir-m01:fix/hover-colours
Oct 30, 2025
Merged

Fixed inconsistent card hover colour across themes#193
palchhinparihar merged 1 commit into
palchhinparihar:mainfrom
mahir-m01:fix/hover-colours

Conversation

@mahir-m01

@mahir-m01 mahir-m01 commented Oct 30, 2025

Copy link
Copy Markdown
Contributor

📝 Description

This PR updates the Summary Card hover colours to match each theme’s individual palette, improving visual consistency and aesthetics across all modes. Previously, all cards used the same purple hover colour regardless of theme.

Fixes #192


🔍 Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🧹 Code refactor (cleanup or optimization)
  • 🐞 Bug fix (non-breaking change which fixes an issue)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 🧪 Tests added/updated
  • 📝 Documentation update

🧪 How Has This Been Tested?

Steps:

  1. Run the application
  2. Switch between multiple themes (e.g., Midnight Blue, Deep Ocean, Sunrise, etc.)
  3. Hover over summary cards
  4. Confirm that hover shadows now match the theme colors rather than using a fixed purple

Result:
✅ Hover effects update dynamically per theme
✅ No visual regressions or styling conflicts


📸 Screenshots / Demo (if applicable)

Screenshot 2025-10-30 at 4 21 08 PM Screenshot 2025-10-30 at 4 20 40 PM Screenshot 2025-10-30 at 4 23 40 PM

🧠 Checklist

  • My code follows the project's coding style and conventions
  • I have performed a self-review of my code
  • I have commented my code where necessary
  • I have updated related documentation (if applicable)
  • My changes generate no new warnings or errors
  • All tests pass successfully

💬 Additional Notes

This update improves UI consistency and simplifies theme management by centralizing all colour logic in themes.js.
It also lays the groundwork for future theme additions - new themes will automatically apply correct hover colours without manual edits.

Copilot AI review requested due to automatic review settings October 30, 2025 10:53
@netlify

netlify Bot commented Oct 30, 2025

Copy link
Copy Markdown

Deploy Preview for wordwizard-texteditor ready!

Name Link
🔨 Latest commit 466d2da
🔍 Latest deploy log https://app.netlify.com/projects/wordwizard-texteditor/deploys/690343926171e300084b544b
😎 Deploy Preview https://deploy-preview-193--wordwizard-texteditor.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.

Copilot AI 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.

Pull Request Overview

This PR enhances theme customization by adding theme-specific card styling properties to all themes. The changes allow the SummaryCard component to use theme-specific colors for backgrounds, borders, and hover effects instead of hardcoded fallback values.

  • Added cardBg, cardBorder, and cardHover properties to all 14 themes in the themes data file
  • Updated SummaryCard component to accept and use the currentTheme object for dynamic styling
  • Passed the currentTheme prop through the component chain (App → TextForm → SummaryCard)

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/data/themes.js Added card styling properties (cardBg, cardBorder, cardHover) to all theme objects
src/App.jsx Passed currentTheme prop to TextForm component
src/components/TextForm.jsx Forwarded currentTheme prop to SummaryCard component
src/components/SummaryCard.jsx Updated to use theme-specific card styling with fallback defaults and removed unused idx parameter

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@palchhinparihar palchhinparihar added hacktoberfest Participating in Hacktoberfest hacktoberfest2025 Participating in Hacktoberfest 2025 hacktoberfest-accepted Accepted for the Hacktoberfest 2025 labels Oct 30, 2025
@palchhinparihar
palchhinparihar merged commit 137f8bc into palchhinparihar:main Oct 30, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest Participating in Hacktoberfest hacktoberfest2025 Participating in Hacktoberfest 2025 hacktoberfest-accepted Accepted for the Hacktoberfest 2025

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Summary card hover shadow is the same across all themes

3 participants