Skip to content

Commit af30d0b

Browse files
committed
get ripple numbers from constants
1 parent fece1ab commit af30d0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/material-experimental/mdc-button/button-base.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
mixinDisableRipple,
2121
RippleAnimationConfig
2222
} from '@angular/material/core';
23-
import {MDCRippleFoundation} from '@material/ripple';
23+
import {numbers} from '@material/ripple';
2424

2525
/** Inputs common to all buttons. */
2626
export const MAT_BUTTON_INPUTS = ['disabled', 'disableRipple', 'color'];
@@ -78,8 +78,8 @@ export class MatButtonBase extends _MatButtonBaseMixin implements CanDisable, Ca
7878
CanDisableRipple {
7979
/** The ripple animation configuration to use for the buttons. */
8080
_rippleAnimation: RippleAnimationConfig = {
81-
enterDuration: MDCRippleFoundation.numbers.DEACTIVATION_TIMEOUT_MS,
82-
exitDuration: MDCRippleFoundation.numbers.FG_DEACTIVATION_MS
81+
enterDuration: numbers.DEACTIVATION_TIMEOUT_MS,
82+
exitDuration: numbers.FG_DEACTIVATION_MS
8383
};
8484

8585
/** Whether the ripple is centered on the button. */

0 commit comments

Comments
 (0)