From dc257d4169e73467ee8a247d6e31fcf846bf5e8c Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Thu, 30 Apr 2020 11:51:05 +0100 Subject: [PATCH] Restore patterns titles --- .../block-editor/src/components/inserter/block-patterns.js | 3 +++ packages/block-editor/src/components/inserter/style.scss | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/packages/block-editor/src/components/inserter/block-patterns.js b/packages/block-editor/src/components/inserter/block-patterns.js index 11e059eefb9059..e06ab517486080 100644 --- a/packages/block-editor/src/components/inserter/block-patterns.js +++ b/packages/block-editor/src/components/inserter/block-patterns.js @@ -39,6 +39,9 @@ function BlockPattern( { pattern, onClick } ) { aria-label={ pattern.title } > +
+ { pattern.title } +
); } diff --git a/packages/block-editor/src/components/inserter/style.scss b/packages/block-editor/src/components/inserter/style.scss index 0a0d2097ece10e..f42976351875be 100644 --- a/packages/block-editor/src/components/inserter/style.scss +++ b/packages/block-editor/src/components/inserter/style.scss @@ -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; +}