Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Disable CSS transitions when changing theme#1659

Open
n1ckoates wants to merge 1 commit intomodrinth:masterfrom
n1ckoates:master
Open

Disable CSS transitions when changing theme#1659
n1ckoates wants to merge 1 commit intomodrinth:masterfrom
n1ckoates:master

Conversation

@n1ckoates
Copy link
Contributor

This pull request disables CSS transitions when changing the theme, by temporarily adding a <style> tag to <head> that overrides transitions. This prevents an "unsynced" theme transition, where different elements change their colors in different ways, which looks weird for the end user.

This is best shown on /settings, where the background of dropdowns and the thumb of switch toggles transition slower than the page background.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant