Skip to content

Commit

Permalink
Update consumers
Browse files Browse the repository at this point in the history
  • Loading branch information
mirka committed Dec 26, 2024
1 parent b6e5376 commit 19c8b1f
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ exports[`AlignmentUI should match snapshot when controls are hidden 1`] = `
aria-expanded="false"
aria-haspopup="true"
aria-label="Align text"
class="components-button components-dropdown-menu__toggle has-icon"
class="components-button components-dropdown-menu__toggle is-compact has-icon"
data-toolbar-item="true"
type="button"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exports[`BlockAlignmentUI should match snapshot when controls are hidden 1`] = `
aria-expanded="false"
aria-haspopup="true"
aria-label="Align"
class="components-button components-dropdown-menu__toggle has-icon"
class="components-button components-dropdown-menu__toggle is-compact has-icon"
data-toolbar-item="true"
type="button"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function BlockSettingsMenu( { clientIds, ...props } ) {
{ ( toggleProps ) => (
<BlockSettingsDropdown
clientIds={ clientIds }
toggleProps={ toggleProps }
toggleProps={ { ...toggleProps, size: 'compact' } }
{ ...props }
/>
) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ export const BlockSwitcher = ( { clientIds } ) => {
}
text={ blockIndicatorText }
toggleProps={ {
size: 'compact',
description: blockSwitcherDescription,
...toggleProps,
} }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exports[`BlockVerticalAlignmentUI should match snapshot when controls are hidden
aria-expanded="false"
aria-haspopup="true"
aria-label="Change vertical alignment"
class="components-button components-dropdown-menu__toggle has-icon"
class="components-button components-dropdown-menu__toggle is-compact has-icon"
data-toolbar-item="true"
type="button"
>
Expand Down
1 change: 1 addition & 0 deletions packages/block-editor/src/components/warning/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function Warning( { className, actions, children, secondaryActions } ) {
className:
'block-editor-warning__dropdown',
} }
toggleProps={ { size: 'compact' } }
noIcons
>
{ () => (
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/toolbar/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Default.args = {
title: 'Align right',
},
] }
toggleProps={ toggleProps }
toggleProps={ { ...toggleProps, size: 'compact' } }
/>
) }
</ToolbarItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ function ToolbarDropdownMenu(
popoverProps={ {
...props.popoverProps,
} }
toggleProps={ toolbarItemProps }
toggleProps={ {
size: 'compact',
...toolbarItemProps,
} }
/>
) }
</ToolbarItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function ToolbarGroupCollapsed( {
controls={ controls }
toggleProps={ {
...internalToggleProps,
size: 'compact',
'data-toolbar-item': true,
} }
{ ...props }
Expand Down

0 comments on commit 19c8b1f

Please sign in to comment.