Skip to content

Commit

Permalink
Update classes
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed May 14, 2024
1 parent adf56e2 commit 7d76a8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions packages/dataviews/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -412,14 +412,14 @@
}
}

.dataviews-item-actions .components-button {
.dataviews-view-list__item-actions .components-button {
opacity: 0;
}

&.is-selected,
&.is-hovered,
&:focus-within {
.dataviews-item-actions .components-button {
.dataviews-view-list__item-actions .components-button {
opacity: 1;
}
}
Expand Down Expand Up @@ -527,7 +527,7 @@
}
}

.dataviews-item-actions {
.dataviews-view-list__item-actions {
padding-top: $grid-unit-20;
padding-right: $grid-unit-40;
}
Expand Down
3 changes: 1 addition & 2 deletions packages/dataviews/src/view-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ function ListItem( {
<HStack
spacing={ 1 }
justify="flex-end"
className="dataviews-item-actions"
className="dataviews-view-list__item-actions"
style={ {
flexShrink: '0',
width: 'auto',
Expand Down Expand Up @@ -280,7 +280,6 @@ function ListItem( {
icon={ moreVertical }
label={ __( 'Actions' ) }
disabled={ ! actions.length }
className="dataviews-all-actions-button"
onKeyDown={ ( event: {
key: string;
preventDefault: () => void;
Expand Down

0 comments on commit 7d76a8e

Please sign in to comment.