Skip to content

Commit

Permalink
Restore patterns titles
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Apr 30, 2020
1 parent 1ff097a commit dc257d4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ function BlockPattern( { pattern, onClick } ) {
aria-label={ pattern.title }
>
<BlockPreview blocks={ blocks } />
<div className="block-editor-inserter__patterns-item-title">
{ pattern.title }
</div>
</div>
);
}
Expand Down
6 changes: 6 additions & 0 deletions packages/block-editor/src/components/inserter/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -266,3 +266,9 @@ $block-inserter-tabs-height: 44px;
min-height: 100px;
}
}

.block-editor-inserter__patterns-item-title {
padding: $grid-unit-5;
font-size: 12px;
text-align: center;
}

0 comments on commit dc257d4

Please sign in to comment.