Skip to content
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

Feature: Add alignment toolbar #1571

Merged
merged 7 commits into from
Dec 7, 2024

Conversation

tomusborne
Copy link
Owner

closes #1463

alignment

This PR adds an alignment toolbar option.

For the Container block, it adds:

  1. Text align
  2. Block width (if supported by the theme)

For the Text block, it adds:

  1. Text align

For the Media block, it adds:

  1. Float

@tomusborne tomusborne added the feature Features, refactoring, enhancements, improvements label Dec 6, 2024
@tomusborne tomusborne added this to the 2.0.0 milestone Dec 6, 2024
@iansvo iansvo self-requested a review December 6, 2024 13:07
@@ -171,6 +172,17 @@ function EditBlock( props ) {
<>
<InspectorControls>
<StylesOnboarder />

{ 'img' === tagName && (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For future, I think this check may need to include picture elements once we get those dialed in. NCR for now.

@tomusborne
Copy link
Owner Author

I've removed the image float stuff for now. There were some issues in the editor when floating, and we need to figure out what happens when a user wants to float an image that exists inside of a <figure>.

@tomusborne tomusborne merged commit f0b7abb into release/2.0.0 Dec 7, 2024
9 checks passed
@tomusborne tomusborne deleted the feature/add-alignment-toolbar branch December 7, 2024 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Features, refactoring, enhancements, improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants