-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fix: Button Replace remaining 40px default size violations [Block Editor 4] #65257
Changes from all commits
80c4868
c95264c
e07939a
d676df4
7f74f1b
c82b451
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 |
---|---|---|
|
@@ -15,8 +15,7 @@ function PatternCategoriesList( { | |
{ patternCategories.map( ( { name, label } ) => { | ||
return ( | ||
<Button | ||
// TODO: Switch to `true` (40px size) if possible | ||
__next40pxDefaultSize={ false } | ||
__next40pxDefaultSize | ||
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. |
||
key={ name } | ||
label={ label } | ||
className={ `${ baseClassName }__categories-list__item` } | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,8 +61,7 @@ function BlockPatternsTab( { | |
{ children } | ||
</CategoryTabs> | ||
<Button | ||
// TODO: Switch to `true` (40px size) if possible | ||
__next40pxDefaultSize={ false } | ||
__next40pxDefaultSize | ||
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="block-editor-inserter__patterns-explore-button" | ||
onClick={ () => setShowPatternsExplorer( true ) } | ||
variant="secondary" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,8 +100,7 @@ function InsertExternalImageModal( { onClose, onSubmit } ) { | |
> | ||
<FlexItem> | ||
<Button | ||
// TODO: Switch to `true` (40px size) if possible | ||
__next40pxDefaultSize={ false } | ||
__next40pxDefaultSize | ||
variant="tertiary" | ||
onClick={ onClose } | ||
> | ||
|
@@ -110,8 +109,7 @@ function InsertExternalImageModal( { onClose, onSubmit } ) { | |
</FlexItem> | ||
<FlexItem> | ||
<Button | ||
// TODO: Switch to `true` (40px size) if possible | ||
__next40pxDefaultSize={ false } | ||
__next40pxDefaultSize | ||
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" | ||
onClick={ onSubmit } | ||
> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,8 +71,7 @@ function MediaTab( { | |
allowedTypes={ ALLOWED_MEDIA_TYPES } | ||
render={ ( { open } ) => ( | ||
<Button | ||
// TODO: Switch to `true` (40px size) if possible | ||
__next40pxDefaultSize={ false } | ||
__next40pxDefaultSize | ||
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. |
||
onClick={ ( event ) => { | ||
// Safari doesn't emit a focus event on button elements when | ||
// clicked and we need to manually focus the button here. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,8 +138,7 @@ export default function QuickInserter( { | |
|
||
{ setInserterIsOpened && ( | ||
<Button | ||
// TODO: Switch to `true` (40px size) if possible | ||
__next40pxDefaultSize={ false } | ||
__next40pxDefaultSize | ||
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="block-editor-inserter__quick-inserter-expand" | ||
onClick={ onBrowseAll } | ||
aria-label={ __( | ||
|
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.
The custom style height: auto is causing it to be
90px
, so__next40pxDefaultSize
has no effect in this case. I have not changed the styles as it was looking good. Let me know if anything needs to be changed.