Skip to content

Commit

Permalink
fix(footer): use button instead of link
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli committed Oct 6, 2022
1 parent f326237 commit a3a559a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nuxt/components/_/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,18 @@
</AppLink>
</FooterCategory>
<FooterCategory :heading="t('colorScheme')">
<AppLink
<Button
v-for="colorScheme in ['System', 'Light', 'Dark']"
:key="colorScheme"
:aria-label="t(`colorScheme${colorScheme}`)"
is-link-colored
:class="{
disabled: colorMode.preference === colorScheme.toLowerCase(),
}"
to=""
@click="colorMode.preference = colorScheme.toLowerCase()"
>
{{ t(`colorScheme${colorScheme}`) }}
</AppLink>
</Button>
</FooterCategory>
</div>
<p class="text-center text-gray-500 dark:text-gray-400">
Expand Down

0 comments on commit a3a559a

Please sign in to comment.