Skip to content

Commit

Permalink
Post Template: Add Border and Spacing Support
Browse files Browse the repository at this point in the history
  • Loading branch information
shail-mehta committed Aug 12, 2024
1 parent 52171c9 commit 7f2b93c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/block-library/src/post-template/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
}
},
"spacing": {
"margin": true,
"padding": true,
"blockGap": {
"__experimentalDefault": "1.25em"
},
Expand All @@ -51,6 +53,18 @@
},
"interactivity": {
"clientNavigation": true
},
"__experimentalBorder": {
"radius": true,
"color": true,
"width": true,
"style": true,
"__experimentalDefaultControls": {
"radius": true,
"color": true,
"width": true,
"style": true
}
}
},
"style": "wp-block-post-template",
Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/post-template/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
padding-left: 0;
margin-left: 0;
list-style: none;
box-sizing: border-box;
}
}
1 change: 1 addition & 0 deletions packages/block-library/src/post-template/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
max-width: 100%;
list-style: none;
padding: 0;
box-sizing: border-box;

// These rules no longer apply but should be kept for backwards compatibility.
&.is-flex-container {
Expand Down

0 comments on commit 7f2b93c

Please sign in to comment.