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
Flicker in default dark theme #1455
Conversation
✅ Deploy Preview for mesheryio-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Let's discuss this on website call today at 5:30 PM IST / 7 AM Central time. Please add this as an agenda item in the meeting minutes |
@sudhanshutech please check, and let me know what I am doing wrong, I have done everything similar to docs as you suggested but still it's not working. What, I realize is there is something in css mainly which is causing this, but what css, I still not able to find that? |
@coder12git have you figured out if this is happening due to CSS Rendering or JavaScript Timing? |
Yep mainly due to js timing, that's why I added the main logic in starting of the body tag, the main thing is the check whether light mode, dark mode or null should be done in starting, to prevent this which I did, but it doesn't work. I will try again today. |
Please remove the draft label when ready for another review. |
@coder12git I have not seen what JS logic has been used but I got some idea by seeing the |
Hmm i agree, can be fix by using dark-mode class in body which I tried but it doesn't work, will see again :) |
I know that because you not only have to change the 'dark-mode' class in the body but also all the 'images/logos' to their dark versions. I tried it, and it worked; there is no more flickering. However, there is still a problem: the icon of theme toggler itself is not changing on switching it. |
Hey @iArchitSharma let's discuss this in slack thread if you want, as this bug need to be fix as soon as possible. |
2916df2
to
13adf57
Compare
2d16a77
to
0410e22
Compare
Let's discuss this on website call tomorrow at 5:30 PM IST / 7 AM Central time. Please add this as an agenda item in the meeting minutes. |
_includes/home-page.html
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@coder12git no changes are done here,
will you please make sure to retain the original spacings and indentation here in _includes/home-page.html
?
_layouts/home.html
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we changing this layout ?
@coder12git @iArchitSharma Good that you've tried to split the code into components and then accordingly putting them in the over-all flow. Currentmeshery.io/_includes/header.html Line 55 in 6afdd37
After the change:
|
@vishalvivekm , so should we revert our pr and only change that one file or the current one is fine? |
I remember, on websites call y'day @iArchitSharma saying he'll be PRing the changes he has done locally |
Signed-off-by: Archit Sharma <archit8679@gmail.com>
0350bf6
to
305428e
Compare
@vishalvivekm, done. I hope everything is fine now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @coder12git @iArchitSharma 🚀
LGTM. // @sudhanshutech
Thanks for your contribution to the Layer5 and Meshery community! 🎉
|
Description
This PR fixes #1451
Notes for Reviewers
Signed commits