Skip to content

Commit

Permalink
List Item: Add color support (#59892)
Browse files Browse the repository at this point in the history
Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org>
Co-authored-by: noisysocks <noisysocks@git.wordpress.org>
Co-authored-by: pitamdey <pitamdey@git.wordpress.org>
  • Loading branch information
4 people committed Jul 4, 2024
1 parent f020aec commit cde4f87
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), 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 @@ -47,5 +54,8 @@
"interactivity": {
"clientNavigation": true
}
},
"selectors": {
"root": ".wp-block-list > li"
}
}

1 comment on commit cde4f87

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in cde4f87.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9786769133
📝 Reported issues:

Please sign in to comment.