Skip to content

Commit

Permalink
Data views table row: Make checkboxes and actions visible on touch de…
Browse files Browse the repository at this point in the history
…vices (#60829)

Co-authored-by: jameskoster <[email protected]>
Co-authored-by: jasmussen <[email protected]>
  • Loading branch information
3 people committed Apr 18, 2024
1 parent 6323c2f commit 249476e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/dataviews/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,14 @@
}
}

@media (hover: none) {
// Show checkboxes and quick-actions on devices that do not support hover.
.components-checkbox-control__input.components-checkbox-control__input,
.dataviews-item-actions .components-button:not(.dataviews-all-actions-button) {
opacity: 1;
}
}

&.is-selected {
background-color: rgba(var(--wp-admin-theme-color--rgb), 0.04);
color: $gray-700;
Expand Down

0 comments on commit 249476e

Please sign in to comment.