You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This makes the ripple service conform with the specifications and other Material reference implementations.
See https://material.io/guidelines/motion/material-motion.html#material-motion-how-does-material-move
This means the following:
* Ripples now trigger on `mousedown`
* Ripples now persists as long as the element is being hold.
* No longer adds an unnecessary background ripple.
* Removes the ugly `scale(0.00001)` for ripple animations
Not only visually the ripple has been changed. The whole renderer has been rewritten and now has a very simple API, that can be easily used by developers.
References #1434
Copy file name to clipboardExpand all lines: src/lib/core/ripple/README.md
+1-3Lines changed: 1 addition & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,7 @@ Properties:
19
19
| --- | --- | --- |
20
20
| `mdRippleTrigger` | Element | The DOM element that triggers the ripple when clicked. Defaults to the parent of the `md-ripple`.
21
21
| `mdRippleColor` | string | Custom color for foreground ripples
22
-
| `mdRippleBackgroundColor` | string | Custom color for the ripple background
23
22
| `mdRippleCentered` | boolean | If true, the ripple animation originates from the center of the `md-ripple` bounds rather than from the location of the click event.
24
-
| `mdRippleMaxRadius` | number | Optional fixed radius of foreground ripples when fully expanded. Mainly used in conjunction with `unbounded` attribute. If not set, ripples will expand from their origin to the most distant corner of the component's bounding rectangle.
23
+
| `mdRippleRadius` | number | Optional fixed radius of foreground ripples when fully expanded. Mainly used in conjunction with `unbounded` attribute. If not set, ripples will expand from their origin to the most distant corner of the component's bounding rectangle.
25
24
| `mdRippleUnbounded` | boolean | If true, foreground ripples will be visible outside the component's bounds.
26
-
| `mdRippleFocused` | boolean | If true, the background ripple is shown using the current theme's accent color to indicate focus.
27
25
| `mdRippleDisabled` | boolean | If true, click events on the trigger element will not activate ripples. The `start` and `end` methods can still be called to programmatically create ripples.
0 commit comments