Duotone filter updates lag when switching style variations in template parts.
The issue involves duotone filters not updating immediately when style variations are changed in the Site Editor, specifically affecting template parts like headers/footers. The problem is reproducible and testable, but requires understanding of style variations and template parts. The maintainer suggests it might be a duplicate, adding some uncertainty.
When switching style variations in the Site Editor, duotone filters applied to elements within template parts (e.g., the site logo inside the header/footer) do not update immediately. In the Twenty Twenty-Five theme, the “Midnight” style variation includes a duotone filter for the site logo. However, switching from the “Default” style variation to “Midnight” does not apply the duotone filter to the logo until the changes are saved and page is manually refreshed.
Expected behavior: The duotone filter defined in the style variation should apply to the site logo (within a template part like the header) as soon as the variation is switched.
Actual behavior: The filter only takes effect after refreshing the editor.
Additional Testing Notes: I created unique duotone filters (same slug, different base and contrast colors) in multiple style variations. Switching between style variations doesn’t update the duotone filter for the logo in the template part until the page is refreshed.
https://github.com/user-attachments/assets/aa1fe12f-f87e-4a97-9bd3-1c8f32663dae
WordPress version: 6.7.2 Gutenberg version: N/A Active theme: Twenty Twenty-Five Browsers tested: Chrome (latest) Device/OS: MAC OS 15.3.2
Claim this issue to let others know you're working on it. You'll earn 12 points when you complete it!