Style systems | Community
Skip to main content
December 20, 2023
Solved

Style systems

  • December 20, 2023
  • 1 reply
  • 451 views

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.

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 Madhur-Madan

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


1 reply

Madhur-Madan
Community Advisor
Madhur-MadanCommunity AdvisorAccepted solution
Community Advisor
December 20, 2023

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