Skip to content

Commit

Permalink
Fixed #6144
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Aug 2, 2024
1 parent 68ee8b9 commit 0506532
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions packages/primevue/src/fieldset/Fieldset.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,10 @@ export interface FieldsetSlots {
* Collapsed state as a boolean
*/
collapsed: boolean;
/**
* Style class of the icon.
*/
class: string;
}): VNode[];
/**
* Custom toggler icon template.
Expand All @@ -209,6 +213,10 @@ export interface FieldsetSlots {
* Collapsed state as a boolean
*/
collapsed: boolean;
/**
* Style class of the icon.
*/
class: string;
}): VNode[];
}

Expand Down
2 changes: 1 addition & 1 deletion packages/primevue/src/fieldset/Fieldset.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
v-bind="{ ...toggleButtonProps, ...ptm('toggleButton') }"
>
<!--TODO: togglericon deprecated since v4.0-->
<slot :name="$slots.toggleicon ? 'toggleicon' : 'togglericon'" :collapsed="d_collapsed">
<slot :name="$slots.toggleicon ? 'toggleicon' : 'togglericon'" :collapsed="d_collapsed" :class="cx('toggleIcon')">
<component :is="d_collapsed ? 'PlusIcon' : 'MinusIcon'" :class="cx('toggleIcon')" v-bind="ptm('toggleIcon')" />
</slot>
<span :class="cx('legendLabel')" v-bind="ptm('legendLabel')">{{ legend }}</span>
Expand Down

0 comments on commit 0506532

Please sign in to comment.