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 <bernhard-reiter@git.wordpress.org>
Co-authored-by: bph <bph@git.wordpress.org>
Co-authored-by: jameskoster <jameskoster@git.wordpress.org>
Co-authored-by: annezazu <annezazu@git.wordpress.org>
  • Loading branch information
5 people authored and getdave committed Feb 27, 2024
1 parent a3ab0c7 commit 698ec96
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 698ec96

Please sign in to comment.