Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

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

Avatar

Level 2

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.


Topics

Topics help categorize Community content and increase your ability to discover relevant content.

3 Replies

Avatar

Level 2

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.

ShadanAa1_0-1745234317669.png

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.

ShadanAa1_1-1745234574103.png

Hope it helps.

Avatar

Level 2

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

Avatar

Administrator

@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