From a65c1bede219977f5b198d40302e2500274f8d76 Mon Sep 17 00:00:00 2001 From: Shail Mehta Date: Fri, 27 Dec 2024 13:53:51 +0530 Subject: [PATCH] Query Total: Add Border Support (#68323) * Query Total: Add Border Support * Query Total: Add Border Support Co-authored-by: shail-mehta Co-authored-by: ramonjd Co-authored-by: t-hamano --- packages/block-library/src/query-total/block.json | 9 ++++++++- packages/block-library/src/query-total/style.scss | 4 ++++ packages/block-library/src/style.scss | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 packages/block-library/src/query-total/style.scss diff --git a/packages/block-library/src/query-total/block.json b/packages/block-library/src/query-total/block.json index 02dbbbbb00f74..f6449fbd8ad4b 100644 --- a/packages/block-library/src/query-total/block.json +++ b/packages/block-library/src/query-total/block.json @@ -40,6 +40,13 @@ "__experimentalDefaultControls": { "fontSize": true } + }, + "__experimentalBorder": { + "radius": true, + "color": true, + "width": true, + "style": true } - } + }, + "style": "wp-block-query-total" } diff --git a/packages/block-library/src/query-total/style.scss b/packages/block-library/src/query-total/style.scss new file mode 100644 index 0000000000000..c6a2bc131cfaf --- /dev/null +++ b/packages/block-library/src/query-total/style.scss @@ -0,0 +1,4 @@ +.wp-block-query-total { + // This block has customizable padding, border-box makes that more predictable. + box-sizing: border-box; +} diff --git a/packages/block-library/src/style.scss b/packages/block-library/src/style.scss index a8819c2084dc2..663626caaac87 100644 --- a/packages/block-library/src/style.scss +++ b/packages/block-library/src/style.scss @@ -50,6 +50,7 @@ @import "./post-template/style.scss"; @import "./query-pagination/style.scss"; @import "./query-title/style.scss"; +@import "./query-total/style.scss"; @import "./quote/style.scss"; @import "./read-more/style.scss"; @import "./rss/style.scss";