From 1dab1c0a96c98de98a553c5f0a7ab35a70d102dd Mon Sep 17 00:00:00 2001 From: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com> Date: Fri, 15 Mar 2024 17:41:55 +1000 Subject: [PATCH] List Item: Add color support --- docs/reference-guides/core-blocks.md | 2 +- packages/block-library/src/list-item/block.json | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index 93ab0a031800f0..66f8d64273e009 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -426,7 +426,7 @@ Create a list item. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/ - **Category:** text - **Parent:** core/list - **Allowed Blocks:** core/list -- **Supports:** interactivity (clientNavigation), spacing (margin, padding), splitting, typography (fontSize, lineHeight), ~~className~~ +- **Supports:** color (background, gradients, link, text), interactivity (clientNavigation), selectors (root), spacing (margin, padding), splitting, 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 92822c993589d3..e3c9b9b6c74377 100644 --- a/packages/block-library/src/list-item/block.json +++ b/packages/block-library/src/list-item/block.json @@ -21,8 +21,15 @@ }, "supports": { "className": false, - "__experimentalSelector": ".wp-block-list > li", "splitting": true, + "color": { + "gradients": true, + "link": true, + "__experimentalDefaultControls": { + "background": true, + "text": true + } + }, "spacing": { "margin": true, "padding": true, @@ -46,6 +53,9 @@ }, "interactivity": { "clientNavigation": true + }, + "selectors": { + "root": ".wp-block-list > li" } } }