Merge pull request #7129 from ducmerida/fix/7128-accordion-expand-collapse-icons-direction

Fix reversed Expand/Collapse icons of AccordionHeader.vue
pull/7132/head
Tuğçe Küçükoğlu 2025-01-22 15:32:54 +03:00 committed by GitHub
commit 44c877ef4c
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)"