Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(material/chips): ripple not clipped on safari #21495

Merged
merged 1 commit into from
Mar 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/material/chips/chips.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ $mat-chip-remove-size: 18px;
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;

// Required for the ripple to clip properly in Safari.
transform: translateZ(0);

// Chips could be set on buttons so we need to reset the user agent styles.
border: none;
-webkit-appearance: none;
Expand Down Expand Up @@ -185,6 +182,9 @@ $mat-chip-remove-size: 18px;

// Ensures that the ripple effect doesn't overflow the ripple target.
overflow: hidden;

// Required for the ripple to clip in Safari.
transform: translateZ(0);
}

.mat-chip-list-wrapper {
Expand Down