Add todos, move tablist h2 from Tabs to Projects component
This commit is contained in:
parent
e0242ead0f
commit
209cb06540
3 changed files with 3 additions and 1 deletions
|
|
@ -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" />
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
<template>
|
||||
<!-- TODO: rendre dynamique id + aria-labelledby -->
|
||||
<section
|
||||
v-if="currentTab === 'current'"
|
||||
id="projets-en-cours"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue