mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-08 07:11:03 -04:00
refactor(c-table): added description on c-table for accessibility
This commit is contained in:
parent
95a01d4fa6
commit
2ee311e7bd
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ const headers = computed(() => {
|
|||
|
||||
<template>
|
||||
<div class="relative overflow-x-auto rounded">
|
||||
<table class="w-full border-collapse text-left text-sm text-gray-500 dark:text-gray-400" :description="description" role="table">
|
||||
<table class="w-full border-collapse text-left text-sm text-gray-500 dark:text-gray-400" role="table" :aria-label="description">
|
||||
<thead v-if="!hideHeaders" class="bg-#ffffff uppercase text-gray-700 dark:bg-#333333 dark:text-gray-400">
|
||||
<tr>
|
||||
<th v-for="header in headers" :key="header.key" scope="col" class="px-6 py-3 text-xs">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue