Add supports.typography.alignment argument so that blocks can use AlignmentControl automatically. #38427
Labels
[Feature] Design Tools
Tools that impact the appearance of blocks both to expand the number of tools and improve the experi
Needs Technical Feedback
Needs testing from a developer perspective.
[Status] In Progress
Tracking issues with work in progress
[Type] Enhancement
A suggestion for improvement.
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.
The text was updated successfully, but these errors were encountered: