From 746f0f4560f1a5615ba5de47e9a742f65a65d1b6 Mon Sep 17 00:00:00 2001 From: James Koster Date: Mon, 19 Jun 2023 13:52:39 +0100 Subject: [PATCH 1/3] Update button, add radius --- .../src/components/sidebar-navigation-item/style.scss | 3 +++ .../components/sidebar-navigation-screen-templates/index.js | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/edit-site/src/components/sidebar-navigation-item/style.scss b/packages/edit-site/src/components/sidebar-navigation-item/style.scss index e9ec7ecf91909e..ce5b278daaebe2 100644 --- a/packages/edit-site/src/components/sidebar-navigation-item/style.scss +++ b/packages/edit-site/src/components/sidebar-navigation-item/style.scss @@ -4,6 +4,7 @@ padding: $grid-unit-10 6px $grid-unit-10 $grid-unit-20; border: none; min-height: $grid-unit-50; + border-radius: $radius-block-ui; &:hover, &:focus, @@ -22,6 +23,8 @@ &:is(a) { text-decoration: none; + display: flex; + align-items: center; &:focus { box-shadow: none; diff --git a/packages/edit-site/src/components/sidebar-navigation-screen-templates/index.js b/packages/edit-site/src/components/sidebar-navigation-screen-templates/index.js index 3da819b132c2c1..d0e0abb2f7d3fe 100644 --- a/packages/edit-site/src/components/sidebar-navigation-screen-templates/index.js +++ b/packages/edit-site/src/components/sidebar-navigation-screen-templates/index.js @@ -161,7 +161,6 @@ export default function SidebarNavigationScreenTemplates() { { config[ postType ].labels.reusableBlocks } From 6a6383cc6b2aca7f80706456ed7f1becc3da214a Mon Sep 17 00:00:00 2001 From: James Koster Date: Mon, 19 Jun 2023 13:54:36 +0100 Subject: [PATCH 2/3] Manage template parts --- .../src/components/sidebar-navigation-screen-templates/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/edit-site/src/components/sidebar-navigation-screen-templates/index.js b/packages/edit-site/src/components/sidebar-navigation-screen-templates/index.js index d0e0abb2f7d3fe..853eda5cc78ba9 100644 --- a/packages/edit-site/src/components/sidebar-navigation-screen-templates/index.js +++ b/packages/edit-site/src/components/sidebar-navigation-screen-templates/index.js @@ -40,7 +40,7 @@ const config = { title: __( 'Library' ), loading: __( 'Loading library' ), notFound: __( 'No patterns found' ), - manage: __( 'Manage all template parts' ), + manage: __( 'Manage template parts' ), reusableBlocks: __( 'Manage reusable blocks' ), description: __( 'Template Parts are small pieces of a layout that can be reused across multiple templates and always appear the same way. Common template parts include the site header, footer, or sidebar.' From 4ec391550b92bc34782aaecd57c460bef14f663e Mon Sep 17 00:00:00 2001 From: James Koster Date: Mon, 19 Jun 2023 14:16:27 +0100 Subject: [PATCH 3/3] Reinstate 'all' --- .../src/components/sidebar-navigation-screen-templates/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/edit-site/src/components/sidebar-navigation-screen-templates/index.js b/packages/edit-site/src/components/sidebar-navigation-screen-templates/index.js index 853eda5cc78ba9..d0e0abb2f7d3fe 100644 --- a/packages/edit-site/src/components/sidebar-navigation-screen-templates/index.js +++ b/packages/edit-site/src/components/sidebar-navigation-screen-templates/index.js @@ -40,7 +40,7 @@ const config = { title: __( 'Library' ), loading: __( 'Loading library' ), notFound: __( 'No patterns found' ), - manage: __( 'Manage template parts' ), + manage: __( 'Manage all template parts' ), reusableBlocks: __( 'Manage reusable blocks' ), description: __( 'Template Parts are small pieces of a layout that can be reused across multiple templates and always appear the same way. Common template parts include the site header, footer, or sidebar.'