-
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
Allow matBadge to be empty #15444
Comments
What is a case where you'd want to show a blank badge? |
The one on LinkedIn isn't blank either though, it has a dot in it. |
@mackelito does it work if you just use a space? |
It did not work using space... but I have not tried it with the latest release.. |
Maybe we should stop trimming the message if it's just whitespace? |
@crisbeto ¯\(ツ)/¯ I don't feel strongly either way |
any changes in this discussion. I would also like this to be an option. I'd be fine with an Input the the component to allow it so it is explicit and you don't have to guess at the developers intention. |
Well, I needed this in a project that I'm working on and I'm currently using |
Is there a strong reason not to use use a CSS class with a |
Closing this since you can accomplish a notification dot with plain CSS without needing |
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. |
What is the expected behavior?
If matBadge is used but without a value it should still show but empty
What is the current behavior?
element is not rendered
What are the steps to reproduce?
https://stackblitz.com/edit/angular-5zk8sa?file=app/badge-overview-example.html
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Is there anything else we should know?
The text was updated successfully, but these errors were encountered: