Skip to content

Commit

Permalink
Add block support panel specific className (#35793)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Oct 20, 2021
1 parent 752d775 commit 4b02914
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -10,7 +10,7 @@ import { useDispatch, useSelect } from '@wordpress/data';
import { store as blockEditorStore } from '../../store';
import { cleanEmptyObject } from '../../hooks/utils';

export default function BlockSupportToolsPanel( { children, label } ) {
export default function BlockSupportToolsPanel( { children, group, label } ) {
const { clientId, attributes } = useSelect( ( select ) => {
const { getBlockAttributes, getSelectedBlockClientId } = select(
blockEditorStore
Expand Down Expand Up @@ -46,6 +46,7 @@ export default function BlockSupportToolsPanel( { children, label } ) {

return (
<ToolsPanel
className={ `${ group }-block-support-panel` }
label={ label }
resetAll={ resetAll }
key={ clientId }
Expand Down

0 comments on commit 4b02914

Please sign in to comment.