vtex-apps / store-discussion

VTEX IO store builders' community
80 stars 5 forks source link

Multiple iconpacks #671

Open FabricioJuliatto-DBC opened 2 years ago

FabricioJuliatto-DBC commented 2 years ago

What are you trying to accomplish? Please describe.
In short, the question is: can I have multiple iconpacks, defined in different apps, coexisting with one another? Does VTEX merge the different iconpacks or only one gets applied? And when there are conflicts, which one is prioritized? The docs say that an iconpack defined in my store-theme will overwrite the default one, but if I have two apps, each with their own iconpack, defining the same icon, which one takes precedence?

More specifically, let's say I'm writing an app which exports a new block and, within the React component, I want to use a certain icon, which is not present in the default iconpack. For uniformity it would be nice to define that icon in its own iconpack within that app. It would be using a new id, not present elsewhere. Would that lead to any issues?