Skip to content

Font Family: make it work like any other block support with presets #31489

@oandregal

Description

@oandregal

The block supports mechanism works by attaching classes (when the property has preset values such as colors or font-sizes) or inline styles (when it doesn't such as line-height or when the user selects custom values for colors or font-sizes).

The link color was an exception to this model because it addresses the inner markup of a block. We experimented with using CSS Custom Properties for that one but that approach had some issues and we're now exploring an alternative at #31488

The font family also uses CSS Custom Properties but there's no reason it shouldn't work like the rest of the block supports with presets. We should make it work like the rest in preparation for stabilizing it #31416 (comment)

Metadata

Metadata

Assignees

Labels

CSS StylingRelated to editor and front end styles, CSS-specific issues.[Status] In ProgressTracking issues with work in progress

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions