-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Categories block: use supports flag for block alignment + wide align support #13215
Categories block: use supports flag for block alignment + wide align support #13215
Conversation
Looking through the history, it may have been done this way as the original block blueprint described in #1790 did not consider a "wide" alignment option. I don't know that this was intentional, or merely overlooked. cc @melchoyce |
Either overlooked, or the initial mockups predated the |
@aduth @melchoyce Actually, looking at the initial mockup, it actually lacks the icon for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
Description
This PR changes the code for the Categories block to use the
align
supports
flag. It also adds support for thewide
alignment to the Categories block, which strangely was lacking support for it despite already supporting thefull
alignment.How has this been tested?
I opened a post with an existing Categories block and checked to make sure setting alignments worked and applied the right classes in the editor and front-end.
Types of changes
supports: { align: true }
to add block alignment support.wide
alignment. (The block already supported thefull
alignment.)Related PRs