Style Tab not visible in dialog when component is added using data-sly-resource | Community
Skip to main content
Level 2
April 21, 2025

Style Tab not visible in dialog when component is added using data-sly-resource

  • April 21, 2025
  • 2 replies
  • 630 views

I have created a custom gallery component and added custom button component to it, (sling:ResourceSuperType as Core button component) using data-sly-resource as below.
<sly data-sly-resource="${ 'deselectButton' @ resourceType='myproject/components/button', decoration=true}"></sly>

1. For button component i have added style system and able to use it properly when i add button component directly on page. 
2. Now, I have added gallery component on a page, and it has button component inside it, when I open the dialog, I'm not able to see styles tab, however, I'm able to see the paint brush icon when I hover on edit mode and add styles, but my problem statement is not able to view styles tab in button component dialog until I add some style using the paint brush icon. 
Please let me know if there are any solutions.


2 replies

Level 2
April 21, 2025

Hi @tejaswi_aem 
I also faced something similar. It seems like the policy is missing for the pre-added button component. You can check the policies section of your page's template.

Here, In the xml check in the container section where you are adding your gallery component whether the button policy is present and properly mapped to you policy.

Hope it helps.

Level 2
April 23, 2025

Hi,
I have done this, but problem is still not resolved. 

kautuk_sahni
Community Manager
Community Manager
June 26, 2025

@tejaswi_aem Just checking in — were you able to resolve your issue?
We’d love to hear how things worked out. If the suggestions above helped, marking a response as correct can guide others with similar questions. And if you found another solution, feel free to share it — your insights could really benefit the community. Thanks again for being part of the conversation!

Kautuk Sahni