components icon indicating copy to clipboard operation
components copied to clipboard

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

Open pedroestabruxelles opened this issue 1 month 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

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.:

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

pedroestabruxelles avatar May 02 '24 09:05 pedroestabruxelles