components icon indicating copy to clipboard operation
components copied to clipboard

bug: md-icon doesn't render correctly icon ligature with white-space, work with underscore

Open ghost opened this issue 10 years ago • 5 comments

Bug, feature request, or proposal:

Bug

What is the expected behavior?

md-icon should render icon ligature composed of two or more words

What is the current behavior?

md-icon doesn't render icon ligature composed of two or more words or md-icon render an icon using the ligature separately, for example: <md-icon>add alarm</md-icon> should render the add alarm icon, and render the add and the alarm icon instead.

What are the steps to reproduce?

use any of the icons using a ligature composed of two or more word

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

angular-cli beta.16 angular material alpha.9-3

ghost avatar Oct 02 '16 20:10 ghost

Try <md-icon>add_alarm</md-icon> (with underscore).

ocarreterom avatar Oct 02 '16 21:10 ocarreterom

It works. I should have thought about that. This can be close I think, the icon readme might benefit from this explanation. Thanks @ocarreterom

ghost avatar Oct 02 '16 23:10 ghost

This is unrelated to md-icon, it's just how the ligatures are defined.

jelbourn avatar Oct 03 '16 15:10 jelbourn

@jelbourn - Just a quick note that the sample app linked from the "getting started" guide uses space.

At the very end of app.component.html:

screen shot 2016-10-13 at 7 34 27 am

cmermingas avatar Oct 13 '16 11:10 cmermingas

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.