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

loading icons #1

Open
bennypowers opened this issue Apr 3, 2023 · 1 comment
Open

loading icons #1

bennypowers opened this issue Apr 3, 2023 · 1 comment

Comments

@bennypowers
Copy link

If you load the minified bundle, you have to specify which directory to load icons from:

<script type="module" src="https://jspm.dev/@patternfly/elements"></script>

<script type="module">
import { PfIcon } from 'https://jspm.dev/@patternfly/elements';
PfIcon.getIconUrl = (icon, set) => new URL(`/@patternfly/elements/pf-icon/icons/${set}/${icon}.js`, 'https://jspm.dev');
</script>

Try that

https://patternflyelements.org/components/icon/#override-the-default-icon-sets

@anujsingla
Copy link
Owner

Sure, I will do

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