Skip to content

Commit

Permalink
Added support for additional Block Supports to CODE block
Browse files Browse the repository at this point in the history
Added support for "padding" controls and styling of CODE block.

Added support for "border" styling of CODE block (including color,
style, width, radius.

Added color support to code block
  • Loading branch information
pbking committed Oct 25, 2021
1 parent a95ca3e commit 01513a2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/block-library/src/code/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,20 @@
"__experimentalSelector": ".wp-block-code > code",
"typography": {
"fontSize": true
},
"spacing": {
"padding": true
},
"__experimentalBorder": {
"radius": true,
"color": true,
"width": true,
"style": true
},
"color": {
"text": true,
"background": true,
"gradients": true
}
},
"style": "wp-block-code"
Expand Down

0 comments on commit 01513a2

Please sign in to comment.