Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix in Patterns header
  • Loading branch information
mirka committed Sep 28, 2024
commit cdc56a711e601dd943df7d746bb77ae27b30e77b
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ function ImportDropdown( { onUpload } ) {
contentClassName="list-reusable-blocks-import-dropdown__content"
renderToggle={ ( { isOpen, onToggle } ) => (
<Button
// TODO: Switch to `true` (40px size) if possible
__next40pxDefaultSize={ false }
size="compact"
className="list-reusable-blocks-import-dropdown__button"
Comment on lines +20 to +21
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go to http://localhost:8888/wp-admin/edit.php?post_type=wp_block.

Before After
Import from JSON button, before Import from JSON button, after

aria-expanded={ isOpen }
onClick={ onToggle }
variant="primary"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
.list-reusable-blocks-import-dropdown__content .components-popover__content {
padding: 10px;
}

[class].list-reusable-blocks-import-dropdown__button {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[class] selector added for more specificity.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bummer this is necessary, but it makes sense since the other button is outside our control.

// Todo: Make core button height and gutenberg button height equal.
height: 30px;
}
4 changes: 0 additions & 4 deletions packages/list-reusable-blocks/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
align-items: center;
position: relative;
top: -3px;
// Todo: Make core button height and gutenberg button height equal.
.components-button {
height: 26px;
}
Comment on lines -9 to -12
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to a custom class name in packages/list-reusable-blocks/src/components/import-dropdown/style.scss.

}

@include wordpress-admin-schemes();