material icon indicating copy to clipboard operation
material copied to clipboard

md-icon font not working in md-list-item (broken in 0.10.1)

Open rscottfree opened this issue 11 years ago • 6 comments

Using the material icon font faces in md-icon inside of an md-list-item fails to show the actual icon, showing only the glyph text.

This worked in 0.10.0 but is broken in 0.10.1-rc[1-5]

Here is the md-list example for "Checkbox with secondary action" from the demo page, using 0.10.1-rc5. This is identical to the demo except I'm using the font face in place of the SVG icon. (SVG works fine)

Broken codepen for md-icon using 0.10.1-rc5

And here is the same code using 0.10.0.

Working codepen for md-icon using 0.10.0

rscottfree avatar Aug 05 '15 15:08 rscottfree

I can confirm I am having this same issue.

geoffreytran avatar Aug 11 '15 23:08 geoffreytran

+1 for 0.10.1

I had to use hybrid with other module for theme applying and minimum code rewriting:

<md-icon ng-if="item.icon" ng-class="{ 'md-accent': menu.isCurrent(item) }>
  <ng-md-icon icon={{:: item.icon }}></ng-md-icon>
</md-icon>

vasiliy0s avatar Aug 13 '15 09:08 vasiliy0s

We are having the same problem. Is there a work around or is this thing going to be fixed?

jbainbridge avatar Aug 27 '15 20:08 jbainbridge

+1

issue: screen shot 2015-08-31 at 07 47 44

code:

<md-list>
    <md-list-item>
        <div class="md-list-item-text stdLink">
            <h3>Blablaaa</h3>
        </div>

        <md-icon
            class="md-secondary"
            aria-label="Edit item">

            edit
        </md-icon>
    </md-list-item>
</md-list>

josephmiclaus avatar Aug 31 '15 05:08 josephmiclaus

@rscottfree: This issue seems to have been fixed. I forked your Codepen and updated it to Angular Material 0.11.0 and the issue disappears: http://codepen.io/programmist/pen/pjyvPp?editors=101

Please verify this is working for you.

programmist avatar Sep 16 '15 17:09 programmist

I can confirm this is now working for me in 0.11.0-rc2.

rscottfree avatar Sep 16 '15 17:09 rscottfree