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

WordPress 6.3 backport: Add box shadow support to blocks #4696

Closed

Conversation

ramonjd
Copy link
Member

@ramonjd ramonjd commented Jun 26, 2023

This PR is a continuation of #4664 but adds tests

props to @madhusudhand

It adds the PHP changes for the following Gutenberg PRs:

WordPress/gutenberg#46896

There are no front-end changes in this PR.

Testing instructions:

Enable supports for blocks such as post-title

src/wp-includes/blocks/post-title/block.json

{
...
"supports": {
  "shadow": true,
  ...
}

In the theme template add shadow attribute as follows.

<!-- wp:post-title {"shadow":"natural"} /-->

Verify the post title UI to have the applied shadow.

Trac ticket: https://core.trac.wordpress.org/ticket/58590


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

Copy link
Member

@mukeshpanchal27 mukeshpanchal27 left a comment

Choose a reason for hiding this comment

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

Thanks @ramonjd for the PR. This looks great so far. Only a bit of feedback below.

src/wp-includes/block-supports/shadow.php Outdated Show resolved Hide resolved
src/wp-includes/block-supports/shadow.php Outdated Show resolved Hide resolved
src/wp-includes/block-supports/shadow.php Outdated Show resolved Hide resolved
src/wp-includes/kses.php Show resolved Hide resolved
@ramonjd
Copy link
Member Author

ramonjd commented Jun 26, 2023

Thank you for the review @mukeshpanchal27 ! 🙇

@madhusudhand
Copy link
Member

madhusudhand commented Jun 26, 2023

Thank you for adding the tests! @ramonjd 🙇

@tellthemachines
Copy link
Contributor

Committed in r56046 / e55e9c2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

4 participants