Fix: Sidebar palette buttons not updating immediately on theme switch#5826
Fix: Sidebar palette buttons not updating immediately on theme switch#5826anshukaushik4700 wants to merge 1 commit intosugarlabs:masterfrom
Conversation
|
✅ All Jest tests passed! This PR is ready to merge. |
|
Hi @walterbender @omsuneri @vanshika2720 👋 |
|
Hello, @anshukaushik4700 I tested this and in my system the problem was not solved. Tested on Chrome. Screen.Recording.2026-02-20.151451.mp4 |
|
Hi @Commanderk3 , I’ve been working on updating the Music Blocks to respond to theme changes. Here’s what I’ve tried so far:
Current Issue: I’ve been working on this for the past oneday but haven’t been able to find a complete solution. Could you please provide some guidance on how to fix the block color update properly? Thank you so much for your help! |
Description
This PR fixes an issue where the sidebar palette UI did not immediately reflect the selected theme when switching between Light and Dark modes.
Previously:
This created visual inconsistency during theme switching
Root Cause
While platformColor was updated correctly during theme switching, the palette DOM elements were not explicitly refreshed. As a result, previously applied inline styles remained until a user interaction (e.g., hover) triggered a repaint.
Changes Made
Ensured palette UI updates instantly after theme switch.
Recording
themechange_issue_solved.mp4
Testing
closes #5825