Skip to content

Commit

Permalink
Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
George Hotelling committed Aug 3, 2020
1 parent 732d593 commit 0910f45
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/block-library/src/details/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ export default ( {
tagName="div"
className="block-library-details__pseudo-summary"
value={ attributes.summaryContent }
onChange={ ( summaryContent ) => setAttributes( { summaryContent } ) }
onChange={ ( summaryContent ) =>
setAttributes( { summaryContent } )
}
placeholder={ __( 'Write a summary…' ) }
aria-label={ __( 'Summary text' ) }
/>
Expand Down
5 changes: 4 additions & 1 deletion packages/block-library/src/details/save.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import { InnerBlocks, RichText } from '@wordpress/block-editor';
export default ( { attributes } ) => {
return (
<details open={ attributes.initialOpen }>
<RichText.Content tagName="summary" value={ attributes.summaryContent } />
<RichText.Content
tagName="summary"
value={ attributes.summaryContent }
/>
<InnerBlocks.Content />
</details>
);
Expand Down

0 comments on commit 0910f45

Please sign in to comment.