Fix reversed Expand/Collapse icons of AccordionHeader.vue

pull/7129/head
David Cardós Uc 2025-01-21 13:13:57 -06:00 committed by GitHub
parent 8c23afa9a5
commit e6d81c8528
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -4,14 +4,14 @@
<slot name="toggleicon" :active="$pcAccordionPanel.active" :class="cx('toggleicon')">
<component
v-if="$pcAccordionPanel.active"
:is="$pcAccordion.$slots.collapseicon ? $pcAccordion.$slots.collapseicon : $pcAccordion.collapseIcon ? 'span' : 'ChevronDownIcon'"
:is="$pcAccordion.$slots.collapseicon ? $pcAccordion.$slots.collapseicon : $pcAccordion.collapseIcon ? 'span' : 'ChevronUpIcon'"
:class="[$pcAccordion.collapseIcon, cx('toggleicon')]"
aria-hidden="true"
v-bind="ptm('toggleicon', ptParams)"
></component>
<component
v-else
:is="$pcAccordion.$slots.expandicon ? $pcAccordion.$slots.expandicon : $pcAccordion.expandIcon ? 'span' : 'ChevronUpIcon'"
:is="$pcAccordion.$slots.expandicon ? $pcAccordion.$slots.expandicon : $pcAccordion.expandIcon ? 'span' : 'ChevronDownIcon'"
:class="[$pcAccordion.expandIcon, cx('toggleicon')]"
aria-hidden="true"
v-bind="ptm('toggleicon', ptParams)"