Skip to content

Add text-shadow support to blocks via theme.json#63937

Open
madhusudhand wants to merge 1 commit intotrunkfrom
text-shadow/theme-json
Open

Add text-shadow support to blocks via theme.json#63937
madhusudhand wants to merge 1 commit intotrunkfrom
text-shadow/theme-json

Conversation

@madhusudhand
Copy link
Copy Markdown
Member

What?

This change allows to set text shadow to blocks via theme.json typography definition.

image image

Testing Instructions

  1. In theme.json under typography settings of any block, set the new property textShadow to a valid shadow value.
  2. Shadow should be applied and visible in both editor and site frontend.

Related Issues:

This is a first iteration of #47904

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jul 25, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: madhusudhand <madhudollu@git.wordpress.org>
Co-authored-by: carolinan <poena@git.wordpress.org>
Co-authored-by: mikachan <mikachan@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@madhusudhand madhusudhand added [Type] Enhancement A suggestion for improvement. [Feature] Typography Font and typography-related issues and PRs labels Jul 25, 2024
@carolinan
Copy link
Copy Markdown
Contributor

I think text-shadow needs to be added to safecss_filter_attr() ?

@mikachan
Copy link
Copy Markdown
Member

Thanks @carolinan, do you know if that would be added in this file?

@carolinan
Copy link
Copy Markdown
Contributor

Thanks @carolinan, do you know if that would be added in this file?

Oh I did not know that existed, I am not sure if it should go in there or in lib/compat/version

@madhusudhand madhusudhand force-pushed the text-shadow/theme-json branch from 0e71b2b to dbd4728 Compare March 7, 2025 12:57
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 7, 2025

Flaky tests detected in dbd4728.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/13721181607
📝 Reported issues:

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

Labels

[Feature] Typography Font and typography-related issues and PRs [Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants