New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(MENU): Make content-projection for icon possible for any other icon definitions like fa-icon or <i> #26214
Comments
Adds the `matMenuItemIcon` selector to the `ng-content` so icons that aren't `mat-icon` can be projected in the correct place. Fixes angular#26214.
Adding all the possible icon selectors to our template wouldn't be feasible, but I've opened #26235 which adds a |
Thats exactly what I am looking for. Could we get this in 15.0.3? |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Feature Description
Feature Description
Actually the menu item HTML is implemented like this:
We can see that the mat-icon is projected into the menu item by using the selector mat-icon. This has the limitation to use the menu item only with mat-icon if the menu should have an icon. But whats about fa-icon or ?
It would be great to add a menu item like:
In this case the fa-icon contains a svg like mat-icon can do. It would be cool to project fa-icon into the menu item like mat-icon. This can be done with a directive name like icon or any other name.
Use Case
Use mat-menu-item also with other icon components like or fa-icon.
Use Case
No response
The text was updated successfully, but these errors were encountered: