Skip to content

Commit

Permalink
Supply default padding values for CODE block
Browse files Browse the repository at this point in the history
As expressed by TT1's CODE block styles: https://github.com/WordPress/twentytwentyone/blob/trunk/assets/sass/05-blocks/code/_style.scss
The default padding value of the CODE block is now the default spacing
unit.

WordPress/gutenberg#27582 is necessary for this
enhancement to work.
  • Loading branch information
pbking committed Dec 8, 2020
1 parent 152aea1 commit 5b01c22
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions twentytwentyone-blocks/experimental-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,5 +289,17 @@
"lineHeight": "var(--wp--custom--line-height--body)"
}
}
},
"core/code": {
"styles": {
"spacing": {
"padding": {
"top": "var(--wp--custom--spacing--unit)",
"bottom": "var(--wp--custom--spacing--unit)",
"left": "var(--wp--custom--spacing--unit)",
"right": "var(--wp--custom--spacing--unit)"
}
}
}
}
}

0 comments on commit 5b01c22

Please sign in to comment.