-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Fix: Inconsistency on Import from JSON button look #20416
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
Conversation
|
Size Change: +21 B (0%) Total Size: 865 kB
ℹ️ View Unchanged
|
|
Right now Gutenberg Buttons are 36 for regular buttons and 24 for small ones. In Core it's more 30 for regular buttons and probably 24 too for small ones. The "Add New" button though is an ad-hoc button in Core while "Import from JSON" is a regular Gutenberg button. For the issue to be solved entirely, we need:
This won't happen today though as the buttons refactoring in Core takes time. Maybe we can just adapt the style of the "Import from JSON" in adhoc way now. |
5acf326 to
5d3073c
Compare
|
Thank you for updates @mapk, things are looking good in my tests. |



Description
Fixes: #20302
This PR fixes the size and padding of the import from JSON button to make the button consistent with the Add New button.
How has this been tested?
I verified the button still works (the UI can be accessed on .../wp-admin/edit.php?post_type=wp_block).