accordion icon rotation added

pull/41/head
Merve Özçifçi 2019-08-05 10:36:37 +03:00
parent 84b4de05b7
commit 2d2b12170f
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ export default {
<div key={tab.header||i} class="p-accordion-tab"> <div key={tab.header||i} class="p-accordion-tab">
<div class={['p-accordion-header', {'p-highlight': tab.d_active, 'p-disabled': tab.disabled}]}> <div class={['p-accordion-header', {'p-highlight': tab.d_active, 'p-disabled': tab.disabled}]}>
<a role="tab" on-click={event => this.onTabClick(event, tab)} on-keydown={event => this.onTabKeydown(event, tab)} tabindex={tab.disabled ? null : '0'}> <a role="tab" on-click={event => this.onTabClick(event, tab)} on-keydown={event => this.onTabKeydown(event, tab)} tabindex={tab.disabled ? null : '0'}>
<span class="p-accordion-toggle-icon pi pi-fw pi-caret-right"></span> <span class={['p-accordion-toggle-icon pi pi-fw ',{'pi-caret-right': !tab.d_active, 'pi-caret-down': tab.d_active}]}></span>
{tab.header && <span class="p-accordion-header-text">{tab.header}</span>} {tab.header && <span class="p-accordion-header-text">{tab.header}</span>}
{tab.$slots.header} {tab.$slots.header}
</a> </a>