From b408df82c1d8a0123e552048421b37afcf5189c6 Mon Sep 17 00:00:00 2001 From: Corentin Thomasset Date: Sun, 15 Oct 2023 23:41:55 +0200 Subject: [PATCH] refactor(c-table): added description on c-table for accessibility --- src/ui/c-table/c-table.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/c-table/c-table.vue b/src/ui/c-table/c-table.vue index 9f734a9f..9354cc9a 100644 --- a/src/ui/c-table/c-table.vue +++ b/src/ui/c-table/c-table.vue @@ -2,7 +2,7 @@ import _ from 'lodash'; import type { HeaderConfiguration } from './c-table.types'; -const props = withDefaults(defineProps<{ data?: Record[]; headers?: HeaderConfiguration ; hideHeaders?: boolean }>(), { data: () => [], headers: undefined, hideHeaders: false }); +const props = withDefaults(defineProps<{ data?: Record[]; headers?: HeaderConfiguration ; hideHeaders?: boolean; description?: string }>(), { data: () => [], headers: undefined, hideHeaders: false, description: 'Data table' }); const { data, headers: rawHeaders, hideHeaders } = toRefs(props); const headers = computed(() => { @@ -38,7 +38,7 @@ const headers = computed(() => {