From babcc422d1e6a8574aae131798cf2bbacc55a631 Mon Sep 17 00:00:00 2001 From: Andrew Serong <14988353+andrewserong@users.noreply.github.com> Date: Fri, 13 Jan 2023 13:24:45 +1100 Subject: [PATCH] Try adding sticky position support to the template part block --- docs/reference-guides/core-blocks.md | 2 +- packages/block-library/src/template-part/block.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index 71c0c1c8b957ff..3e257525a0c8f2 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -815,7 +815,7 @@ Edit the different global regions of your site, like the header, footer, sidebar - **Name:** core/template-part - **Category:** theme -- **Supports:** align, ~~html~~, ~~reusable~~ +- **Supports:** align, position (sticky), ~~html~~, ~~reusable~~ - **Attributes:** area, slug, tagName, theme ## Term Description diff --git a/packages/block-library/src/template-part/block.json b/packages/block-library/src/template-part/block.json index 3801eee941bc99..eedb51f036142b 100644 --- a/packages/block-library/src/template-part/block.json +++ b/packages/block-library/src/template-part/block.json @@ -23,6 +23,9 @@ "supports": { "align": true, "html": false, + "position": { + "sticky": true + }, "reusable": false }, "editorStyle": "wp-block-template-part-editor"