Skip to content

Commit

Permalink
fix(material/button): incorrect template for icon button anchor (#28996)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
crisbeto committed May 3, 2024
1 parent 2cf07bf commit 641a575
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/material/button/icon-button.ts
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion tools/public_api_guard/material/button.md
Expand Up @@ -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<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>;
static ɵcmp: i0.ɵɵComponentDeclaration<MatIconAnchor, "a[mat-icon-button]", ["matButton", "matAnchor"], {}, {}, never, ["*"], true, never>;
// (undocumented)
static ɵfac: i0.ɵɵFactoryDeclaration<MatIconAnchor, [null, null, null, { optional: true; }]>;
}
Expand Down

0 comments on commit 641a575

Please sign in to comment.