Skip to content

Fix transition animation flicker through ColourSchemeButton#251

Open
zoharma wants to merge 1 commit into
mainfrom
zma/fix-ColourSchemeButton-mode-flash
Open

Fix transition animation flicker through ColourSchemeButton#251
zoharma wants to merge 1 commit into
mainfrom
zma/fix-ColourSchemeButton-mode-flash

Conversation

@zoharma

@zoharma zoharma commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Switching between light and dark mode caused a noticeable flicker as components transitioned before the new colour scheme had fully applied. This happened in internal components such as Chips and external ones such as Material React Table.

This fix adds a temporary ds-mode-changing class during colour scheme changes to suppress CSS transitions and animations until the new theme has been applied, reducing flicker during mode switching.

The CSS and the class were added to the ColourSchemeButton directly.

@zoharma zoharma changed the title Fix transition animation through ColourSchemeButton Fix transition animation flicker through ColourSchemeButton Jul 3, 2026
@zoharma zoharma marked this pull request as ready for review July 3, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant