Expand my Community achievements bar.

SOLVED

Do experience fragments added to pages use their own CSS?

Avatar

Level 2

Our team is considering using experience fragments to include custom forms into pages via the experience fragment component. Some of our subsites utilize different styling, however, so we were wondering; when including an experience fragment in a page, does it utilize the CSS in the experience fragment or does the page CSS take priority?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

It would be using experience fragment clientlibs injected on to the page.

So if you want to have different styles better to apply at experiencefragment level itself.

 

Regards

Ankur

 

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi,

It would be using experience fragment clientlibs injected on to the page.

So if you want to have different styles better to apply at experiencefragment level itself.

 

Regards

Ankur

 

Avatar

Level 2

Thanks Ankur! Just to add to that: It looks like the page clientlibs will also apply to the experience fragment, so in our scenario, it seems like the best course of action is to keep most of the clientlibs at the page level for anything we include in an experience fragment.