Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Style systems

Avatar

Level 1

I have embedded a custom buttonCTA component in another component. But I am unable to apply style system to the embedded component. If I use buttonCTA stand alone I am able to select the different styles but not inside the embedded component.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Nandan3108 

We need to add the 'decoration=true' while embedding the component to enable style system on the embedded component.

You can try using 
data-sly-resource="${'buttonCTA' @ resourceType='/apps/your_app/components/your_btn_component',decoration=true}"


View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @Nandan3108 

We need to add the 'decoration=true' while embedding the component to enable style system on the embedded component.

You can try using 
data-sly-resource="${'buttonCTA' @ resourceType='/apps/your_app/components/your_btn_component',decoration=true}"