Skip to content
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

Update custom data view button #56002

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ function CustomDataViewItem( { dataviewId, isActive } ) {
icon={ moreVertical }
label={ __( 'Actions' ) }
toggleProps={ {
size: 'small',
className: 'edit-site-sidebar-navigation-screen-dataviews__ellipsis-button',
style: {
color: 'inherit',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@
text-transform: uppercase;
}
}

.edit-site-sidebar-navigation-screen-dataviews__ellipsis-button {
display: flex;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

cc @ciampo If you place a small button inside a DropDownMenu then .components-dropdown-menu renders at a peculiar size. Here is was 26.5px tall, in Storybook it's 27.5px. Seems like a bug to fix separately, then we can remove this style.

Copy link
Contributor

Choose a reason for hiding this comment

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

Opened #56005
to fix this at the component level, you should be able to remove the custom styles once that gets merged

Copy link
Contributor

Choose a reason for hiding this comment

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

New attempt in #56136

}
Loading