Skip to content

Commit

Permalink
Duotone Control: Adjust padding and clean up styles in dropdown compo…
Browse files Browse the repository at this point in the history
…nents
  • Loading branch information
yogeshbhutkar committed Jan 14, 2025
1 parent da59474 commit ddef175
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ $popover-padding: $grid-unit-20;

$swatch-columns: math.floor(math.div($popover-width + $swatch-gap - 2 * $popover-padding, $swatch-size + $swatch-gap));

.block-editor-duotone-control__popover {
.block-editor-duotone-control__popover.components-dropdown__content {
> .components-popover__content {
padding: $popover-padding;
padding: $grid-unit-10;
width: $popover-width;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,7 @@ export default function FiltersPanel( {
);
} }
renderContent={ () => (
<DropdownContentWrapper
paddingSize="small"
className="components-dropdown-content-wrapper__duotone-content"
>
<DropdownContentWrapper paddingSize="small">
<MenuGroup label={ __( 'Duotone' ) }>
<p>
{ __(
Expand Down
4 changes: 0 additions & 4 deletions packages/components/src/dropdown/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
.components-popover__content {
padding: $grid-unit-10;

.components-dropdown-content-wrapper__duotone-content {
margin: 0;
}

&:has(.components-menu-group) {
padding: 0;

Expand Down

0 comments on commit ddef175

Please sign in to comment.