aem-react-editable-components icon indicating copy to clipboard operation
aem-react-editable-components copied to clipboard

[bug] Not being able to apply self-defined css classes to Layout Container

Open cthio opened this issue 4 years ago • 5 comments
trafficstars

Describe the bug Layout Container not able to register the custom CSS classes defined in the Template Policy. I'm running a React SPA pages in AEM

Package version v1.1.10 with AEM 6.5.5

To Reproduce

  1. Go to any SPA Page template
  2. In an existing Layout Container component, go to its template policy
  3. Add the custom css class and go back to the template editor page
  4. Hover the layout container and add the css class with the Styles icon
  5. CSS classes are not being applied to the Layout Container

Expected behavior The CSS class(es) should be applied to the Layout Container

Screenshots 1. step-1

step-2

  1. Actual behavior actual-behavior

Additional context Add any other context about the problem here.

cthio avatar Sep 19 '21 03:09 cthio

@schoudry - Should your fix resolve this issue? Thanks

friendlymahi avatar Sep 21 '21 03:09 friendlymahi

are the custom classes returned in model.json request in appliedCssClassNames property?

schoudry avatar Sep 21 '21 11:09 schoudry

We have the same problem. None of the properties from the container policy are returned in model.json

camillalund avatar Oct 13 '21 12:10 camillalund

@camillalund @cthio - Unsure if this issue should even exist under this repo. If the model.json doesnt even return the appliedCssClassNames property, perhaps the issue is with the sling model exporters from core components, and it may make sense to log the issue in https://github.com/adobe/aem-core-wcm-components.

friendlymahi avatar Nov 13 '21 05:11 friendlymahi

See comment on https://github.com/adobe/aem-core-wcm-components/issues/1889: Please open a support ticket for us to back-port this to 6.5. Thanks!

gabrielwalt avatar Nov 19 '21 13:11 gabrielwalt