components icon indicating copy to clipboard operation
components copied to clipboard

bug(input - suffix): matSuffix directive not aling correctly fontawesome icons (v6 - lastest) and other elements

Open AlonsoK28 opened this issue 3 years ago • 0 comments

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

matSuffix directive is not aligning correctly Fontawesome icons and other elements like material components and html native elements

matSuffix is only aligning correctly material icons

Reproduction

Steps to reproduce:

  1. add matSuffix directive to mat-input
  2. use fontawesome icon together suffix directive

I provide a reproduce example of this issue, using fontawesome icons and other material elements

example: https://stackblitz.com/edit/angular-ivy-cshdvu

Expected Behavior

Fontawesome icons and other elements are correctly alingment using matSuffix directive

Material icons are correctly alingment using matSuffix directive

image

Actual Behavior

Fontawesome icons are aligment incorrectly using matSuffix directive

image

Material Checkbox are alignment incorrectly using matSuffix directive

image

Material Radio button are alignment incorrectly using matSuffix directive

image

Html select are alignment incorrectly using matSuffix directive

image

Material Spinner are alignment incorrectly using matSuffix directive

image

Environment

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

AlonsoK28 avatar Sep 30 '22 19:09 AlonsoK28