Skip to content

Commit

Permalink
fix(Tabs): Badge color not working inside active Tab title slot (close
Browse files Browse the repository at this point in the history
  • Loading branch information
wxsms committed Feb 7, 2021
1 parent e462c12 commit bca53d0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/components/tabs/Tabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,14 @@
</template>
</dropdown>
<li v-else role="presentation" :class="getTabClasses(tab)" v-show="!tab.hidden">
<a role="tab" href="#" @click.prevent="select(tabs.indexOf(tab))" v-if="tab.$slots.title">
<portal-target :name="tab._uid.toString()"/>
</a>
<portal-target
:name="tab._uid.toString()"
tag="a"
role="tab"
href="#"
@click.native.prevent="select(tabs.indexOf(tab))"
v-if="tab.$slots.title"
/>
<a role="tab" href="#" @click.prevent="select(tabs.indexOf(tab))" v-else="tab.title"
v-text="tab.title"></a>
</li>
Expand Down

0 comments on commit bca53d0

Please sign in to comment.