Skip to content

Tracking: Typography Design Tools ConsistencyΒ #43242

@aaronrobertshaw

Description

@aaronrobertshaw

Overview

This issue details the current state of typography block support or design tool adoption across all blocks as well as tasks required to fill any gaps. Overall design tool consistency efforts are being tracked via the parent issue: #43241.

Known Issues

  • Typography styles applying to block placeholders
  • Any block conditionally displaying a <Warning> within the editor will have text-decoration styles forced upon it unless explicitly omitting the text decoration style before applying the styles its wrapper.
  • Experimental typography block support APIs should be stabilized
  • Once a set "default" configuration is clear for typography supports including what controls show by default, implement shorthand configuration e.g. "typography": true or "typography": "default"
  • The Navigation block applies classes direct to it's li items which will conflict with font size classes for the HomeLink block.
  • Text decoration control is not made available in Global Styles (this is due to past decision we shouldn't encourage such styling at a global level)

Legend

Value Description
βœ… πŸ‘€ Feature has been adopted and is visible by default control
βœ… Feature has been adopted but is an optional control
⚠ There is a bug or issue with this block support feature's adoption
❌ Feature has been explicitly opted out of
<PR#> Links to PR adopting the feature for this block
- Feature has not explicitly been adopted/omitted
πŸ›  Implemented via an ad hoc / bespoke control
🚧 Work is in progress towards adopting this feature (no PR yet)
🚫 Block support will not be adopted for this block
⏳ Adoption of block supports is pending block refactoring

Block Support Adoption

Note: Deprecated blocks have been omitted from this table. e.g. Comment Author Avatar, Post Comment & Text Columns.

Block Font Size Line Height Font Style Font Weight Text Transform Letter Spacing Font Family Text Decoration Writing Mode
Archives βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Audio 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫
Avatar 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫
Button βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Buttons βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Calendar βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… 🚫
Categories βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Code βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Column βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Columns βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Comment Author Name βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Comment Content βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Comment Date βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Comment Edit Link βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Comment Reply Link βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Comment Template βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Comments βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Comments Pagination βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Comments Pagination Next βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Comments Pagination Numbers βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Comments Pagination Previous βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Comments Title βœ… πŸ‘€ βœ… βœ… πŸ‘€ βœ… πŸ‘€ βœ… βœ… βœ… πŸ‘€ βœ…
Cover βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Details βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Embed 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫
File - - - - - - - -
Footnotes βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Gallery 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫
Group βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Heading βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Home Link - Navigation βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
HTML 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫
Image 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫
Latest Comments βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Latest Posts βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
List βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
List Item βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Login/logout βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Media & Text βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
More (Read More) - - - - - - - -
Navigation βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Navigation Link βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Navigation Submenu - - - - - - - -
Next Page (Page Break) - - - - - - - -
Page List βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Paragraph βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Post Author βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Post Author Biography βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Post Author Name βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Post Comments Count βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Post Comments Form βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… - -
Post Comments Link βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Post Content βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Post Date βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Post Excerpt βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Post Featured Image 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫
Post Navigation Link βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Post Template βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Post Terms βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Post Title βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Preformatted βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Pullquote βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Query 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫
Query No Results βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Query Pagination βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Query Pagination Next βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Query Pagination Numbers βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Query Pagination Previous βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Query Title βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Query Total βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Quote βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Read More βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
RSS #66991 #66991 #66991 #66991 #66991 #66991 #66991 #66991
Search βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Separator 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫
Shortcode 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫
Site Logo 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫
Site Tagline βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Site Title βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Social Link 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫
Social Links 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫
Spacer 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫
Table βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Table of Contents βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Tag Cloud 🚫 βœ… βœ… βœ… βœ… βœ… βœ… 🚫
Term Description βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Time To Read βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Verse βœ… πŸ‘€ βœ… βœ… βœ… βœ… βœ… βœ… βœ… βœ…
Video 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫 🚫

Merged PRs

The following list details all the PRs merged as part of this effort to increase typography support.

Click to expand list of merged PRs

PRs with pending questions, discussions, or concerns

...

Blocks where we're making a conscious decision to skip Typography support

Block Reason
Audio Application of typography styles would mess with the balance between the track progress, icons etc
Avatar Avatar's don't have a caption or textual elements to style
HTML While contents of this block might benefit from styling, the custom HTML only gets a wrapper block to apply typography styles to in the editor, which is also wrapped in an iframe sandbox. There are also no guarantees for the custom HTML to have a single wrapping element we could attempt to inject styles into either.
Post Feature Image There's no caption for the post feature image block so typography styles don't make sense here.
Separator Typography styles won't impact this block.
Site Logo Another image block with no caption and therefore no need for typography support
Social Link There's little that would apply from typography styles to this block. Line height might be the only one. Skipping typography support as that might be better handled via a height control/support. Height should also be uniform across children of the parent Social Links block.
Social Links Similar to above. Typography styles don't make a lot of sense on this block. Height would be better handled via a control dedicated to that.
Spacer There's no typography within the block. Height is controlled explicitly so even line-height wouldn't make sense

Captioned Blocks

There are several blocks which only have a caption as an inner textual element. While it is possible to adopt typography supports for these, there have been explorations towards implementing a Caption block that could be used as an inner block. Adopting typography supports now would likely mean needing to maintain their classes and styles or add extra deprecations should a Caption block land. Additionally, some captioned blocks add their own styles around captions that would override or conflict with those provided by the typography supports.

The current thinking is that we'll postpone any block support adoption here until after 6.1 as that will provide a window to revisit a dedicated Caption block, refactors, and explorations for more complicated blocks such as the Gallery block, which still might benefit from typography supports (so users have a single place to set all the caption styles for its inner images).

The captioned blocks to be revisited after 6.1 are;

  • Embed
  • Gallery
  • Image
  • Video

Planned Follow-ups

  • Prevent text-decoration block supports from affecting placeholder text.

Possible Follow-ups

Metadata

Metadata

Labels

Needs Dev NoteRequires a developer note for a major WordPress release cycle[Feature] Design ToolsTools that impact the appearance of blocks both to expand the number of tools and improve the experi[Type] Tracking IssueTactical breakdown of efforts across the codebase and/or tied to Overview issues.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions