Skip to content

Commit

Permalink
Comment Reply Link: Add border support (WordPress#64271)
Browse files Browse the repository at this point in the history
* Comment Reply Link: Add Border Support
* Hide Spacing & Border Support Default


Co-authored-by: shail-mehta <shailu25@git.wordpress.org>
Co-authored-by: ramonjd <ramonopoly@git.wordpress.org>
Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org>
Co-authored-by: richtabor <richtabor@git.wordpress.org>
  • Loading branch information
5 people committed Sep 4, 2024
1 parent 20f7dfd commit 633e298
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
15 changes: 13 additions & 2 deletions packages/block-library/src/comment-reply-link/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@
},
"spacing": {
"margin": true,
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"typography": {
"fontSize": true,
Expand All @@ -40,6 +44,13 @@
"fontSize": true
}
},
"__experimentalBorder": {
"radius": true,
"color": true,
"width": true,
"style": true
},
"html": false
}
},
"style": "wp-block-comment-reply-link"
}
4 changes: 4 additions & 0 deletions packages/block-library/src/comment-reply-link/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.wp-block-comment-reply-link {
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;
}
1 change: 1 addition & 0 deletions packages/block-library/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
@import "./comment-content/style.scss";
@import "./comment-author-name/style.scss";
@import "./comment-edit-link/style.scss";
@import "./comment-reply-link/style.scss";
@import "./cover/style.scss";
@import "./details/style.scss";
@import "./embed/style.scss";
Expand Down

0 comments on commit 633e298

Please sign in to comment.