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

Add filter to replace icon font #247

Closed
vidya-ram opened this issue Nov 29, 2019 · 1 comment
Closed

Add filter to replace icon font #247

vidya-ram opened this issue Nov 29, 2019 · 1 comment
Assignees

Comments

@vidya-ram
Copy link
Member

Currently the following are the html snippet to add
Material icons

<i class="material-icons mui--text-subhead mui--text-light mui--align-middle" aria-hidden="true">perm_identity</i>

And font awesome 5 icons

{% assets "fa5-sprite" %}<svg class="fa5-icon fa5-icon fa5-icon--subhead fa5--align-baseline" aria-hidden="true" role="img"><use xlink:href="{{ ASSET_URL }}#times"></use></svg>{% endassets %}

Instead, {{ micon('icon_name', title='Optional title') }} in the template should insert the full markup for that material icon/font awesome icon including aria-hidden flag.

@jace jace self-assigned this Jan 31, 2020
@vidya-ram
Copy link
Member Author

Fixed in #264 and #265

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

No branches or pull requests

2 participants