Skip to content

Commit

Permalink
Use the first-party group label in the block bindings dropdown menu
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Aug 28, 2024
1 parent 64f597c commit 10ab118
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
9 changes: 2 additions & 7 deletions packages/block-editor/src/hooks/block-bindings.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,9 @@ function BlockBindingsPanelDropdown( { fieldsList, attribute, binding } ) {
<Fragment key={ name }>
<DropdownMenuV2.Group>
{ Object.keys( fieldsList ).length > 1 && (
<Text
className="block-editor-bindings__source-label"
upperCase
variant="muted"
aria-hidden
>
<DropdownMenuV2.GroupLabel>
{ registeredSources[ name ].label }
</Text>
</DropdownMenuV2.GroupLabel>
) }
{ Object.entries( fields ).map( ( [ key, value ] ) => (
<DropdownMenuV2.RadioItem
Expand Down
8 changes: 0 additions & 8 deletions packages/block-editor/src/hooks/block-bindings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,3 @@ div.block-editor-bindings__panel {
color: inherit;
}
}

.block-editor-bindings__popover {
// This won't be needed if `DropdownMenuGroup` component handles the label.
.block-editor-bindings__source-label {
grid-column: 2;
margin: $grid-unit-10 0;
}
}

0 comments on commit 10ab118

Please sign in to comment.