Skip to content

Commit fcba9f8

Browse files
crisbetoroboshoes
authored andcommitted
fix(chips): ripple not clipping correctly in safari (angular#12244)
Fixes the ripple on a `mat-chip` not being clipped to the rounded corners on Safari.
1 parent 5f6adc8 commit fcba9f8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/chips/chips.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ $mat-chip-remove-size: 18px;
2929
overflow: hidden;
3030
box-sizing: border-box;
3131
-webkit-tap-highlight-color: transparent;
32+
33+
// Required for the ripple to clip properly in Safari.
34+
transform: translateZ(0);
3235
}
3336

3437
.mat-standard-chip {

0 commit comments

Comments
 (0)