Skip to content

Commit

Permalink
docs: update code component container
Browse files Browse the repository at this point in the history
  • Loading branch information
saadeghi committed Sep 4, 2022
1 parent 9af9a11 commit 8532c62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/docs/src/components/Component.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
<div class="grid">
<div class="tabs z-10 -mb-px">
<button on:click={() => (showContent = "preview")} class={`tab tab-lifted ${showContent == "preview" ? "tab-active [--tab-bg:hsl(var(--b2))]" : "[--tab-border-color:transparent]"}`}><Translate text="Preview" /></button>
<button on:click={() => (showContent = "html")} class={`tab tab-lifted ${showContent == "html" ? "tab-active [--tab-bg:hsl(var(--n))] [--tab-border-color:hsl(var(--n))] [--tab-color:hsl(var(--nc))]" : ""}`}>HTML</button>
<button on:click={() => (showContent = "react")} class={`tab tab-lifted ${showContent == "react" ? "tab-active [--tab-bg:hsl(var(--n))] [--tab-border-color:hsl(var(--n))] [--tab-color:hsl(var(--nc))]" : ""}`}>React</button>
<button on:click={() => (showContent = "html")} class={`tab tab-lifted ${showContent == "html" ? "tab-active [--tab-bg:hsl(var(--n))] [--tab-color:hsl(var(--nc))] [--tab-border-color:hsl(var(--n))]" : "[--tab-border-color:transparent]"}`}>HTML</button>
<button on:click={() => (showContent = "react")} class={`tab tab-lifted ${showContent == "react" ? "tab-active [--tab-bg:hsl(var(--n))] [--tab-color:hsl(var(--nc))] [--tab-border-color:hsl(var(--n))]" : "[--tab-border-color:transparent]"}`}>JSX</button>
<div class="tab tab-lifted mr-6 flex-1 cursor-default [--tab-border-color:transparent]" />
</div>

Expand Down

0 comments on commit 8532c62

Please sign in to comment.