Skip to main content
GoodFirstPicks
DashboardIssuesReposLeaderboard

GoodFirstPicks by Leaveitblank © 2026

CreatorRequest a RepoPrivacy PolicyTerms of Service
Duotone Filter Not Updating on Style Variation Change in Site Editor for Template Part | GoodFirstPicks

Duotone Filter Not Updating on Style Variation Change in Site Editor for Template Part

WordPress/gutenberg 11 comments 11d ago
View on GitHub
lowopenScope: somewhat clearSkill match: maybeTest focusedWordPressJavaScriptReact

Why this is a good first issue

Duotone filter updates lag when switching style variations in template parts.

AI Summary

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.

Issue Description

Description

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.

Step-by-step reproduction instructions

  1. Activate the Twenty Twenty-Five theme.
  2. Open the Site Editor (Appearance > Editor).
  3. Add the site logo in the the header.
  4. Open the Styles panel.
  5. Switch from the “Default” style variation to the “Midnight” variation.
  6. Observe that the duotone filter is not applied to the site logo.
  7. Save the changes or refresh the page — the duotone filter is then applied as expected.

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.

Screenshots, screen recording, code snippet

https://github.com/user-attachments/assets/aa1fe12f-f87e-4a97-9bd3-1c8f32663dae

Image

Environment info

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

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • [

GitHub Labels

[Type] BugGood First IssueGlobal Styles

Want to work on this?

Claim this issue to let others know you're working on it. You'll earn 12 points when you complete it!

Risk Flags

  • style variation switching
  • duotone filter updates
Loading labels...

Details

Points12 pts
Difficultylow
Scopesomewhat clear
Skill Matchmaybe
Test Focusedyes