Skip to content

Add supports.typography.alignment argument so that blocks can use AlignmentControl automatically. #38427

@jhned

Description

@jhned

What problem does this address?

It's difficult to add the AlignmentControl component to a block. To filter it in on a block that doesn't support it, it's not a simple matter of filtering the block settings, but rather of filtering the whole edit function. That seems heavy-handed.

What is your proposed solution?

Add an argument under the supports.typography object that accepts "alignment." If present, AlignmentControl is automatically added to the Block Toolbar.

Metadata

Metadata

Assignees

Labels

Needs Technical FeedbackNeeds testing from a developer perspective.[Feature] Design ToolsTools that impact the appearance of blocks both to expand the number of tools and improve the experi[Status] In ProgressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions