From ec938873cfebd7e3aa3d1f01d48afdf2ce00114d Mon Sep 17 00:00:00 2001 From: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com> Date: Wed, 17 Aug 2022 19:05:47 +1000 Subject: [PATCH] List Item: Adopt typography supports --- docs/reference-guides/core-blocks.md | 2 +- packages/block-library/src/list-item/block.json | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index e5e60e22d0c96..1415f2b854fd0 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -347,7 +347,7 @@ Create a list item. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/ - **Name:** core/list-item - **Category:** text -- **Supports:** ~~className~~ +- **Supports:** typography (fontSize, lineHeight), ~~className~~ - **Attributes:** content, placeholder ## Login/out diff --git a/packages/block-library/src/list-item/block.json b/packages/block-library/src/list-item/block.json index 674cf381aa99c..745d6e30b4dd6 100644 --- a/packages/block-library/src/list-item/block.json +++ b/packages/block-library/src/list-item/block.json @@ -21,6 +21,19 @@ }, "supports": { "className": false, - "__experimentalSelector": "li" + "__experimentalSelector": "li", + "typography": { + "fontSize": true, + "lineHeight": true, + "__experimentalFontFamily": true, + "__experimentalFontWeight": true, + "__experimentalFontStyle": true, + "__experimentalTextTransform": true, + "__experimentalTextDecoration": true, + "__experimentalLetterSpacing": true, + "__experimentalDefaultControls": { + "fontSize": true + } + } } }