Skip to content

fixed Darkmode-Lightmode switching issue #6525

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

ashok-2003
Copy link
Contributor

Description

This PR fixes #6484 (Card Text Labels Become Invisible When Switching Between Dark and Light Themes)

Notes for Reviewers

  • Fixed some indentation issues.
  • Added proper theme colors for the text.

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Ashok Kumar <ashokgupta2678@gmail.com>
@l5io
Copy link
Contributor

l5io commented Jun 4, 2025

🚀 Preview for commit 9892cea at: https://683fac9decdd6d7e89e1a9ba--layer5.netlify.app

@vr-varad
Copy link
Contributor

vr-varad commented Jun 4, 2025

some screen shots or recording will be helpful to review it @ashok-2003

@ashok-2003
Copy link
Contributor Author

sure @vr-varad ,

Screen.Recording.2025-06-04.131541.mp4

@vr-varad vr-varad requested a review from LibenHailu June 4, 2025 10:54
@vr-varad
Copy link
Contributor

vr-varad commented Jun 4, 2025

@M-DEV-1

@@ -215,7 +199,8 @@ const ViewsSectionWrapper = styled.div`
height:150px;
padding: 2rem;
box-sizing: border-box;
background-color: ${(props) => props.theme.backgroundColor};
background-color: ${(props) => props.theme.grey191919ToGreyF2F5F7};
Copy link
Member

Choose a reason for hiding this comment

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

@ashok-2003 we want to refrain from using props or tokens other than the ones mentioned in this palette

Copy link
Member

@M-DEV-1 M-DEV-1 Jun 4, 2025

Choose a reason for hiding this comment

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

Apologies, I just realised that these components are not using Sistent.

Can you use the isDark function? and toggle the colors accordingly? The backgroundColor token works fine, I believe. It's the text which we have to keep track of.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, sorry — I think the SVG was supposed to merge with the background to make it look seamless. Thanks for pointing that out. And yes, the main issue was with the text, which I’ve already addressed. I’ll go ahead and revert the background color changes.

Screen.Recording.2025-06-04.215805.mp4

overflow: hidden;
height: 100%;
.hero-text {
display: flex;
Copy link
Member

Choose a reason for hiding this comment

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

@ashok-2003 it would be nice if you keep the indentation fixes in a commit towards the end, that way it's easier to track changes .

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it, thanks for the suggestion! I’ll make sure to keep indentation or formatting fixes in a separate commit towards the end — makes total sense for cleaner reviews. 🙌

@LibenHailu
Copy link
Contributor

If there are formatting issues, It would be nice to address them, as for the backgrounds
background-color: ${(props) => props.theme.backgroundColor}; background-color: ${(props) => props.theme.grey191919ToGreyF2F5F7};
I think they are good contrasting colors for our theme, considering our theme stays consistent, LGTM!

@M-DEV-1
Copy link
Member

M-DEV-1 commented Jun 4, 2025

If there are formatting issues, It would be nice to address them, as for the backgrounds
background-color: ${(props) => props.theme.backgroundColor}; background-color: ${(props) => props.theme.grey191919ToGreyF2F5F7};
I think they are good contrasting colors for our theme, considering our theme stays consistent, LGTM!

@LibenHailu yes, I don't think that props.theme.grey191919ToGreyF2F5F7 is a default theme that we're using in our site

@LibenHailu
Copy link
Contributor

If there are formatting issues, It would be nice to address them, as for the backgrounds
background-color: ${(props) => props.theme.backgroundColor}; background-color: ${(props) => props.theme.grey191919ToGreyF2F5F7};
I think they are good contrasting colors for our theme, considering our theme stays consistent, LGTM!

@LibenHailu yes, I don't think that props.theme.grey191919ToGreyF2F5F7 is a default theme that we're using in our site

In the deployed version check it out it looks close.

@ashok-2003
Copy link
Contributor Author

@LibenHailu Yeah, I later realized that a contrasting background might actually work better. Initially, I was aiming for a more blended look, but I’ll revert it back to the original for better clarity.

@M-DEV-1 Just to clarify, props.theme.grey191919ToGreyF2F5F7 is used as the main background color for that container — I took inspiration from there.

Signed-off-by: Ashok Kumar <ashokgupta2678@gmail.com>
@l5io
Copy link
Contributor

l5io commented Jun 4, 2025

🚀 Preview for commit bd385c8 at: https://68407bd8d2d571565f5b4084--layer5.netlify.app

@vishalvivekm
Copy link
Contributor

@ashok-2003 will you please be reverting any formatting, white spaces as other reviews have noted as well?

@vishalvivekm vishalvivekm added the pr/hold Do not merge this PR label Jun 9, 2025
@vishalvivekm
Copy link
Contributor

@ashok-2003
Let's also discuss this during the website call today at 7 AM CT | 5:30 PM IST.

Add it as an agenda item to the meeting minutes, if you would :)

@l5io
Copy link
Contributor

l5io commented Jun 9, 2025

🚀 Preview for commit ec02150 at: https://684662cf9928c8757983814e--layer5.netlify.app

@ashok-2003
Copy link
Contributor Author

@vishalvivekm, thank you for your review. Reverting those formatting changes may likely cause issues, as discussed in the meetings. Are these the required changes, or is there anything more I’m expected to do?

@LibenHailu
Copy link
Contributor

Hi @ashok-2003, as discussed on the sites meeting let's fix format issues if there are any, you can use npm run lint before committing your changes, it will fix lint issue if there are any, after that please re-request review. other than that LGTM!

Copy link
Contributor

@LibenHailu LibenHailu left a comment

Choose a reason for hiding this comment

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

Can you check format issues if there are any?

Signed-off-by: Ashok Kumar <ashokgupta2678@gmail.com>
@@ -106,7 +106,7 @@ const ViewsSectionWrapper = styled.div`
/* max-width: 90%; */
padding-bottom: 2%;
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was causing the issue where the Card component wasn't rendering the color according to the background.

@ashok-2003
Copy link
Contributor Author

@LibenHailu, thank you for the suggestion. Unfortunately, npm run lint doesn’t work for me. After a lot of head-banging, I’ve found the main and minimal changes that are required. Are we good to go? @M-DEV-1, @vishalvivekm

@LibenHailu
Copy link
Contributor

LibenHailu commented Jun 11, 2025

@LibenHailu, thank you for the suggestion. Unfortunately, npm run lint doesn’t work for me. After a lot of head-banging, I’ve found the main and minimal changes that are required. Are we good to go? @M-DEV-1, @vishalvivekm

@ashok-2003 Please feel free to share the error logs on slack with me if the issue persists. I am not seeing the deployment link tho.

@LibenHailu LibenHailu requested a review from M-DEV-1 June 11, 2025 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/hold Do not merge this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Card Text Labels Become Invisible When Switching Between Dark and Light Themes
6 participants