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

Move Heading block alignment settings from sidebar to block toolbar #6675

Merged
merged 1 commit into from
May 10, 2018
Merged

Move Heading block alignment settings from sidebar to block toolbar #6675

merged 1 commit into from
May 10, 2018

Conversation

nfmohit
Copy link
Member

@nfmohit nfmohit commented May 10, 2018

Description

This PR addresses #6673 which requests the alignment settings of the "Heading" block to be moved from the sidebar to the block toolbar.

How has this been tested?

This PR has been tested by adding a "Heading" block in Gutenberg editor and locating the alignment settings of the block in the block toolbar instead of the sidebar. This was tested in WP 4.9.5, Gutenberg 2.8.0, Apache server with PHP 7.2.0 and MySQL 5.6.34. According to initial tests, the code doesn’t seem to affect any other areas.

Screenshots

gutenberg_6673-min

Types of changes

This PR removes the AlignmentToolbar element from InspectorControls and nests it inside BlockControls. The heading level controls was wrapped with Toolbar for the nesting to work.

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.

@gziolo
Copy link
Member

gziolo commented May 10, 2018

This looks good and aligns nicely with the similar change to Subhead block 👍

Travis complains about PHP 5.2 targeted build, but everything looks good. Moving on regardless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Blocks Overall functionality of blocks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants