Skip to content

Commit

Permalink
Update help text
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Jan 8, 2025
1 parent 38c2acd commit 427f379
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/details/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function DetailsEdit( { attributes, setAttributes, clientId } ) {
setAttributes( { name: newName } )
}
help={ __(
'When using the name attribute to assign the same name to a group of detail elements, only one element in the set is opened at a time.'
'Enables multiple Details blocks with the same name attribute to be connected, with only one open at a time.'
) }
/>
</InspectorControls>
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/details/save.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ export default function save( { attributes } ) {
const blockProps = useBlockProps.save();

return (
<details { ...blockProps } name={ name || null } open={ showContent }>
<details
{ ...blockProps }
name={ name || undefined }
open={ showContent }
>
<summary>
<RichText.Content value={ summary } />
</summary>
Expand Down

0 comments on commit 427f379

Please sign in to comment.