Do experience fragments added to pages use their own CSS? | Community
Skip to main content
Level 2
September 13, 2022
Solved

Do experience fragments added to pages use their own CSS?

  • September 13, 2022
  • 1 reply
  • 923 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Ankur_Khare

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

 

1 reply

Ankur_Khare
Community Advisor
Ankur_KhareCommunity AdvisorAccepted solution
Community Advisor
September 13, 2022

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

 

Level 2
September 13, 2022

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.