Giter VIP home page Giter VIP logo

Comments (3)

eggp avatar eggp commented on August 14, 2024 4

@szandra-homonnai copy this lib to your project and rewrite code :(

from angular-material-components.

FranciscoKnebel avatar FranciscoKnebel commented on August 14, 2024 1

Just installed this package because of the datetime component, that Material Angular does not provide.
Even if using the icons as defined in #58, only strings are shown, instead of the icons.

Inside our project, we use <mat-icon fontSet="" fontIcon=""> to handle icons from different families, instead of only <mat-icon>icon</mat-icon>. Maybe this could be configurable? I'll disable the icons in order to use this package.
The project has a default font set (setDefaultFontSetClass, on https://material.angular.io/components/icon/api). That way, mat-icon without a fontSet use the default, which is not Material Icons.

In other words, the problem is that I use fontSet and fontIcon for mat-icon, but there is no support for this, only ligatures (<mat-icon>home</mat-icon). With a default font set, material icon ligatures don't seem to work.

from angular-material-components.

szandra-homonnai avatar szandra-homonnai commented on August 14, 2024

We have the same problem: we use custom font icons for Material Icons within our project, so the icons in this package won't work. Has anyone found a solution or a workaround for this?

My workaround for our own component packages: instead of using <mat-icon>home<mat-icon> in the code, we used the icons like this <i class="material-icons">home</i>. Yes, I know this means that the package will use the Material Icons while the project uses other icons, but I couldn't make it work any other ways.

from angular-material-components.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.