Skip to content

Commit c4a1407

Browse files
authored
fix(material/core): hide ripples inside drag&drop elements (#29184)
When we create previews and placeholders for the drag&drop module, we clone the DOM node in its current state. This means that if there are ripples, they'll be in the clone as well. These changes add a default styles to hide the ripple in such cases since it'll never disappear. Fixes #29159.
1 parent 3dc01c1 commit c4a1407

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/material/core/ripple/_ripple.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,11 @@
4747
@include cdk.high-contrast(active, off) {
4848
display: none;
4949
}
50+
51+
// Hide ripples inside cloned drag&drop elements since they won't go away.
52+
.cdk-drag-preview &,
53+
.cdk-drag-placeholder & {
54+
display: none;
55+
}
5056
}
5157
}

0 commit comments

Comments
 (0)