In my AEM Cloud component, I have a dropdown select field. When I click on the field, the dropdown values appear slightly to the right and extend beyond the field's width. I'm facing this issue with all dropdowns across my project.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
I think something from your custom client library is causing that issue. Check if you are using any OOTB CSS class in your custom CSS. You may try the elimination method to find the right component CSS that is causing this issue. Try removing one component at a time in your project and verify and see at what point this gets fixed.
Hi @manchala1
Search your global/project stylesheets for overrides on dropdown-related classes.
Example (bad practice):
select {
margin: 5px;
width: 150px;
}
Avoid overriding Coral UI core classes directly.
Parent containers should not have restrictive styles that interfere with Coral dropdown rendering.
Fix example:
.coral3-Select-popover {
left: 0 !important;
width: auto !important;
min-width: 100% !important;
}
Add scoped styles to align dropdown widths consistently:
.coral3-Select {
width: 100% !important;
}
.coral3-SelectList {
min-width: 100% !important;
}
Deploy the same dialog on a clean AEM SDK instance without custom code.
If the dropdown appears correctly, the issue originates from project-specific CSS or dialog structure.
Ensure dropdowns are initialized properly if added dynamically or affected by JS timing:
Coral.commons.ready(function() {
Coral.commons.triggerComponentUpgrade(document.querySelectorAll('.coral-Select'));
});
Regards,
Karishma.
@manchala1 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!
Views
Replies
Total Likes