Skip to content

Commit dbdc6ab

Browse files
devversionjelbourn
authored andcommitted
refactor: remove unused temporary ripple mixin (#5198)
* Removes the `mat-temporary-ink-ripple` mixin from the ripple stylesheet. All components that currently have ripples switched to the ripple component and therefore don't use this mixin.
1 parent b5bf6f5 commit dbdc6ab

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

src/lib/core/ripple/_ripple.scss

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -32,39 +32,3 @@ $mat-ripple-color-opacity: 0.1;
3232
background-color: rgba($foreground-base, $mat-ripple-color-opacity);
3333
}
3434
}
35-
36-
37-
// A mixin, which generates temporary ink ripple on a given component.
38-
// To be removed once the real ripple is applied to all elements.
39-
// When $bindToParent is set to true, it will check for the focused class on the same selector as you included
40-
// that mixin.
41-
// It is also possible to specify the color palette of the temporary ripple. By default it uses the
42-
// accent palette for its background.
43-
@mixin mat-temporary-ink-ripple($component, $bindToParent: false) {
44-
// TODO(mtlin): Replace when ink ripple component is implemented.
45-
// A placeholder ink ripple, shown when keyboard focused.
46-
.mat-ink-ripple {
47-
border-radius: 50%;
48-
opacity: 0;
49-
height: 48px;
50-
left: 50%;
51-
overflow: hidden;
52-
pointer-events: none;
53-
position: absolute;
54-
top: 50%;
55-
transform: translate(-50%, -50%);
56-
transition: opacity ease 280ms, background-color ease 280ms;
57-
width: 48px;
58-
}
59-
60-
// Fade in when radio focused.
61-
#{if($bindToParent, '&', '')}.mat-#{$component}-focused .mat-ink-ripple {
62-
opacity: 1;
63-
}
64-
65-
// TODO(mtlin): This corresponds to disabled focus state, but it's unclear how to enter into
66-
// this state.
67-
#{if($bindToParent, '&', '')}.mat-#{$component}-disabled .mat-ink-ripple {
68-
background-color: #000;
69-
}
70-
}

0 commit comments

Comments
 (0)