Skip to content

Commit

Permalink
Query: Remove color block supports (#46147)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Dec 13, 2022
1 parent 436666d commit 0dd1da5
Show file tree
Hide file tree
Showing 8 changed files with 577 additions and 97 deletions.
4 changes: 2 additions & 2 deletions docs/reference-guides/core-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ Contains the block elements used to render a post, like the title, date, feature

- **Name:** core/post-template
- **Category:** theme
- **Supports:** align, typography (fontSize, lineHeight), ~~html~~, ~~reusable~~
- **Supports:** align, color (background, gradients, link, text), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~
- **Attributes:**

## Post Terms
Expand Down Expand Up @@ -617,7 +617,7 @@ An advanced block that allows displaying post types based on different query par

- **Name:** core/query
- **Category:** theme
- **Supports:** align (full, wide), color (background, gradients, link, text), ~~html~~
- **Supports:** align (full, wide), ~~html~~
- **Attributes:** displayLayout, namespace, query, queryId, tagName

## No results
Expand Down
8 changes: 8 additions & 0 deletions packages/block-library/src/post-template/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@
"__experimentalLayout": {
"allowEditing": false
},
"color": {
"gradients": true,
"link": true,
"__experimentalDefaultControls": {
"background": true,
"text": true
}
},
"typography": {
"fontSize": true,
"lineHeight": true,
Expand Down
8 changes: 0 additions & 8 deletions packages/block-library/src/query/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,6 @@
"supports": {
"align": [ "wide", "full" ],
"html": false,
"color": {
"gradients": true,
"link": true,
"__experimentalDefaultControls": {
"background": true,
"text": true
}
},
"__experimentalLayout": true
},
"editorStyle": "wp-block-query-editor"
Expand Down
Loading

0 comments on commit 0dd1da5

Please sign in to comment.