-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
matBadge changes position after content is updated #16992
Comments
Ok, the solution for this problem is not to use matBadge with inline elements. |
Is it supposed to be fixed or is it a limitation ? Regards |
I found a hack for this issue |
You can also just add "display: inline-block;" to the inline element instead of using mat-icon around it. |
Also affected with an Angular 10 (CLI 10.2.0, Material 10.2.7) application using a Worked around through the mat-icon as such :
|
I use Font Awesome instead of Angular Icons and have the same issue. (I won't use Material Icons because they suck 😋) |
Any news? :) |
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. |
Reproduction
https://stackblitz.com/edit/angular-f2fovj
Expected Behavior
MatBadge should preserve its position after content is updated
Actual Behavior
MatBadge changes position after content is updated.
Environment
The text was updated successfully, but these errors were encountered: