Skip to content

Commit

Permalink
Avoid paint on list view item hover (#46188)
Browse files Browse the repository at this point in the history
Co-authored-by: Corentin Gautier <[email protected]>
  • Loading branch information
corentin-gautier and Corentin Gautier authored Dec 1, 2022
1 parent 029bc08 commit 4b4a3f0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/block-editor/src/components/list-view/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -196,15 +196,13 @@
@include reduce-motion("transition");

> * {
will-change: opacity;
opacity: 0;
}

// Show on hover, visible, and show above to keep the hit area size.
&:hover,
&.is-visible {
position: relative;
z-index: 1;

> * {
opacity: 1;
@include edit-post__fade-in-animation;
Expand Down

0 comments on commit 4b4a3f0

Please sign in to comment.