Skip to content

Commit

Permalink
Block Support: Update color panel default controls (#38511)
Browse files Browse the repository at this point in the history
* Update color support panel default controls
* Add link as default control to blocks featuring links heavily
  • Loading branch information
aaronrobertshaw committed Feb 8, 2022
1 parent 8675f86 commit eaa2e0a
Show file tree
Hide file tree
Showing 48 changed files with 221 additions and 65 deletions.
6 changes: 5 additions & 1 deletion packages/block-library/src/button/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@
"alignWide": false,
"color": {
"__experimentalSkipSerialization": true,
"gradients": true
"gradients": true,
"__experimentalDefaultControls": {
"background": true,
"text": true
}
},
"typography": {
"fontSize": true,
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/code/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@
"color": {
"text": true,
"background": true,
"gradients": true
"gradients": true,
"__experimentalDefaultControls": {
"background": true,
"text": true
}
}
},
"style": "wp-block-code"
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/column/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@
"html": false,
"color": {
"gradients": true,
"link": true
"link": true,
"__experimentalDefaultControls": {
"background": true,
"text": true
}
},
"spacing": {
"padding": true,
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/columns/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
"html": false,
"color": {
"gradients": true,
"link": true
"link": true,
"__experimentalDefaultControls": {
"background": true,
"text": true
}
},
"spacing": {
"blockGap": true,
Expand Down
5 changes: 4 additions & 1 deletion packages/block-library/src/comment-author-avatar/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
},
"color": {
"background": true,
"text": false
"text": false,
"__experimentalDefaultControls": {
"background": true
}
},
"spacing": {
"__experimentalSkipSerialization": true,
Expand Down
7 changes: 6 additions & 1 deletion packages/block-library/src/comment-author-name/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@
},
"color": {
"gradients": true,
"link": true
"link": true,
"__experimentalDefaultControls": {
"background": true,
"text": true,
"link": true
}
},
"typography": {
"fontSize": true,
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/comment-content/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
"supports": {
"color": {
"gradients": true,
"link": true
"link": true,
"__experimentalDefaultControls": {
"background": true,
"text": true
}
},
"typography": {
"fontSize": true,
Expand Down
7 changes: 6 additions & 1 deletion packages/block-library/src/comment-date/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@
"html": false,
"color": {
"gradients": true,
"link": true
"link": true,
"__experimentalDefaultControls": {
"background": true,
"text": true,
"link": true
}
},
"typography": {
"fontSize": true,
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/comment-edit-link/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
"color": {
"link": true,
"gradients": true,
"text": false
"text": false,
"__experimentalDefaultControls": {
"background": true,
"link": true
}
},
"typography": {
"fontSize": true,
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/comment-reply-link/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
"color": {
"gradients": true,
"link": true,
"text": false
"text": false,
"__experimentalDefaultControls": {
"background": true,
"link": true
}
},
"typography": {
"fontSize": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
"html": false,
"color": {
"gradients": true,
"text": false
"text": false,
"__experimentalDefaultControls": {
"background": true
}
},
"typography": {
"fontSize": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
"html": false,
"color": {
"gradients": true,
"text": false
"text": false,
"__experimentalDefaultControls": {
"background": true
}
},
"typography": {
"fontSize": true,
Expand Down
7 changes: 6 additions & 1 deletion packages/block-library/src/comments-pagination/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@
"html": false,
"color": {
"gradients": true,
"link": true
"link": true,
"__experimentalDefaultControls": {
"background": true,
"text": true,
"link": true
}
},
"__experimentalLayout": {
"allowSwitching": false,
Expand Down
7 changes: 6 additions & 1 deletion packages/block-library/src/comments-query-loop/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@
"html": false,
"color": {
"gradients": true,
"link": true
"link": true,
"__experimentalDefaultControls": {
"background": true,
"text": true,
"link": true
}
}
},
"editorStyle": "wp-block-comments-editor"
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/group/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
"html": false,
"color": {
"gradients": true,
"link": true
"link": true,
"__experimentalDefaultControls": {
"background": true,
"text": true
}
},
"spacing": {
"padding": true,
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/heading/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@
"anchor": true,
"className": false,
"color": {
"link": true
"link": true,
"__experimentalDefaultControls": {
"background": true,
"text": true
}
},
"spacing": {
"margin": true
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/list/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@
},
"color": {
"gradients": true,
"link": true
"link": true,
"__experimentalDefaultControls": {
"background": true,
"text": true
}
},
"__unstablePasteTextInline": true,
"__experimentalSelector": "ol,ul",
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/media-text/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,11 @@
"html": false,
"color": {
"gradients": true,
"link": true
"link": true,
"__experimentalDefaultControls": {
"background": true,
"text": true
}
}
},
"editorStyle": "wp-block-media-text-editor",
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/paragraph/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@
"anchor": true,
"className": false,
"color": {
"link": true
"link": true,
"__experimentalDefaultControls": {
"background": true,
"text": true
}
},
"typography": {
"fontSize": true,
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/post-author-biography/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@
},
"color": {
"gradients": true,
"link": true
"link": true,
"__experimentalDefaultControls": {
"background": true,
"text": true
}
},
"typography": {
"fontSize": true,
Expand Down
7 changes: 6 additions & 1 deletion packages/block-library/src/post-author-name/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@
},
"color": {
"gradients": true,
"link": true
"link": true,
"__experimentalDefaultControls": {
"background": true,
"text": true,
"link": true
}
},
"typography": {
"fontSize": true,
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/post-author/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@
"color": {
"gradients": true,
"link": true,
"__experimentalDuotone": ".wp-block-post-author__avatar img"
"__experimentalDuotone": ".wp-block-post-author__avatar img",
"__experimentalDefaultControls": {
"background": true,
"text": true
}
}
},
"editorStyle": "wp-block-post-author-editor",
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/post-comments-count/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
"supports": {
"html": false,
"color": {
"gradients": true
"gradients": true,
"__experimentalDefaultControls": {
"background": true,
"text": true
}
},
"typography": {
"fontSize": true,
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/post-comments-form/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
"html": false,
"color": {
"gradients": true,
"link": true
"link": true,
"__experimentalDefaultControls": {
"background": true,
"text": true
}
},
"typography": {
"fontSize": true,
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/post-comments-link/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
"html": false,
"color": {
"link": true,
"text": false
"text": false,
"__experimentalDefaultControls": {
"background": true,
"link": true
}
},
"typography": {
"fontSize": true,
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/post-comments/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@
},
"color": {
"gradients": true,
"link": true
"link": true,
"__experimentalDefaultControls": {
"background": true,
"text": true
}
}
},
"style": [
Expand Down
7 changes: 6 additions & 1 deletion packages/block-library/src/post-date/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@
"html": false,
"color": {
"gradients": true,
"link": true
"link": true,
"__experimentalDefaultControls": {
"background": true,
"text": true,
"link": true
}
},
"typography": {
"fontSize": true,
Expand Down
7 changes: 6 additions & 1 deletion packages/block-library/src/post-excerpt/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@
"html": false,
"color": {
"gradients": true,
"link": true
"link": true,
"__experimentalDefaultControls": {
"background": true,
"text": true,
"link": true
}
},
"spacing": {
"margin": true,
Expand Down
7 changes: 6 additions & 1 deletion packages/block-library/src/post-terms/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@
"html": false,
"color": {
"gradients": true,
"link": true
"link": true,
"__experimentalDefaultControls": {
"background": true,
"text": true,
"link": true
}
},
"typography": {
"lineHeight": true,
Expand Down
7 changes: 6 additions & 1 deletion packages/block-library/src/post-title/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@
"html": false,
"color": {
"gradients": true,
"link": true
"link": true,
"__experimentalDefaultControls": {
"background": true,
"text": true,
"link": true
}
},
"spacing": {
"margin": true
Expand Down

0 comments on commit eaa2e0a

Please sign in to comment.