Skip to content

bug(material/button): mat-icon-button has different display on anchor and button #26126

Closed
@DaSchTour

Description

@DaSchTour

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

I use FontAwesome Icons with Material and with version 15 discovered a lot of issues with icons.
One for which I could create a reproduction is a different display between <a mat-icon-button></a> and <button mat-icon-button></button>

Reproduction

https://angular-ivy-dgra38.stackblitz.io

Expected Behavior

The icon position is the same for anchor and button

Actual Behavior

The anchor is positioned to the left

Environment

  • Angular: 15.0.1
  • CDK/Material: 15.0.0
  • Browser(s): Chrome

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