Skip to content

Commit f20105d

Browse files
committedMay 3, 2024·
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 9c11d45)
1 parent 9a0a467 commit f20105d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/material/button/icon-button.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class MatIconButton extends MatButtonBase {
5454
*/
5555
@Component({
5656
selector: `a[mat-icon-button]`,
57-
templateUrl: 'button.html',
57+
templateUrl: 'icon-button.html',
5858
styleUrls: ['icon-button.css', 'button-high-contrast.css'],
5959
host: MAT_ANCHOR_HOST,
6060
exportAs: 'matButton, matAnchor',

‎tools/public_api_guard/material/button.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export interface MatFabDefaultOptions {
100100
export class MatIconAnchor extends MatAnchorBase {
101101
constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string);
102102
// (undocumented)
103-
static ɵcmp: i0.ɵɵComponentDeclaration<MatIconAnchor, "a[mat-icon-button]", ["matButton", "matAnchor"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
103+
static ɵcmp: i0.ɵɵComponentDeclaration<MatIconAnchor, "a[mat-icon-button]", ["matButton", "matAnchor"], {}, {}, never, ["*"], true, never>;
104104
// (undocumented)
105105
static ɵfac: i0.ɵɵFactoryDeclaration<MatIconAnchor, [null, null, null, { optional: true; }]>;
106106
}

0 commit comments

Comments
 (0)
Please sign in to comment.