Stabilize Typography Block Supports Keys for WP 6.7 #63001
Labels
[Feature] Design Tools
Tools that impact the appearance of blocks both to expand the number of tools and improve the experi
[Package] Block library
/packages/block-library
[Type] Iteration
Scoped iteration of an effort from a tracking issue or overview issue ideally for a major release.
Part of:
This issues tracks progress towards stabilizing the typography block support. Note that in order to provide backwards compatibility for block plugins out in the wild, fallback support for the existing
__experimental
prefixes should be provided.Stabilize the following typography block supports:
__experimentalFontFamily
→fontFamily
__experimentalTextDecoration
→textDecoration
__experimentalFontStyle
→fontStyle
__experimentalFontWeight
→fontWeight
__experimentalLetterSpacing
→letterSpacing
__experimentalTextTransform
→textTransform
__experimentalWritingMode
→writingMode
Tasks
lib/block-supports/typography.php
to use the non__experimental
prefix, falling back to the__experimental
prefix if available.__experimental
prefix, falling back to the__experimental
prefix if available.block.json
schema to support the non__experimental
prefix, with a note that it is only as of WP 6.7+block.json
files to use the non__experimental
prefixesblock.json
schema to remove the__experimental
prefix. Note that the code in WordPress should still support the__experimental
prefix, but at this stage, the experimental prefix will be treated as deprecated.In my opinion, in order to provide the widest possible support for block plugins, I think it could be valuable to provide fallback support for the
__experimental
in the long-term. In other words, when implementing the fallback ideas above, let's do so in a way that's easy to maintain.The text was updated successfully, but these errors were encountered: