Description
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
14.2.0
Description
After the material migration to the mdc-based components MatIcons are not displayed correctly in the meta section of a list item.
Reproduction
Steps to reproduce:
- Build a simple page with a MatList and a MatListItem.
- Add an icon to the meta section.
- Icon will display only the selector as text.
https://stackblitz.com/edit/components-issue-mmrxed?file=src%2Fapp%2Fexample-component.html
Code example:
<mat-list> <mat-list-item> This shows no icon in the meta section -> <mat-icon matListItemMeta>edit</mat-icon> </mat-list-item> </mat-list>
Expected Behavior
The icon has to be displayed.
Actual Behavior
The icon name is shown.
Environment
Angular CLI: 15.0.4
Node: 18.12.1
Package Manager: npm 8.19.2
OS: win32 x64
Angular: 15.0.4
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Package Version
@angular-devkit/architect 0.1500.4
@angular-devkit/build-angular 15.0.4
@angular-devkit/core 15.0.4
@angular-devkit/schematics 15.0.4
@angular/cdk 15.0.3
@angular/material 15.0.3
@schematics/angular 15.0.4
ng-packagr 15.0.3
rxjs 7.5.7
typescript 4.8.4