-
Notifications
You must be signed in to change notification settings - Fork 189
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
Theme fix #2219
Theme fix #2219
Conversation
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.
I think this works well, but a few things I notice:
- When we toggle the theme, the entire side-bar animates again. I think the transition is applying to too many elements. This isn't new, but I just noticed it:
- When you are in dark mode, close the window, and re-open, it starts out in light mode and transitions to dark vs. beginning with dark.
@DukeManh don't need to use transition while switching between light/dark (+it's laggy already everytime we switch, adding transitions will make it even worse), I recommend you to remove those transition lines you added. which also causes some weird black/white color fading. |
@huynguyez details? |
@huynguyez Interesting, I think adding transition makes it feel less laggy. |
@humphd, I just updated. Can you test it again. |
@DukeManh the theme seems it cannot be changed immediately but need to refresh everytime |
@huynguyez I forgot to stage changes. It should be ok now. |
It seems to still start out in light mode unfortunately. |
@PedroFonsecaDEV I see. I filed #2222 and #2223 to investigate the issues which exist before my PR. And this PR will do 2 things only:
@humphd , @huynguyez |
@DukeManh the default theme fix is good, but whtat is which post/where can I test it? I saw some posts with nested |
@huynguyez the error doesn't always appear. It's a quick fix so I didn't mind taking screenshots. People have this problem too mui/material-ui#19827 |
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.
LGTM.
@tonyvugithub can you take a quick look at this, since you wrote so much of the theme code? |
Issue This PR Addresses
Type of Change
Description
I wanted to steal how Telescope does dark theme and noticed some changes can be made.
This PR does the following:
<li> cannot appear as a descendant of <li>
errorChecklist