Skip to content

Commit f7bfdc3

Browse files
committed
Fix language selector issue
1 parent 61ce6ed commit f7bfdc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/mdx/Languages.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const { languages } = site;
1717
<button
1818
@click={`language = "${lang}"`}
1919
class="rounded-lg px-1.5 py-1 text-sm font-semibold tracking-tight focus:outline-none dark:border-1.5 md:px-2 md:py-0.5 md:text-base lg:px-3 lg:py-1.5 lg:text-lg"
20-
x-bind:class='{ "border-primary bg-soft-gray dark:bg-darker-gray": language == "${lang}", "border-pale hover:text-primary dark:border-dark": language !== "${lang}" }'
20+
x-bind:class={`{ "border-primary bg-soft-gray dark:bg-darker-gray": language == "${lang}", "border-pale hover:text-primary dark:border-dark": language !== "${lang}" }`}
2121
>
2222
{lang}
2323
</button>

0 commit comments

Comments
 (0)