Skip to content

Commit 0816f08

Browse files
authored
fix(material/core): align ripple animation parameters with spec (#23086)
Aligns the ripple timings with the numbers from MDC.
1 parent 32e4bb4 commit 0816f08

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/material/core/ripple/ripple-renderer.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@ export interface RippleTarget {
2323
rippleDisabled: boolean;
2424
}
2525

26+
27+
// TODO: import these values from `@material/ripple` eventually.
2628
/**
2729
* Default ripple animation configuration for ripples without an explicit
2830
* animation config specified.
2931
*/
3032
export const defaultRippleAnimationConfig = {
31-
enterDuration: 450,
32-
exitDuration: 400
33+
enterDuration: 225,
34+
exitDuration: 150
3335
};
3436

3537
/**

0 commit comments

Comments
 (0)