Shadow: add shadow presets support via theme.json#46813
Merged
Conversation
update shadow values fetch the updated core theme.json file update class name of json ressolver
33b5693 to
203d956
Compare
oandregal
approved these changes
Dec 29, 2022
Member
oandregal
left a comment
There was a problem hiding this comment.
Thanks for splitting the work in smaller steps!
I've tested a variety of scenarios: defining the presets in the theme.json of the theme instead of using the theme.json bundled by Gutenberg, using the shadow in a block. I've also tested that style variations work the same as the main theme.json of the theme (needed to merge #46810 into this one). This is ready to ship.
This was referenced Jan 5, 2023
38 tasks
This was referenced Jan 25, 2023
pento
pushed a commit
to WordPress/wordpress-develop
that referenced
this pull request
Feb 1, 2023
Adds shadow presets support for `theme.json` within the `WP_Theme_JSON` by * Adding it to presets metadata and valid settings. * Defining the default shadow presets in Core's `theme.json`. Includes PHPUnit tests. References: * [WordPress/gutenberg#46813 Gutenberg PR 46813] * [WordPress/gutenberg#47272 Gutenberg PR 47272] Follow-up to [54162], [52049], [50973]. Props madhudollu, mamaduka, oandregal, scruffian, hellofromTonya. Fixes #57559. git-svn-id: https://develop.svn.wordpress.org/trunk@55176 602fd350-edb4-49c9-b593-d223f7449a82
markjaquith
pushed a commit
to markjaquith/WordPress
that referenced
this pull request
Feb 1, 2023
Adds shadow presets support for `theme.json` within the `WP_Theme_JSON` by * Adding it to presets metadata and valid settings. * Defining the default shadow presets in Core's `theme.json`. Includes PHPUnit tests. References: * [WordPress/gutenberg#46813 Gutenberg PR 46813] * [WordPress/gutenberg#47272 Gutenberg PR 47272] Follow-up to [54162], [52049], [50973]. Props madhudollu, mamaduka, oandregal, scruffian, hellofromTonya. Fixes #57559. Built from https://develop.svn.wordpress.org/trunk@55176 git-svn-id: http://core.svn.wordpress.org/trunk@54709 1a063a9b-81f0-0310-95a4-ce76da25c4cd
github-actions bot
pushed a commit
to platformsh/wordpress-performance
that referenced
this pull request
Feb 1, 2023
Adds shadow presets support for `theme.json` within the `WP_Theme_JSON` by * Adding it to presets metadata and valid settings. * Defining the default shadow presets in Core's `theme.json`. Includes PHPUnit tests. References: * [WordPress/gutenberg#46813 Gutenberg PR 46813] * [WordPress/gutenberg#47272 Gutenberg PR 47272] Follow-up to [54162], [52049], [50973]. Props madhudollu, mamaduka, oandregal, scruffian, hellofromTonya. Fixes #57559. Built from https://develop.svn.wordpress.org/trunk@55176 git-svn-id: https://core.svn.wordpress.org/trunk@54709 1a063a9b-81f0-0310-95a4-ce76da25c4cd
VenusPR
pushed a commit
to VenusPR/Wordpress_Richard
that referenced
this pull request
Mar 9, 2023
Adds shadow presets support for `theme.json` within the `WP_Theme_JSON` by * Adding it to presets metadata and valid settings. * Defining the default shadow presets in Core's `theme.json`. Includes PHPUnit tests. References: * [WordPress/gutenberg#46813 Gutenberg PR 46813] * [WordPress/gutenberg#47272 Gutenberg PR 47272] Follow-up to [54162], [52049], [50973]. Props madhudollu, mamaduka, oandregal, scruffian, hellofromTonya. Fixes #57559. Built from https://develop.svn.wordpress.org/trunk@55176 git-svn-id: http://core.svn.wordpress.org/trunk@54709 1a063a9b-81f0-0310-95a4-ce76da25c4cd
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
This adds support for default and theme shadow presets via theme.json
It ads following default presets to Gutenberg bundled theme.json
Testing Instructions
--wp--preset--shadow--naturaland--wp--preset--shadow--sharpin global style sheet.This is a PR to add support via theme.json.
Verify end to end feature including UI in global styles from here #46502
Related issues
Partial Fix for #44651