components icon indicating copy to clipboard operation
components copied to clipboard

Md-icon has a bug

Open HeavenlyHost opened this issue 10 years ago • 7 comments

Bug, feature request, or proposal:

When attempting to use an icon as provided by material icons that is named with more than one word the icon is not loaded ?

What is the expected behavior?

<md-icon>perm identity<\md-icon>

should display using the ligatures name provided but does not, however...

<md-icon>face<\md-icon>

works perfectly fine ?

What is the current behavior?

ligatures names of more than one word do not load

What are the steps to reproduce?

<md-icon>perm identity<\md-icon>

Providing a Plunker (or similar) is the best way to get the team to see your issue. Plunker template: http://plnkr.co/edit/o077B6uEiiIgkC0S06dd

What is the use-case or motivation for changing an existing behavior?

Which versions of Angular, Material, OS, browsers are affected?

Angular 2.0.0 final, Material 2 Alpha 8.2, Chrome 52

Is there anything else we should know?

HeavenlyHost avatar Sep 19 '16 20:09 HeavenlyHost

Try perm_identity.

nkwood avatar Sep 19 '16 20:09 nkwood

Really ? I shall try tomorrow, if this works I think the docs need updating because it was not explained very well 😐

HeavenlyHost avatar Sep 19 '16 21:09 HeavenlyHost

Had the same problem, as nkwood said, replace any space with an underscore ("_"), that does the trick!

ghost avatar Sep 20 '16 05:09 ghost

Closing this, since this is just how the ligatures are defined in the icon font.

jelbourn avatar Sep 20 '16 18:09 jelbourn

@jelbourn can confirm that fix as described works, although do believe it inaccurate in docs, this needs highlighting 😊

HeavenlyHost avatar Sep 20 '16 18:09 HeavenlyHost

I support @HeavenlyHost, you should update the docs to show the proper use of the ligatures. (Or is it wide expected to be used as it is?)

michaeljota avatar Nov 11 '16 18:11 michaeljota

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.