Skip to content

Commit

Permalink
refactor(c-table): added description on c-table for accessibility (#668)
Browse files Browse the repository at this point in the history
  • Loading branch information
CorentinTh authored Oct 15, 2023
1 parent 95a01d4 commit c65b364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/c-table/c-table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

1 comment on commit c65b364

@vercel
Copy link

@vercel vercel bot commented on c65b364 Oct 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

it-tools – ./

it-tools.vercel.app
it-tools.tech
it-tools-git-main-ctmsst.vercel.app
it-tools-ctmsst.vercel.app

Please sign in to comment.