Skip to content

Commit

Permalink
Block Hooks: Add help text to Plugins panel. (#59371)
Browse files Browse the repository at this point in the history
Add a help text to the Plugins panel to provide users with an explanation where the blocks listed in that panel are coming from.

Co-authored-by: ockham <[email protected]>
Co-authored-by: bph <[email protected]>
Co-authored-by: jameskoster <[email protected]>
Co-authored-by: annezazu <[email protected]>
  • Loading branch information
5 people authored Feb 26, 2024
1 parent a3ff3be commit 7b73a72
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/block-editor/src/hooks/block-hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,11 @@ function BlockHooksControlPure( { name, clientId } ) {
title={ __( 'Plugins' ) }
initialOpen={ true }
>
<p className="block-editor-hooks__block-hooks-helptext">
{ __(
'Manage the inclusion of blocks added automatically by plugins.'
) }
</p>
{ Object.keys( groupedHookedBlocks ).map( ( vendor ) => {
return (
<Fragment key={ vendor }>
Expand Down
6 changes: 6 additions & 0 deletions packages/block-editor/src/hooks/block-hooks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,10 @@
.components-toggle-control .components-h-stack .components-h-stack {
flex-direction: row;
}

.block-editor-hooks__block-hooks-helptext {
color: $gray-700;
font-size: $helptext-font-size;
margin-bottom: $grid-unit-20;
}
}

0 comments on commit 7b73a72

Please sign in to comment.