diff --git a/packages/block-library/src/style.scss b/packages/block-library/src/style.scss index 790e09535f4b69..5e33980badd76c 100644 --- a/packages/block-library/src/style.scss +++ b/packages/block-library/src/style.scss @@ -52,6 +52,7 @@ @import "./spacer/style.scss"; @import "./tag-cloud/style.scss"; @import "./table/style.scss"; +@import "./table-of-contents/style.scss"; @import "./term-description/style.scss"; @import "./text-columns/style.scss"; @import "./verse/style.scss"; diff --git a/packages/block-library/src/table-of-contents/block.json b/packages/block-library/src/table-of-contents/block.json index 0c9c4bb4a2868d..451d245d867b07 100644 --- a/packages/block-library/src/table-of-contents/block.json +++ b/packages/block-library/src/table-of-contents/block.json @@ -48,7 +48,20 @@ }, "interactivity": { "clientNavigation": true + }, + "__experimentalBorder": { + "radius": true, + "color": true, + "width": true, + "style": true, + "__experimentalDefaultControls": { + "radius": true, + "color": true, + "width": true, + "style": true + } } }, - "example": {} + "example": {}, + "style": "wp-block-table-of-contents" } diff --git a/packages/block-library/src/table-of-contents/style.scss b/packages/block-library/src/table-of-contents/style.scss new file mode 100644 index 00000000000000..4a3fbb6108bee5 --- /dev/null +++ b/packages/block-library/src/table-of-contents/style.scss @@ -0,0 +1,4 @@ +:root :where(.wp-block-table-of-contents) { + // This block has customizable padding, border-box makes that more predictable. + box-sizing: border-box; +}