Skip to content

fix(ripple): fix ripple color in dark theme #3094

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

Merged
merged 1 commit into from
Feb 16, 2017
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
14 changes: 10 additions & 4 deletions src/lib/core/ripple/_ripple.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import '../theming/theming';

$mat-ripple-element-color: rgba(0, 0, 0, 0.1);
$mat-ripple-color-opacity: 0.1;

@mixin mat-ripple() {
// The host element of an md-ripple directive should always have a position of "absolute" or
Expand All @@ -18,14 +18,20 @@ $mat-ripple-element-color: rgba(0, 0, 0, 0.1);
border-radius: 50%;
pointer-events: none;

background-color: $mat-ripple-element-color;

transition: opacity, transform 0ms cubic-bezier(0, 0, 0.2, 1);
transform: scale(0);
}
}

@mixin mat-ripple-theme($theme) {}
/* Theme for the ripple elements.*/
@mixin mat-ripple-theme($theme) {
$foreground: map_get($theme, foreground);
$foreground-base: map_get($foreground, base);

.mat-ripple-element {
background-color: rgba($foreground-base, $mat-ripple-color-opacity);
}
}


// A mixin, which generates temporary ink ripple on a given component.
Expand Down