diff --git a/src/material/button/BUILD.bazel b/src/material/button/BUILD.bazel index af7369501faa..2f71c888a923 100644 --- a/src/material/button/BUILD.bazel +++ b/src/material/button/BUILD.bazel @@ -26,7 +26,6 @@ ng_module( ":icon-button_scss", ] + glob(["**/*.html"]), deps = [ - "//src/cdk/platform", "//src/material/core", ], ) diff --git a/src/material/button/button-base.ts b/src/material/button/button-base.ts index e1a73952bd0a..6c66a2304273 100644 --- a/src/material/button/button-base.ts +++ b/src/material/button/button-base.ts @@ -7,7 +7,6 @@ */ import {FocusMonitor, FocusOrigin} from '@angular/cdk/a11y'; -import {Platform} from '@angular/cdk/platform'; import { AfterViewInit, ANIMATION_MODULE_TYPE, @@ -91,7 +90,6 @@ const HOST_SELECTOR_MDC_CLASS_PAIR: {attribute: string; mdcClasses: string[]}[] @Directive() export class MatButtonBase implements AfterViewInit, OnDestroy { _elementRef = inject(ElementRef); - _platform = inject(Platform); _ngZone = inject(NgZone); _animationMode = inject(ANIMATION_MODULE_TYPE, {optional: true}); diff --git a/tools/public_api_guard/material/button.md b/tools/public_api_guard/material/button.md index 3c9326f8311c..1bd43539fc33 100644 --- a/tools/public_api_guard/material/button.md +++ b/tools/public_api_guard/material/button.md @@ -14,7 +14,6 @@ import { MatRippleLoader } from '@angular/material/core'; import { NgZone } from '@angular/core'; import { OnDestroy } from '@angular/core'; import { OnInit } from '@angular/core'; -import { Platform } from '@angular/cdk/platform'; import { ThemePalette } from '@angular/material/core'; // @public