Skip to content

Commit

Permalink
List Item: Add color support
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Jun 19, 2024
1 parent e056b9d commit 1dab1c0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/reference-guides/core-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 11 additions & 1 deletion packages/block-library/src/list-item/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -46,6 +53,9 @@
},
"interactivity": {
"clientNavigation": true
},
"selectors": {
"root": ".wp-block-list > li"
}
}
}

0 comments on commit 1dab1c0

Please sign in to comment.