Skip to content

Commit

Permalink
refactor: 🎨 Use span element for tabs instead anchors
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxNB committed Jul 29, 2021
1 parent 3b6b17b commit 3f8a7c9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmp/Tab.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
$: active = ($active_tab === tabid || $active_tab === id);
</script>

<!--TODO: write issue to chota to replace a by span-->
<a href="/" class:active use:events {...$$restProps} on:click|preventDefault={()=>active_tab.set( (tabid === false) ? id : tabid)}>
<span class:active use:events {...$$restProps} on:click|preventDefault={()=>active_tab.set( (tabid === false) ? id : tabid)}>
<slot></slot>
</a>
</span>

0 comments on commit 3f8a7c9

Please sign in to comment.