• Resolved zzzz8888

    (@zzzz8888)


    I’ve noticed the material design buttons allow one to add an icon to the button. It would be nice if I could use these icons elsewhere on my site. How does one reference these icons properly?

    Unfortunately, my CSS/HTML is a bit weak, but I did try to do some research. I can see the following HTML code associated with an icon I added to a material design button:

    <a href="/register" class="mdc-button mdc-button--raised is-large mdc-ripple-upgraded" style="--mdc-ripple-fg-size:95px; --mdc-ripple-fg-scale:1.867116220324907; --mdc-ripple-fg-translate-start:36.36669921875px, -21px; --mdc-ripple-fg-translate-end:32.366668701171875px, -22.5px;">
      <i class="material-icons mdc-button__icon">person_add</i>
      <div class="mdc-button__ripple"></div>
      <span class="mdc-button__label">Register</span>
    </a>

    I then look in the F12 developer tools scouring the css. I’m not sure how that icon gets displayed. I’m specifically interested in updating my css so that each of my menu drawer items has an icon to the left of each item. How should one accomplish this? Thanks!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Using Material Design Icons in Menu Drawer’ is closed to new replies.