Skip to content

Commit 20af3e7

Browse files
crisbetoandrewseguin
authored andcommitted
fix(material/chips): ripple not clipped on safari (#21495)
Fixes that the chip ripple wasn't being clipped to the border radius on Safari. This was fixed initially in #12244, but it seems to have regressed. Moving the `transform` to the ripple container seems to fix it. (cherry picked from commit 73dde84)
1 parent c677f11 commit 20af3e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/material/chips/chips.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ $chip-remove-size: 18px;
3030
box-sizing: border-box;
3131
-webkit-tap-highlight-color: transparent;
3232

33-
// Required for the ripple to clip properly in Safari.
34-
transform: translateZ(0);
35-
3633
// Chips could be set on buttons so we need to reset the user agent styles.
3734
border: none;
3835
-webkit-appearance: none;
@@ -200,6 +197,9 @@ $chip-remove-size: 18px;
200197

201198
// Ensures that the ripple effect doesn't overflow the ripple target.
202199
overflow: hidden;
200+
201+
// Required for the ripple to clip in Safari.
202+
transform: translateZ(0);
203203
}
204204

205205
.mat-chip-list-wrapper {

0 commit comments

Comments
 (0)