From ec0cb89295875e9625314f22cf16f2b94bdd3a43 Mon Sep 17 00:00:00 2001 From: Jorge Costa Date: Wed, 4 Sep 2024 15:35:18 +0100 Subject: [PATCH 1/2] Add: Typography styling support to the navigation submenu block. --- .../block-library/src/navigation-submenu/block.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/block-library/src/navigation-submenu/block.json b/packages/block-library/src/navigation-submenu/block.json index 0bcf8a1a47f38..e767b60aec3a6 100644 --- a/packages/block-library/src/navigation-submenu/block.json +++ b/packages/block-library/src/navigation-submenu/block.json @@ -59,6 +59,19 @@ "supports": { "reusable": false, "html": false, + "typography": { + "fontSize": true, + "lineHeight": true, + "__experimentalFontFamily": true, + "__experimentalFontWeight": true, + "__experimentalFontStyle": true, + "__experimentalTextTransform": true, + "__experimentalTextDecoration": true, + "__experimentalLetterSpacing": true, + "__experimentalDefaultControls": { + "fontSize": true + } + }, "interactivity": { "clientNavigation": true } From 42bd8c1ce3d53b4d1d1b8c95608e27b2437b603e Mon Sep 17 00:00:00 2001 From: Jorge Costa Date: Tue, 10 Sep 2024 10:59:16 +0100 Subject: [PATCH 2/2] update docs --- docs/reference-guides/core-blocks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index b9cae44550181..0e0de9d4f8a50 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -493,7 +493,7 @@ Add a submenu to your navigation. ([Source](https://github.com/WordPress/gutenbe - **Name:** core/navigation-submenu - **Category:** design - **Parent:** core/navigation -- **Supports:** interactivity (clientNavigation), ~~html~~, ~~reusable~~ +- **Supports:** interactivity (clientNavigation), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ - **Attributes:** description, id, isTopLevelItem, kind, label, opensInNewTab, rel, title, type, url ## Page Break