Skip to content

Commit

Permalink
Fix TabMenu to use tabs-bordered and bold text (#792)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvire authored Jan 28, 2025
1 parent b882c68 commit 35abe1d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lib/components/TabsMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ A component to display tabbed menus.
</script>

{#if hasTabs}
<div class="dy-tabs mb-1" style={convertStyle($s['ui.selector.tabs'])}>
<div class="dy-tabs dy-tabs-bordered mb-1" style={convertStyle($s['ui.selector.tabs'])}>
{(console.log(`active: ${active}`), '')}
{#each Object.keys(options) as opt}
{#if options[opt].visible}
<!-- svelte-ignore a11y-missing-attribute -->
Expand All @@ -40,8 +41,8 @@ A component to display tabbed menus.
<a
on:click|preventDefault={() => setActive(opt)}
style:border-color={active === opt ? '#FFFFFF' : ''}
class="dy-tab dy-tab-bordered text-white normal-case {active === opt
? 'dy-tab-active'
class="dy-tab text-white normal-case {active === opt
? 'dy-tab-active font-bold'
: ''}"
style:background="none"
role="button"
Expand Down

0 comments on commit 35abe1d

Please sign in to comment.