Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
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
Level 5

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
Level 5

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}"