Skip to content

Commit

Permalink
Border support added to comments (WordPress#66354)
Browse files Browse the repository at this point in the history
* Border support added to comments

* css lint fix

Co-authored-by: rinkalpagdar <rinkalpagdar@git.wordpress.org>
  • Loading branch information
2 people authored and karthick-murugan committed Nov 13, 2024
1 parent 7031d6e commit a27bb89
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
24 changes: 21 additions & 3 deletions packages/block-library/src/comments/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
}
},
"supports": {
"align": [ "wide", "full" ],
"align": [
"wide",
"full"
],
"html": false,
"color": {
"gradients": true,
Expand Down Expand Up @@ -45,8 +48,23 @@
"__experimentalDefaultControls": {
"fontSize": true
}
},
"__experimentalBorder": {
"radius": true,
"color": true,
"width": true,
"style": true,
"__experimentalDefaultControls": {
"radius": true,
"color": true,
"width": true,
"style": true
}
}
},
"editorStyle": "wp-block-comments-editor",
"usesContext": [ "postId", "postType" ]
}
"usesContext": [
"postId",
"postType"
]
}
5 changes: 4 additions & 1 deletion packages/block-library/src/comments/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
}

/* end utility classes */

.navigation {
&::after {
content: "";
Expand Down Expand Up @@ -146,3 +145,7 @@
:where(.wp-block-post-comments input[type="submit"]) {
border: none;
}

.wp-block-comments {
box-sizing: border-box;
}

0 comments on commit a27bb89

Please sign in to comment.