Skip to content

Commit

Permalink
Page List: Added color support (WordPress#66430)
Browse files Browse the repository at this point in the history
* Added color support for page list block

* Doc Build

* Added text color support

* Doc Build

* Update packages/block-library/src/page-list/block.json

* adding default controls

Co-authored-by: benazeer-ben <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
Co-authored-by: shail-mehta <[email protected]>
  • Loading branch information
4 people authored Jan 6, 2025
1 parent 20fb847 commit 9713af9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference-guides/core-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ Display a list of all pages. ([Source](https://github.com/WordPress/gutenberg/tr
- **Name:** core/page-list
- **Category:** widgets
- **Allowed Blocks:** core/page-list-item
- **Supports:** interactivity (clientNavigation), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~
- **Supports:** color (background, gradients, link, text), interactivity (clientNavigation), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~
- **Attributes:** isNested, parentPageID

## Page List Item
Expand Down
11 changes: 11 additions & 0 deletions packages/block-library/src/page-list/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@
"interactivity": {
"clientNavigation": true
},
"color": {
"text": true,
"background": true,
"link": true,
"gradients": true,
"__experimentalDefaultControls": {
"background": true,
"text": true,
"link": true
}
},
"__experimentalBorder": {
"radius": true,
"color": true,
Expand Down

0 comments on commit 9713af9

Please sign in to comment.