Skip to content

Commit 8d4a2e9

Browse files
authored
use variant-filled-primary class for active nav item to also use corr… (#2624)
1 parent 0020c67 commit 8d4a2e9

File tree

1 file changed

+1
-1
lines changed
  • sites/skeleton.dev/src/routes/(inner)/elements/lists

1 file changed

+1
-1
lines changed

sites/skeleton.dev/src/routes/(inner)/elements/lists/+page.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@
195195
</svelte:fragment>
196196
</DocsPreview>
197197
<p>To highlight active state, we recommend conditionally applying a background color to the anchor tag.</p>
198-
<CodeBlock language="ts" code={`$: classesActive = (href: string) => (href === $page.url.pathname ? '!bg-primary-500' : '');`} />
198+
<CodeBlock language="ts" code={`$: classesActive = (href: string) => (href === $page.url.pathname ? '!variant-filled-primary' : '');`} />
199199
<CodeBlock language="html" code={`<a href={href} class="{classesActive(href)}">Page</a>`} />
200200
</section>
201201
</svelte:fragment>

0 commit comments

Comments
 (0)