Skip to content

bug(mat-icon-button): anchor is pointing to the incorrect template #28990

@pedroestabruxelles

Description

@pedroestabruxelles

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

Anchor icon button is pointing to the button.html template, this causes style inconsistency for example when using the icon button with text, e.g.: A

Button:
@component({
selector: button[mat-icon-button],
templateUrl: 'icon-button.html',
(...)
})

Anchor:
@component({
selector: a[mat-icon-button],
templateUrl: 'button.html',
(...)
})

Reproduction

This is not needed.

Expected Behavior

Both anchor/button mat-icon-button should be using the same template

Actual Behavior

anchor/button mat-icon-button are not using the same template

Environment

  • Angular: 17
  • CDK/Material: 17.3.0
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/button

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions