From 641a575af14e5fc9ed293c861c5c005fd533c300 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Fri, 3 May 2024 15:04:07 +0200 Subject: [PATCH] fix(material/button): incorrect template for icon button anchor (#28996) Fixes that the icon button anchor was using the base button template instead of the icon button one. Fixes #28990. (cherry picked from commit 9c11d452b5afb27f6bec0256605d78b63a30f238) --- src/material/button/icon-button.ts | 2 +- tools/public_api_guard/material/button.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/material/button/icon-button.ts b/src/material/button/icon-button.ts index 6368b5c39ee8..48a79cf90960 100644 --- a/src/material/button/icon-button.ts +++ b/src/material/button/icon-button.ts @@ -54,7 +54,7 @@ export class MatIconButton extends MatButtonBase { */ @Component({ selector: `a[mat-icon-button]`, - templateUrl: 'button.html', + templateUrl: 'icon-button.html', styleUrls: ['icon-button.css', 'button-high-contrast.css'], host: MAT_ANCHOR_HOST, exportAs: 'matButton, matAnchor', diff --git a/tools/public_api_guard/material/button.md b/tools/public_api_guard/material/button.md index 664bab379e6e..35025cf91fbd 100644 --- a/tools/public_api_guard/material/button.md +++ b/tools/public_api_guard/material/button.md @@ -100,7 +100,7 @@ export interface MatFabDefaultOptions { export class MatIconAnchor extends MatAnchorBase { constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string); // (undocumented) - static ɵcmp: i0.ɵɵComponentDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; // (undocumented) static ɵfac: i0.ɵɵFactoryDeclaration; }