diff --git a/src/lib/button/button.html b/src/lib/button/button.html index d198d21ca429..e7caa601203c 100644 --- a/src/lib/button/button.html +++ b/src/lib/button/button.html @@ -1,7 +1,7 @@
+ [matRippleDisabled]="_isRippleDisabled()" + [matRippleCentered]="_isIconButton" + [matRippleTrigger]="_getHostElement()"> diff --git a/src/lib/button/button.ts b/src/lib/button/button.ts index ebfb6960d120..d11c1776b299 100644 --- a/src/lib/button/button.ts +++ b/src/lib/button/button.ts @@ -24,6 +24,7 @@ import { CanColor, CanDisable, CanDisableRipple, + MATERIAL_COMPATIBILITY_MODE, mixinColor, mixinDisabled, mixinDisableRipple @@ -130,6 +131,7 @@ export const _MdButtonMixinBase = mixinColor(mixinDisabled(mixinDisableRipple(Md encapsulation: ViewEncapsulation.None, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, + viewProviders: [{provide: MATERIAL_COMPATIBILITY_MODE, useValue: true}], }) export class MdButton extends _MdButtonMixinBase implements OnDestroy, CanDisable, CanColor, CanDisableRipple { diff --git a/src/lib/checkbox/checkbox.html b/src/lib/checkbox/checkbox.html index b6067c6e0833..f1185ea34a3f 100644 --- a/src/lib/checkbox/checkbox.html +++ b/src/lib/checkbox/checkbox.html @@ -15,10 +15,10 @@ [attr.aria-labelledby]="ariaLabelledby" (change)="_onInteractionEvent($event)" (click)="_onInputClick($event)"> - + -