Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blockbase: style variation opt-out not always working #8636

Open
pkevan opened this issue Jan 28, 2025 · 6 comments · May be fixed by #8638
Open

Blockbase: style variation opt-out not always working #8636

pkevan opened this issue Jan 28, 2025 · 6 comments · May be fixed by #8638

Comments

@pkevan
Copy link
Contributor

pkevan commented Jan 28, 2025

Quick summary

When running the Gutenberg plugin within a site, the functionality to opt-out of style variations from a parent theme no longer functions as expected.

This is due to the WP_REST_Global_Styles_Controller now being WP_REST_Global_Styles_Controller_Gutenberg and therefore https://github.com/Automattic/themes/blob/trunk/blockbase/inc/rest-api.php#L25 is not longer triggered.

Steps to reproduce

Themes which use optOutOfParentStyleVariations should not show parent theme style variations.

Possible to reproduce on Simple sites, and presumably Atomic but could not test this easily.

Site owner impact

More than 60% of the total website/platform users

Severity

Major

What other impact(s) does this issue have?

No response

If a workaround is available, please outline it here.

No response

Platform (Simple and/or Atomic)

Simple, Atomic

@merkushin
Copy link
Member

Triage result:
I confirm, in a child theme (Marl), it tries to remove "Ruby Wine" palette, but it is still there.

Tested on a Simple site.

Assigning to @pkevan as he's already working on it.

@pkevan
Copy link
Contributor Author

pkevan commented Jan 29, 2025

Triage result: I confirm, in a child theme (Marl), it tries to remove "Ruby Wine" palette, but it is still there.

Tested on a Simple site.

Assigning to @pkevan as he's already working on it.

This is something different - haven't dived into that specific functionality as yet but can't see how that option is used.

@merkushin
Copy link
Member

Ah, I see, I need to retest it with Kingsley and/or Jackson theme.
I'll do it shortly.

@merkushin
Copy link
Member

@pkevan

This is something different - haven't dived into that specific functionality as yet but can't see how that option is used.

Do we need a separate issue for that?

@merkushin
Copy link
Member

Confirmed: for jackson, it uses "optOutOfParentStyleVariations": true, but has all the variations from Blockbase on a Simple site.

Image

@pkevan
Copy link
Contributor Author

pkevan commented Jan 30, 2025

@pkevan

This is something different - haven't dived into that specific functionality as yet but can't see how that option is used.

Do we need a separate issue for that?

Yes, probably best to, as it uses a different custom option to attempt to remove individual style variations.

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