Alignment: paragraph and text columns block alignment attribute name is width
#7912
Labels
[Feature] Blocks
Overall functionality of blocks
[Type] Code Quality
Issues or PRs that relate to code quality
Moved from #4010 h/t @bradyvercher.
Paragraph Block
The attribute name for the block-level alignment is
width
, which doesn't seem to make much sense. Naming this something likeblockAlign
would be a little more clear, especially since thewidth
attribute is a number in some other blocks.Or the inline alignment attribute could be named
textAlign
since that's the property used when applying the inline style.See
gutenberg/core-blocks/paragraph/index.js
Lines 477 to 481 in 6edaf68
Text Columns
Uses the
width
attribute for alignment.See
gutenberg/core-blocks/text-columns/index.js
Lines 57 to 61 in 9d4fd10
The text was updated successfully, but these errors were encountered: