Make WordPress Core

Opened 4 weeks ago

Last modified 4 weeks ago

#65869 new enhancement

Editor: Add text-shadow block support and theme.json presets

Reported by: wildworks Owned by:
Priority: normal Milestone: 7.2
Component: General Version:
Severity: normal Keywords: gutenberg-merge has-patch has-unit-tests
Cc: Focuses:

Description

Follow-up to #65370

This ticket is for managing the backport of Gutenberg PR #79584, which adds the typography.textShadow block support along with the textShadow, textShadowPresets, and defaultTextShadowPresets settings under settings.typography in theme.json.

Change History (1)

This ticket was mentioned in PR #13035 on WordPress/wordpress-develop by @wildworks.


4 weeks ago
#1

  • Keywords has-patch has-unit-tests added

Backports the server-side portion of Gutenberg PR #79584, which adds full text-shadow support to the typography block supports and theme.json.

Blocks can now opt in via supports.typography.textShadow, and themes can define presets under settings.typography.textShadowPresets (with textShadow and defaultTextShadowPresets to control the UI and default presets). Unlike shadow support, preset values are serialized as a class name (has-{slug}-text-shadow) rather than an inline style, so the Style Engine definition registers both css_vars and classnames.

Notes:

  • The Style Engine had no textShadow entry at all, so the whole definition is added here rather than only the css_vars/classnames keys.
  • @since tags use 7.2.0 to match the current trunk version.
  • The block.json changes for Paragraph and Heading are not included, since those are synced from the Gutenberg package.

## Use of AI Tools

AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5
Used for: Porting the Gutenberg changes to their Core equivalents. The original Gutenberg implementation and this backport were both reviewed and edited by me.

Note: See TracTickets for help on using tickets.