Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/edit-site/src/components/page-patterns/fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ function TitleField( { item } ) {
title
) : (
<Button
// TODO: Switch to `true` (40px size) if possible
__next40pxDefaultSize={ false }
__next40pxDefaultSize
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be seen when you visit, site-editor --> check for patterns and the pattern title.

Note: It has a link variant, so there is an override style present, so before and after is same.

Before After
page-patterns-before page-patterns-after

variant="link"
onClick={ onClick }
// Required for the grid's roving tab index system.
Expand Down
3 changes: 1 addition & 2 deletions packages/edit-site/src/components/save-panel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@ export default function SavePanel() {
} ) }
>
<Button
// TODO: Switch to `true` (40px size) if possible
__next40pxDefaultSize={ false }
__next40pxDefaultSize
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be seen, when you open the save panel. It has style for screen-reader-text, hence need to remove that style to see the visual change.

Before After
open-save-panel-before Open-save-panel-after

variant="secondary"
className="edit-site-editor__toggle-save-panel-button"
onClick={ () => setIsSaveViewOpened( true ) }
Expand Down
3 changes: 1 addition & 2 deletions packages/edit-site/src/components/sidebar-button/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import { Button } from '@wordpress/components';
export default function SidebarButton( props ) {
return (
<Button
// TODO: Switch to `true` (40px size) if possible
__next40pxDefaultSize={ false }
__next40pxDefaultSize
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be seen when you visit, site-editor --> and check for icon button in sidebar panel.

Before After
Editor-sidebar-button-before Editor-sidebar-button-after

{ ...props }
className={ clsx( 'edit-site-sidebar-button', props.className ) }
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ function AddNewItemModalContent( { type, setIsAdding } ) {
/>
<HStack justify="right">
<Button
// TODO: Switch to `true` (40px size) if possible
__next40pxDefaultSize={ false }
__next40pxDefaultSize
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be seen when you add a custom data view and click on add new.

Before After
View-before view-after

variant="tertiary"
onClick={ () => {
setIsAdding( false );
Expand All @@ -99,8 +98,7 @@ function AddNewItemModalContent( { type, setIsAdding } ) {
</Button>

<Button
// TODO: Switch to `true` (40px size) if possible
__next40pxDefaultSize={ false }
__next40pxDefaultSize
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be seen when you add a custom data view and click on add new.

Before After
View-before view-after

variant="primary"
type="submit"
aria-disabled={ ! title || isSaving }
Expand Down
18 changes: 6 additions & 12 deletions packages/edit-site/src/components/site-hub/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ const SiteHub = memo(
) }
>
<Button
// TODO: Switch to `true` (40px size) if possible
__next40pxDefaultSize={ false }
__next40pxDefaultSize
Copy link
Contributor Author

@hbhalodia hbhalodia Sep 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be seen when you visit and check for go back button on the top left corner in site editor mode.

Note: It has fixed height, so changing this does not change before and after images.

Before After
site-hub-dashboard-before site-hub-dashboard-after

ref={ ref }
href={ dashboardLink }
label={ __( 'Go to the Dashboard' ) }
Expand All @@ -80,8 +79,7 @@ const SiteHub = memo(
<HStack>
<div className="edit-site-site-hub__title">
<Button
// TODO: Switch to `true` (40px size) if possible
__next40pxDefaultSize={ false }
__next40pxDefaultSize
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be seen when you visit and check for site title in site editor mode.

Note: It has link variant, hence 40px size does not affect the button.

Before After
site-hub-title-link-before site-hub-title-link-after

variant="link"
href={ homeUrl }
target="_blank"
Expand All @@ -101,8 +99,7 @@ const SiteHub = memo(
className="edit-site-site-hub__actions"
>
<Button
// TODO: Switch to `true` (40px size) if possible
__next40pxDefaultSize={ false }
__next40pxDefaultSize
Copy link
Contributor Author

@hbhalodia hbhalodia Sep 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be seen when you visit and check for search icon on the site editor mode.

Before After
site-hub-command-before site-hub-command-after

className="edit-site-site-hub_toggle-command-center"
icon={ search }
onClick={ () => openCommandCenter() }
Expand Down Expand Up @@ -149,8 +146,7 @@ export const SiteHubMobile = memo(
) }
>
<Button
// TODO: Switch to `true` (40px size) if possible
__next40pxDefaultSize={ false }
__next40pxDefaultSize
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be seen when you visit and check for go to back button on top left corver in site editor mode for mobile mode.

Note: It has fixed height, so changing this does not change before and after images.

Before After
site-hub-mobile-editor-before site-hub-mobile-editor-after

ref={ ref }
label={ __( 'Go to Site Editor' ) }
className="edit-site-layout__view-mode-toggle"
Expand All @@ -170,8 +166,7 @@ export const SiteHubMobile = memo(
<HStack>
<div className="edit-site-site-hub__title">
<Button
// TODO: Switch to `true` (40px size) if possible
__next40pxDefaultSize={ false }
__next40pxDefaultSize
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be seen when you visit and check for site title in site editor mode for mobile.

Note: It has link variant, hence 40px size does not affect the button.

Before After
site-hub-mobile-title-before site-hub-mobile-title-after

variant="link"
href={ homeUrl }
target="_blank"
Expand All @@ -186,8 +181,7 @@ export const SiteHubMobile = memo(
className="edit-site-site-hub__actions"
>
<Button
// TODO: Switch to `true` (40px size) if possible
__next40pxDefaultSize={ false }
__next40pxDefaultSize
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be seen when you visit and check for search icon on the site editor mode on mobile.

Before After
site-hub-mobile-command-before site-hub-mobile-command-after

className="edit-site-site-hub_toggle-command-center"
icon={ search }
onClick={ () => openCommandCenter() }
Expand Down