-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Fix: Button: Replace remaining 40px default size violation [Edit Site 1] #65226
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
6fde025
615a116
8408756
50a56de
1d48ebb
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 |
|---|---|---|
|
|
@@ -107,8 +107,7 @@ function TemplateListItem( { | |
| } ) { | ||
| 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. |
||
| className={ className } | ||
| onClick={ onClick } | ||
| label={ description } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -136,8 +136,7 @@ function EditorCanvasContainer( { | |
| > | ||
| { shouldShowCloseButton && ( | ||
| <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-editor-canvas-container__close-button" | ||
| icon={ closeSmall } | ||
| label={ closeButtonLabel || __( 'Close' ) } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -258,8 +258,7 @@ export default function EditSiteEditor( { isPostsList = false } ) { | |
| whileTap="tap" | ||
| > | ||
| <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. |
||
| label={ __( 'Open Navigation' ) } | ||
| showTooltip | ||
| tooltipPosition="middle right" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,12 +9,7 @@ import { useCopyToClipboard } from '@wordpress/compose'; | |
| 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 }> | ||
|
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. |
||
| { children } | ||
| </Button> | ||
| ); | ||
|
|
||








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 go to
site editorand go to template, add new and select any template.Note: This would have no impact as it has some styles which are overriden.