Skip to content

Commit

Permalink
Update data view menu item actions (#56398)
Browse files Browse the repository at this point in the history
* Update data view menu item actions

* Small button size

* add specifc class to dropdown menu

* fix linting issue

---------

Co-authored-by: ntsekouras <ntsekouras@outlook.com>
  • Loading branch information
jameskoster and ntsekouras authored Nov 24, 2023
1 parent c6e3890 commit 55d0c84
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,12 @@ function CustomDataViewItem( { dataviewId, isActive } ) {
<DropdownMenu
icon={ moreVertical }
label={ __( 'Actions' ) }
className="edit-site-sidebar-dataviews-dataview-item__dropdown-menu"
toggleProps={ {
style: {
color: 'inherit',
},
size: 'small',
} }
>
{ ( { onClose } ) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@

.edit-site-sidebar-dataviews-dataview-item {
border-radius: $radius-block-ui;
padding-right: $grid-unit-10;

.edit-site-sidebar-dataviews-dataview-item__dropdown-menu {
min-width: initial;
}

&:hover,
&:focus,
Expand Down

0 comments on commit 55d0c84

Please sign in to comment.