Repository navigation
Button: Add __next40pxDefaultSize in dataviews, reusable-blocks, etc. - #65715
Conversation
| label={ __( 'Close' ) } | ||
| icon={ closeSmall } | ||
| onClick={ onClose } | ||
| size="small" |
| margin-bottom: $grid-unit-20; | ||
| } | ||
|
|
||
| [class].dataforms-layouts-panel__dropdown-header-action { |
There was a problem hiding this comment.
Removing this CSS because nothing else is using this class.
| size="compact" | ||
| className="list-reusable-blocks-import-dropdown__button" |
| // Todo: Make core button height and gutenberg button height equal. | ||
| .components-button { | ||
| height: 26px; | ||
| } |
There was a problem hiding this comment.
Moved to a custom class name in packages/list-reusable-blocks/src/components/import-dropdown/style.scss.
| padding: 10px; | ||
| } | ||
|
|
||
| [class].list-reusable-blocks-import-dropdown__button { |
There was a problem hiding this comment.
[class] selector added for more specificity.
There was a problem hiding this comment.
It's a bummer this is necessary, but it makes sense since the other button is outside our control.
| <Button | ||
| // TODO: Switch to `true` (40px size) if possible | ||
| __next40pxDefaultSize={ false } | ||
| __next40pxDefaultSize |
There was a problem hiding this comment.
There was a problem hiding this comment.
Mmm, it's a tough call! I agree the compact size looks much more harmonious in the current state, but also I believe the wp-admin pages are going to slowly migrate to the React componentry eventually. In that case, we will be adding tech debt by setting an explicit "compact" here, as that doesn't adhere to the design system guidelines. I think I slightly prefer the path of least resistance (i.e. default size), since everything is kinda wonky anyway? 😅
There was a problem hiding this comment.
You have a point about adding tech debt if we pick a different size.
I wish we could fix both the top buttons right here and right now, but it's a bigger can of worms.
|
|
||
| .list-reusable-blocks-import-form__button { | ||
| margin-top: 10px; | ||
| margin-bottom: 10px; |
There was a problem hiding this comment.
Removed unnecessary margin bottom.
| <Button | ||
| // TODO: Switch to `true` (40px size) if possible | ||
| __next40pxDefaultSize={ false } | ||
| __next40pxDefaultSize |
| <Button | ||
| // TODO: Switch to `true` (40px size) if possible | ||
| __next40pxDefaultSize={ false } | ||
| __next40pxDefaultSize |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Size Change: +640 B (+0.04%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
| padding: 10px; | ||
| } | ||
|
|
||
| [class].list-reusable-blocks-import-dropdown__button { |
There was a problem hiding this comment.
It's a bummer this is necessary, but it makes sense since the other button is outside our control.
| <Button | ||
| // TODO: Switch to `true` (40px size) if possible | ||
| __next40pxDefaultSize={ false } | ||
| __next40pxDefaultSize |
There was a problem hiding this comment.
| <Button | ||
| // TODO: Switch to `true` (40px size) if possible | ||
| __next40pxDefaultSize={ false } | ||
| size="small" |
There was a problem hiding this comment.
We'll also need to update the test snapshots here.
…c. (#65715) * Fix in Dataforms layouts * Fix in Patterns header * Fix in Patterns import popover * Fix in nux * Fix in ReusableBlockConvertButton * Update snapshot Co-authored-by: mirka <0mirka00@git.wordpress.org> Co-authored-by: tyxla <tyxla@git.wordpress.org>
…c. (WordPress#65715) * Fix in Dataforms layouts * Fix in Patterns header * Fix in Patterns import popover * Fix in nux * Fix in ReusableBlockConvertButton * Update snapshot Co-authored-by: mirka <0mirka00@git.wordpress.org> Co-authored-by: tyxla <tyxla@git.wordpress.org>
…ocks, etc. (WordPress#65715)" This reverts commit 419a418.







Part of #65018
What?
Adds the
__next40pxDefaultSizeprop to Buttons in the following packages:dataviewslist-reusable-blocksnuxreusable-blocks