Skip to content
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

css: Fix theme switch changing color of elements at different intervals. #30040

Merged
merged 1 commit into from May 13, 2024

Conversation

amanagr
Copy link
Member

@amanagr amanagr commented May 10, 2024

Due to these transitions the theme switch from dark <-> light was not pleasant as the background color and color changed at different intervals.

discussion: https://chat.zulip.org/#narrow/stream/9-issues/topic/theme.20transition

@@ -115,7 +115,6 @@ input::placeholder {
box-shadow: none;

cursor: pointer;
transition: all 0.2s ease;
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

So this is on a broad button element; do you know why we had this transition declared?

Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -111,7 +108,6 @@
/* Main geometry for this element is in zulip.css */
#compose-content {
background-color: hsl(232deg 30% 92%);
transition: background-color 200ms linear;
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

Do you know why we had this transition declared on the compose box? I was wondering if it's an open/close animation, or for preview, or something else?

Copy link
Member Author

Choose a reason for hiding this comment

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

Due to these transitions the theme switch from dark <-> light was
not pleasant as the background color and color changed at different
intervals.
@timabbott timabbott merged commit 80d19fe into zulip:main May 13, 2024
7 checks passed
@timabbott
Copy link
Sponsor Member

Merged, thanks @amanagr!

@amanagr amanagr deleted the fix_theme_switcher branch May 14, 2024 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants