Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Material Icons variants #248

Open
ovicrisan opened this issue Jan 25, 2020 · 3 comments
Open

Material Icons variants #248

ovicrisan opened this issue Jan 25, 2020 · 3 comments

Comments

@ovicrisan
Copy link

ovicrisan commented Jan 25, 2020

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'.

@djibe
Copy link

djibe commented Jan 26, 2020

Good point.

I'll try to do it soon.

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

@djibe
Copy link

djibe commented Feb 1, 2020

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.

@djibe
Copy link

djibe commented Feb 5, 2020

@ovicrisan @sesemaya
Hi, is the documentation OK for you ?
https://djibe.github.io/material/docs/4.5/material/icons/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants