From 90f5249dedf4f0891eb90111729e25361c8b65c2 Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Mon, 13 Mar 2023 08:29:28 +0100 Subject: [PATCH] fix background clipping and update description --- docs/reference-guides/core-blocks.md | 4 ++-- packages/block-library/src/details-content/block.json | 2 +- packages/block-library/src/details-summary/block.json | 2 +- packages/block-library/src/details/style.scss | 3 +++ packages/block-library/src/style.scss | 1 + 5 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 packages/block-library/src/details/style.scss diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index 6f36d9931fad2..d799c59bee5b0 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 c630a3de503b1..4a990cb37d453 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 afffcb06929a6..314873e453667 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 0000000000000..59bf9c8b73005 --- /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 5c5c10c2673f8..b4b2a4942a307 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";