Skip to content

Commit

Permalink
Inserter: Fix gap between Search and Tabs (#35537)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored Oct 12, 2021
1 parent 3bc31a2 commit dff3407
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/block-editor/src/components/inserter/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,11 @@ $block-inserter-tabs-height: 44px;
.block-editor-inserter__tabs {
display: flex;
flex-direction: column;
margin-top: -$grid-unit-10;

.components-tab-panel__tabs {
position: sticky;
// Computed based off the search input height and paddings
top: $grid-unit-10 + $grid-unit-20 + $grid-unit-60;
top: $grid-unit-20 + $grid-unit-60;
background: $white;
z-index: z-index(".block-editor-inserter__tabs .components-tab-panel__tabs");
border-bottom: $border-width solid $gray-300;
Expand Down

0 comments on commit dff3407

Please sign in to comment.