Libraries importing a second class (putting 2 after the existing class)

Is anyone else getting duplicate classes every time they import a component from a library?
I installed the untitled ui library to a project and changed the styling on a header (uui-heading-large) and every time I add a different component from the library it adds a new class (uui-heading-large 2) am I missing something or am I using the libraries wrong?

It goes for every class that gets added, regardless of page, or type of component.

Screen Shot 2022-11-10 at 2.34.13 PM
Screen Shot 2022-11-10 at 2.33.46 PM

Has anyone found a solution for this or know of another post that solves this? Thanks!

If you changed the styling, then yes I’d expect it to create a new copy of that class to avoid interference.

The namespacing approach you see, like ZM_class is sort of a makeshift way to minimize conflicts with your own classes, but you’ll still get dupes created in the case of class-change conflicts.

1 Like