Skip to content

Commit 45fdd71

Browse files
committed
fix: wrong element type
1 parent 50486b5 commit 45fdd71

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

app/components/AppHeader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ onKeyStroke(
150150
</div>
151151

152152
<!-- End: Desktop nav items + Mobile menu button -->
153-
<ButtonGroup class="hidden sm:flex flex-shrink-0">
153+
<ButtonGroup as="div" class="hidden sm:flex flex-shrink-0">
154154
<!-- Desktop: Compare link -->
155155
<LinkBase variant="button-secondary" to="/compare" keyshortcut="c">
156156
{{ $t('nav.compare') }}

app/components/Button/Group.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
<script setup lang="ts">
2+
const props = defineProps<{
3+
as?: string | Component
4+
}>()
5+
</script>
6+
17
<template>
2-
<nav
8+
<component
9+
:is="props.as || 'nav'"
310
class="flex items-center shrink-0 ms-auto [&>*:not(:first-child)]:rounded-s-none [&>*:not(:first-child)]:border-s-0 [&>*:not(:last-child)]:rounded-e-none"
411
>
512
<slot />
6-
</nav>
13+
</component>
714
</template>

0 commit comments

Comments
 (0)