Core blocks: Block alignment and text alignment should use different and consistent attribute names #9614
Labels
[Feature] Blocks
Overall functionality of blocks
[Type] Code Quality
Issues or PRs that relate to code quality
[Type] Enhancement
A suggestion for improvement.
The issue
I have noticed that
supports: { align: true }
adds analign
attribute to a block. Notably, core blocks that have text alignment options tend to name the text alignment attributealign
. I think this is confusing, and it makes it difficult to update blocks to support block alignment later on. I think the name used for block alignment vs text alignment attributes should be made more consistent.Proposed solution
I think that block alignment attributes should remain as
align
, and I think text alignment attributes should be calledtextAlign
.Related issues and PRs
width
#7912The text was updated successfully, but these errors were encountered: