From 29b70afd48d8cdfbbca3850fa344288c33b3c004 Mon Sep 17 00:00:00 2001 From: Marios Antonoudiou Date: Mon, 4 Dec 2023 17:12:00 +0200 Subject: [PATCH] chore: add accessibility enhancements --- app.vue | 3 +++ components/company.vue | 5 +++++ components/introduction.vue | 1 + 3 files changed, 9 insertions(+) diff --git a/app.vue b/app.vue index 5178736..60e722f 100644 --- a/app.vue +++ b/app.vue @@ -10,6 +10,9 @@ useSeoMeta({ }); useHead({ + htmlAttrs: { + lang: "en", + }, bodyAttrs: { class: "dark:bg-slate-900", }, diff --git a/components/company.vue b/components/company.vue index 747e728..22375b4 100644 --- a/components/company.vue +++ b/components/company.vue @@ -5,6 +5,9 @@ interface Props { } const props = defineProps(); + +const titleRef = ref(); +const altContent = computed(() => titleRef.value?.$el.textContent);