Skip to content

Commit

Permalink
Add __next40pxDefaultSize for edit-widgets files (#65367)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvang21 authored Sep 17, 2024
1 parent 3a2f74f commit 524516d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
7 changes: 1 addition & 6 deletions packages/edit-widgets/src/components/error-boundary/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@ import { doAction } from '@wordpress/hooks';
function CopyButton( { text, children } ) {
const ref = useCopyToClipboard( text );
return (
<Button
// TODO: Switch to `true` (40px size) if possible
__next40pxDefaultSize={ false }
variant="secondary"
ref={ ref }
>
<Button __next40pxDefaultSize variant="secondary" ref={ ref }>
{ children }
</Button>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ export default function InserterSidebar() {
>
<TagName className="edit-widgets-layout__inserter-panel-header">
<Button
// TODO: Switch to `true` (40px size) if possible
__next40pxDefaultSize={ false }
__next40pxDefaultSize
icon={ close }
onClick={ closeInserter }
label={ __( 'Close block inserter' ) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ export default function ListViewSidebar() {
<div className="edit-widgets-editor__list-view-panel-header">
<strong>{ __( 'List View' ) }</strong>
<Button
// TODO: Switch to `true` (40px size) if possible
__next40pxDefaultSize={ false }
__next40pxDefaultSize
icon={ closeSmall }
label={ __( 'Close' ) }
onClick={ closeListView }
Expand Down
3 changes: 1 addition & 2 deletions packages/edit-widgets/src/components/sidebar/widget-areas.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ export default function WidgetAreas( { selectedWidgetAreaId } ) {
) }
{ ! selectedWidgetArea && (
<Button
// TODO: Switch to `true` (40px size) if possible
__next40pxDefaultSize={ false }
__next40pxDefaultSize
href={ addQueryArgs( 'customize.php', {
'autofocus[panel]': 'widgets',
return: window.location.pathname,
Expand Down

0 comments on commit 524516d

Please sign in to comment.