Skip to content

Commit

Permalink
tweak to stop accidental tabbing into block tools
Browse files Browse the repository at this point in the history
  • Loading branch information
draganescu committed Apr 4, 2023
1 parent 47e236d commit 0988ac3
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/edit-post/src/components/header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,8 @@ function Header( { setEntitiesSavedStatesCallback } ) {
) }
/>
</MaybeHide>
{ hasSelectedBlocks && (
<MaybeHide
isHidden={ headerToolbar === 'document' }
>
{ hasSelectedBlocks &&
headerToolbar === 'block' && (
<NavigableToolbar
className="edit-post-header-block-toolbar"
aria-label={ blockToolbarAriaLabel }
Expand All @@ -187,8 +185,7 @@ function Header( { setEntitiesSavedStatesCallback } ) {
hideDragHandle={ hasFixedToolbar }
/>
</NavigableToolbar>
</MaybeHide>
) }
) }
</>
) }
<TemplateTitle />
Expand Down

0 comments on commit 0988ac3

Please sign in to comment.