Skip to content

Commit bca53d0

Browse files
committed
fix(Tabs): Badge color not working inside active Tab title slot (close #437)
1 parent e462c12 commit bca53d0

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/components/tabs/Tabs.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,14 @@
1111
</template>
1212
</dropdown>
1313
<li v-else role="presentation" :class="getTabClasses(tab)" v-show="!tab.hidden">
14-
<a role="tab" href="#" @click.prevent="select(tabs.indexOf(tab))" v-if="tab.$slots.title">
15-
<portal-target :name="tab._uid.toString()"/>
16-
</a>
14+
<portal-target
15+
:name="tab._uid.toString()"
16+
tag="a"
17+
role="tab"
18+
href="#"
19+
@click.native.prevent="select(tabs.indexOf(tab))"
20+
v-if="tab.$slots.title"
21+
/>
1722
<a role="tab" href="#" @click.prevent="select(tabs.indexOf(tab))" v-else="tab.title"
1823
v-text="tab.title"></a>
1924
</li>

0 commit comments

Comments
 (0)