Skip to content

Commit

Permalink
Use __experimentalExposeControlsToChildren in block supports
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Aug 16, 2021
1 parent 120d8a3 commit 42e8030
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function useBlockControlsFill( group, exposeToChildren ) {
exposeToChildren &&
hasBlockSupport(
getBlockName( clientId ),
'__experimentalCaptureToolbars',
'__experimentalExposeControlsToChildren',
false
) &&
hasSelectedInnerBlock( clientId )
Expand Down
2 changes: 1 addition & 1 deletion packages/block-editor/src/components/inner-blocks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export function useInnerBlocksProps( props = {}, options = {} ) {
blocksStore
).hasBlockSupport(
blockName,
'__experimentalCaptureToolbars',
'__experimentalExposeControlsToChildren',
false
),
hasOverlay:
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/buttons/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"supports": {
"anchor": true,
"align": [ "wide", "full" ],
"__experimentalCaptureToolbars": true
"__experimentalExposeControlsToChildren": true
},
"editorStyle": "wp-block-buttons-editor",
"style": "wp-block-buttons"
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/social-links/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"supports": {
"align": [ "left", "center", "right" ],
"anchor": true,
"__experimentalCaptureToolbars": true
"__experimentalExposeControlsToChildren": true
},
"styles": [
{ "name": "default", "label": "Default", "isDefault": true },
Expand Down

0 comments on commit 42e8030

Please sign in to comment.