-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Fix: Button: Replace remaining 40px default size violation [Edit Site 3] #65309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
a9b6c3f
744b937
752d3a2
2cc7851
b9ab536
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -150,8 +150,7 @@ export default function SavePanel() { | |
| } ) } | ||
| > | ||
| <Button | ||
| // TODO: Switch to `true` (40px size) if possible | ||
| __next40pxDefaultSize={ false } | ||
| __next40pxDefaultSize | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| variant="secondary" | ||
| className="edit-site-editor__toggle-save-panel-button" | ||
| onClick={ () => setIsSaveViewOpened( true ) } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| { ...props } | ||
| className={ clsx( 'edit-site-sidebar-button', props.className ) } | ||
| /> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -88,8 +88,7 @@ function AddNewItemModalContent( { type, setIsAdding } ) { | |
| /> | ||
| <HStack justify="right"> | ||
| <Button | ||
| // TODO: Switch to `true` (40px size) if possible | ||
| __next40pxDefaultSize={ false } | ||
| __next40pxDefaultSize | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| variant="tertiary" | ||
| onClick={ () => { | ||
| setIsAdding( false ); | ||
|
|
@@ -99,8 +98,7 @@ function AddNewItemModalContent( { type, setIsAdding } ) { | |
| </Button> | ||
|
|
||
| <Button | ||
| // TODO: Switch to `true` (40px size) if possible | ||
| __next40pxDefaultSize={ false } | ||
| __next40pxDefaultSize | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| variant="primary" | ||
| type="submit" | ||
| aria-disabled={ ! title || isSaving } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -62,8 +62,7 @@ const SiteHub = memo( | |
| ) } | ||
| > | ||
| <Button | ||
| // TODO: Switch to `true` (40px size) if possible | ||
| __next40pxDefaultSize={ false } | ||
| __next40pxDefaultSize | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| ref={ ref } | ||
| href={ dashboardLink } | ||
| label={ __( 'Go to the Dashboard' ) } | ||
|
|
@@ -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 | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| variant="link" | ||
| href={ homeUrl } | ||
| target="_blank" | ||
|
|
@@ -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 | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| className="edit-site-site-hub_toggle-command-center" | ||
| icon={ search } | ||
| onClick={ () => openCommandCenter() } | ||
|
|
@@ -149,8 +146,7 @@ export const SiteHubMobile = memo( | |
| ) } | ||
| > | ||
| <Button | ||
| // TODO: Switch to `true` (40px size) if possible | ||
| __next40pxDefaultSize={ false } | ||
| __next40pxDefaultSize | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| ref={ ref } | ||
| label={ __( 'Go to Site Editor' ) } | ||
| className="edit-site-layout__view-mode-toggle" | ||
|
|
@@ -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 | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| variant="link" | ||
| href={ homeUrl } | ||
| target="_blank" | ||
|
|
@@ -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 | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| className="edit-site-site-hub_toggle-command-center" | ||
| icon={ search } | ||
| onClick={ () => openCommandCenter() } | ||
|
|
||


















There was a problem hiding this comment.
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.