Import maticonmodule from angular material icon.
Mat icon next to text.
Icons ought to be treated a lot like typography.
Mat icon is part of angular material module called maticonmodule we can use font ligature as an icon by putting the ligature text in mat icon component.
What is the current behavior.
They re either used in conjunction with text or in place of it so setting the size of the icon to the size of the text next to it is important for the same reason we like consistently sized letters.
Mat icons used as a matprefix or matsuffix should vertically align with the input text placeholder.
Icons material icons are delightful beautifully crafted symbols for common actions and items.
We have to import maticonmodule from angular material modules.
I m using zurb foundation 5 5.
Download on desktop to use them in your digital products for android ios and web.
What is the expected behavior.
Icons are positioned too high.
Whats the correct way of placing an icon next to text.
That seems broken to me as the icon is outside of the div.
For example mat icon home mat icon displays home icon.
A telephone icon next to a phone number.
Hi guys what is the correct code to use when placing an icon next to a piece of text.
Bug feature request or proposal.
I have tried various ways but the text and icon are never horizontally aligned.
This doesn t mean icons need to be 16px if your content font size is also 16px.
Surprisingly it added padding to both the icon and the div.