Skip to content

Material Icons variants #248

Description

@ovicrisan

When using variants of Material Icons, like Outlined for instance, icons won't work because explicitly references 'Material Icons' family font:

.custom-checkbox .custom-control-label::after {
...
font-family: 'Material Icons';
... }

So, when including
<link href="https://fonts.googleapis.com/icon?family=Material+Icons+Outlined" rel="stylesheet">

you should use:

.custom-checkbox .custom-control-label::after {
...
font-family: 'Material Icons', 'Material Icons Outlined';
... }

My proposal is to include all possible variants of https://material.io/resources/icons/ in 'font-family'.

Activity

  1. djibe commented on Jan 26, 2020

    @djibe

    Good point.

    I'll try to do it soon.

    But I think I'd rather throw Material icons dependencies and switch to pure svg.

  2. djibe commented on Feb 1, 2020

    @djibe

    Hi, try my new build from my fork : https://github.com/djibe/material/tree/master/css

    Insert a stylesheet like or Outlined or Two Tone or Rounded.

    All the stuff will be converted to this icon set.

    You can even keep the default markup <i class="material-icons">account_box</i> without using specific ones (like material-icons-sharp).

    Tell me if you experience bugs.

  3. djibe commented on Feb 5, 2020

    @djibe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions