diff --git a/ui/src/components/NavMain.vue b/ui/src/components/NavMain.vue index 5de36971c..42649c35e 100644 --- a/ui/src/components/NavMain.vue +++ b/ui/src/components/NavMain.vue @@ -28,7 +28,8 @@ watch(() => route.path, () => { if (isMobile.value) setOpenMobile(false); }); diff --git a/ui/src/components/ui/card/CardTitle.vue b/ui/src/components/ui/card/CardTitle.vue index beeac22a5..71e6b46b1 100644 --- a/ui/src/components/ui/card/CardTitle.vue +++ b/ui/src/components/ui/card/CardTitle.vue @@ -2,13 +2,19 @@ import type { HTMLAttributes } from "vue"; import { cn } from "@/lib/utils"; -const props = defineProps<{ - class?: HTMLAttributes["class"]; -}>(); +const props = withDefaults( + defineProps<{ + class?: HTMLAttributes["class"]; + /** The heading level, so pages keep a real heading structure. */ + as?: string; + }>(), + { as: "h2" }, +); diff --git a/ui/src/components/ui/empty/EmptyTitle.vue b/ui/src/components/ui/empty/EmptyTitle.vue index d4587909f..23d0ee0af 100644 --- a/ui/src/components/ui/empty/EmptyTitle.vue +++ b/ui/src/components/ui/empty/EmptyTitle.vue @@ -2,18 +2,24 @@ import type { HTMLAttributes } from "vue"; import { cn } from "@/lib/utils"; -const props = defineProps<{ - class?: HTMLAttributes["class"]; -}>(); +const props = withDefaults( + defineProps<{ + class?: HTMLAttributes["class"]; + /** The heading level, so pages keep a real heading structure. */ + as?: string; + }>(), + { as: "h2" }, +); diff --git a/ui/src/components/ui/section/Section.vue b/ui/src/components/ui/section/Section.vue index da1074c60..15d55e182 100644 --- a/ui/src/components/ui/section/Section.vue +++ b/ui/src/components/ui/section/Section.vue @@ -28,7 +28,7 @@ const props = defineProps<{