Closed kapil-gahlawat closed 2 years ago
@adobe export issue to Jira Project SITES as Bug
:white_check_mark: Jira issue SITES-5621 is successfully created for this GitHub issue.
@kapil-gahlawat Thank you for the hands up! Can you please verify if the PR at https://github.com/adobe/aem-core-wcm-components/pull/2116 will fix the issue?
@bpauli : I just tested the PR 2116 and it fixed the issue. Thanks for the quick response. Can we expect this fix in version 2.18.9?
@kapil-gahlawat The change just got merged to the main branch and will be included in the next release.
Environment
This issue was reported earlier: https://github.com/adobe/aem-core-wcm-components/issues/1889
This issue was marked as fixed in 6.5.12.0, which was released last month. It is working in this particular case. However, there is a corner case where it is not working. Here are the steps to reproduce:
Steps to reproduce the issue:
Summary: Applied style is working fine inside the experience fragment but when you consume this same experience fragment in a page using the Experience Fragment Component, style is not being applied.
Note: If you drag and drop the container inside Experience fragment and apply style and then use this experience fragment on a page, this style is working absolutely fine. The only specific case it is not working is: Container is in the structure of experience fragment template and Locked.
Additional context / Screenshots
Experience Fragment template structure (I have applied the style fixed-width to the layout container):
After creating the experience fragment using the above template, this is how experience fragment looks like (Notice margin on the left and right. We have applied a CSS class fixed-width using container style to the template structure above):
This is how the same experience fragment in a page looks like (Please notice there is no margin on the left and right of breadcrumb and image. CSS class applied using container style is not present when we include the experience fragment on the page):