Skip to content

bug(mat-icon): the icon is cut off in some cases #25774

@Den-dp

Description

@Den-dp

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

13

Description

I found that after updating from angular/material@13 to 14 - mat-icon started to "crop" the icon inside.

I see it in my app but also in the official angular material docs site https://material.angular.io

Reproduction

Steps to reproduce:

  1. navigate to https://material.angular.io/
  2. open theme selector

Expected Behavior

image

https://v13.material.angular.io/

Actual Behavior

note the hight of the right mat-icon
image

https://material.angular.io/

Environment

  • Angular: 14
  • CDK/Material: 14.2.4
  • Browser(s): Google Chrome
  • Operating System: Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageThis issue needs to be triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions