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

Add/create theme variation to site editor interface #532

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

pbking
Copy link
Contributor

@pbking pbking commented Mar 22, 2024

Fixes #529

Adds ability to create a theme variation from the site editor interface:

image

To Test:

Make changes to Global Styles using the Global Styles interface. (Do not persist those changes to your theme).

Save a theme variation using the new interface.

Ensure that the name given the variation (using the form above it) is reflected in the JSON.
Ensure that the styles changed are present in the JSON.
Ensure that the style variation is available to the user in the Global Styles panel.

Should not be merged until #522 lands

@pbking pbking force-pushed the add/create-theme-variation branch from 1a52998 to 788efdb Compare March 27, 2024 14:03
@pbking pbking requested a review from madhusudhand March 28, 2024 10:43
Copy link
Member

@mikachan mikachan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes are working well for me following the test instructions 🎉 The code also looks good. Looks like we need to resolve some conflicts with the new child theme endpoint PR before we can bring this in.

@madhusudhand madhusudhand force-pushed the add/create-theme-variation branch from 788efdb to 36fe5ce Compare April 3, 2024 11:18
Copy link
Member

@madhusudhand madhusudhand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved conflicts.
Changes LGTM!

@madhusudhand madhusudhand merged commit 294dd70 into trunk Apr 3, 2024
2 checks passed
@madhusudhand madhusudhand deleted the add/create-theme-variation branch April 3, 2024 12: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.

Create Theme Variation from Site Editor
3 participants