Add todos, move tablist h2 from Tabs to Projects component

This commit is contained in:
Timothée Goguely 2024-09-04 19:10:21 +02:00
parent e0242ead0f
commit 209cb06540
3 changed files with 3 additions and 1 deletions

View file

@ -1,4 +1,5 @@
<template>
<h2 id="tabslist" class="sr-only">Projets</h2>
<template v-if="data">
<Tabs :projects="data.children" @update:currentTab="changeTab" />
<TabPanel :projects="data.children" :currentTab="currentTab" />

View file

@ -1,4 +1,5 @@
<template>
<!-- TODO: rendre dynamique id + aria-labelledby -->
<section
v-if="currentTab === 'current'"
id="projets-en-cours"

View file

@ -1,6 +1,6 @@
<template>
<h2 id="tabslist" class="sr-only">Projets</h2>
<header role="tablist" aria-labelledby="tablist">
<!-- TODO: aria-selected et tabindex ne fonctionnent pas -->
<button
v-for="tab in tabs"
:key="tab.label"