Skip to content

Commit

Permalink
Try moving level tooltips above buttons instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZebulanStanphill committed Jul 4, 2020
1 parent e2dddd9 commit c3ff2fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/block-library/src/heading/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@
}

.block-library-heading__heading-level-dropdown__help {
margin: $grid-unit-20;
margin-left: $grid-unit-20;
margin-right: $grid-unit-20;

// Override default paragraph margin to optically balance spacing between it
// and the toolbar above.
margin-top: 0;
}

.block-library-heading__heading-level-warning {
Expand Down
3 changes: 3 additions & 0 deletions packages/block-library/src/heading/heading-level-dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ export default function HeadingLevelDropdown( {
__( 'Heading %d' ),
targetLevel
),
// Move tooltips above buttons so they don't overlap
// the help text below.
tooltipPosition: 'top',
isActive,
onClick() {
onChange( targetLevel );
Expand Down

0 comments on commit c3ff2fc

Please sign in to comment.