-
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
Enable alignments/width for all blocks by default #28349
Conversation
Size Change: +56 B (0%) Total Size: 1.29 MB
ℹ️ View Unchanged
|
Cool work. I'm not seeing any controls though? I'm looking at the paragraph and was hoping to see some alignment controls in the sidebar. |
Oh I forgot to mention the paragraph block :) That one is special because it already has an "align" attribute so I can't just go ahead and and activate the hook there. We need one of these: 1- Rename the current "align" attribute of the paragraph to "textAlign" and enable the align hook I'd personally prefer 4 followed by 1 but both of these solutions have backward compatibility implications. |
Ah, thanks for the clarification. Agreed, option 4 looks good. I see the align dropdown on the other blocks: I don't think we can add more to the block toolbar to these blocks, they are already pretty heavy. I think the approach we need to take is to:
Here are some mockups from #27331 which incorporate the alignment into the sidebar: |
Wrote a plan for this in #25973 I'm closing this for now. |
Related discussion #25973
We have right now some arbitrary decisions about which blocks do or do not support alignments. This PR tries to address this by:
This is just a POC for now just to get a sense of what really needs to be done and figure out the backward compatibility story.