Skip to content

Commit

Permalink
[Block Library - Site Title]: Normalize the toolbar (#30999)
Browse files Browse the repository at this point in the history
* Normalize the toolbar
* change order of controls
  • Loading branch information
ntsekouras authored Apr 20, 2021
1 parent a88a3b5 commit 1420935
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions packages/block-library/src/site-title/edit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,19 @@ export default function SiteTitleEdit( {
} );
return (
<>
<BlockControls>
<AlignmentToolbar
value={ textAlign }
onChange={ ( nextAlign ) => {
setAttributes( { textAlign: nextAlign } );
} }
/>

<BlockControls group="block">
<LevelToolbar
level={ level }
onChange={ ( newLevel ) =>
setAttributes( { level: newLevel } )
}
/>
<AlignmentToolbar
value={ textAlign }
onChange={ ( nextAlign ) => {
setAttributes( { textAlign: nextAlign } );
} }
/>
</BlockControls>
<TagName { ...blockProps }>
<RichText
Expand Down

0 comments on commit 1420935

Please sign in to comment.