Skip to content

Commit

Permalink
fix background clipping and update description
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinan committed Mar 13, 2023
1 parent 492ad92 commit 90f5249
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/reference-guides/core-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/details-content/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/details-summary/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
3 changes: 3 additions & 0 deletions packages/block-library/src/details/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.wp-block-details {
overflow: hidden;
}
1 change: 1 addition & 0 deletions packages/block-library/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 90f5249

Please sign in to comment.