We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0020c67 commit 8d4a2e9Copy full SHA for 8d4a2e9
sites/skeleton.dev/src/routes/(inner)/elements/lists/+page.svelte
@@ -195,7 +195,7 @@
195
</svelte:fragment>
196
</DocsPreview>
197
<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' : '');`} />
+ <CodeBlock language="ts" code={`$: classesActive = (href: string) => (href === $page.url.pathname ? '!variant-filled-primary' : '');`} />
199
<CodeBlock language="html" code={`<a href={href} class="{classesActive(href)}">Page</a>`} />
200
</section>
201
0 commit comments