diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index 6f36d9931fad22..d799c59bee5b0d 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -244,7 +244,7 @@ A block that displays a summary and shows or hides additional content. ([Source] ## Details Content -The content inside the details is hidden until the details are expanded. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/details-content)) +Add content that may be shown or hidden via a Details block. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/details-content)) - **Name:** core/details-content - **Category:** text @@ -253,7 +253,7 @@ The content inside the details is hidden until the details are expanded. ([Sourc ## Details Summary -Clicking on the summary will show or hide the content inside the details. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/details-summary)) +Provide summary text used to toggle the display of content inside a Details block. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/details-summary)) - **Name:** core/details-summary - **Category:** text diff --git a/packages/block-library/src/details-content/block.json b/packages/block-library/src/details-content/block.json index c630a3de503b1f..4a990cb37d4533 100644 --- a/packages/block-library/src/details-content/block.json +++ b/packages/block-library/src/details-content/block.json @@ -6,7 +6,7 @@ "title": "Details Content", "category": "text", "parent": [ "core/details" ], - "description": "The content inside the details is hidden until the details are expanded.", + "description": "Add content that may be shown or hidden via a Details block.", "textdomain": "default", "supports": { "align": false, diff --git a/packages/block-library/src/details-summary/block.json b/packages/block-library/src/details-summary/block.json index afffcb06929a6a..314873e4536679 100644 --- a/packages/block-library/src/details-summary/block.json +++ b/packages/block-library/src/details-summary/block.json @@ -6,7 +6,7 @@ "title": "Details Summary", "category": "text", "parent": [ "core/details" ], - "description": "Clicking on the summary will show or hide the content inside the details.", + "description": "Provide summary text used to toggle the display of content inside a Details block.", "textdomain": "default", "attributes": { "summary": { diff --git a/packages/block-library/src/details/style.scss b/packages/block-library/src/details/style.scss new file mode 100644 index 00000000000000..59bf9c8b730054 --- /dev/null +++ b/packages/block-library/src/details/style.scss @@ -0,0 +1,3 @@ +.wp-block-details { + overflow: hidden; +} diff --git a/packages/block-library/src/style.scss b/packages/block-library/src/style.scss index 5c5c10c2673f8d..b4b2a4942a3077 100644 --- a/packages/block-library/src/style.scss +++ b/packages/block-library/src/style.scss @@ -11,6 +11,7 @@ @import "./comments-pagination/style.scss"; @import "./comment-template/style.scss"; @import "./cover/style.scss"; +@import "./details/style.scss"; @import "./details-summary/style.scss"; @import "./embed/style.scss"; @import "./file/style.scss";