diff --git a/packages/primevue/src/cascadeselect/CascadeSelect.d.ts b/packages/primevue/src/cascadeselect/CascadeSelect.d.ts index 6ab976d0c..75fb571db 100644 --- a/packages/primevue/src/cascadeselect/CascadeSelect.d.ts +++ b/packages/primevue/src/cascadeselect/CascadeSelect.d.ts @@ -128,6 +128,10 @@ export interface CascadeSelectPassThroughOptions { * Used to pass attributes to the option list's DOM element. */ optionList?: CascadeSelectPassThroughOptionType; + /** + * Used to pass attributes to the group icon container's DOM element. + */ + groupIconContainer?: CascadeSelectPassThroughOptionType; /** * Used to pass attributes to the group icon's DOM element. */ diff --git a/packages/primevue/src/cascadeselect/CascadeSelectSub.vue b/packages/primevue/src/cascadeselect/CascadeSelectSub.vue index 0b271de75..cabe4727d 100644 --- a/packages/primevue/src/cascadeselect/CascadeSelectSub.vue +++ b/packages/primevue/src/cascadeselect/CascadeSelectSub.vue @@ -21,9 +21,11 @@ {{ getOptionLabelToRender(processedOption) }} ` .p-cascadeselect-option-content { display: flex; align-items: center; + justify-content: space-between; overflow: hidden; position: relative; padding: ${dt('cascadeselect.option.padding')}; } .p-cascadeselect-group-icon { - margin-left: auto; font-size: ${dt('cascadeselect.option.icon.size')}; width: ${dt('cascadeselect.option.icon.size')}; height: ${dt('cascadeselect.option.icon.size')}; @@ -232,6 +232,7 @@ const classes = { ], optionContent: 'p-cascadeselect-option-content', optionText: 'p-cascadeselect-option-text', + groupIconContainer: 'p-cascadeselect-group-icon-container', groupIcon: 'p-cascadeselect-group-icon', optionList: 'p-cascadeselect-overlay p-cascadeselect-option-list' };