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>
|
<template>
|
||||||
|
<h2 id="tabslist" class="sr-only">Projets</h2>
|
||||||
<template v-if="data">
|
<template v-if="data">
|
||||||
<Tabs :projects="data.children" @update:currentTab="changeTab" />
|
<Tabs :projects="data.children" @update:currentTab="changeTab" />
|
||||||
<TabPanel :projects="data.children" :currentTab="currentTab" />
|
<TabPanel :projects="data.children" :currentTab="currentTab" />
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
|
<!-- TODO: rendre dynamique id + aria-labelledby -->
|
||||||
<section
|
<section
|
||||||
v-if="currentTab === 'current'"
|
v-if="currentTab === 'current'"
|
||||||
id="projets-en-cours"
|
id="projets-en-cours"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<h2 id="tabslist" class="sr-only">Projets</h2>
|
|
||||||
<header role="tablist" aria-labelledby="tablist">
|
<header role="tablist" aria-labelledby="tablist">
|
||||||
|
<!-- TODO: aria-selected et tabindex ne fonctionnent pas -->
|
||||||
<button
|
<button
|
||||||
v-for="tab in tabs"
|
v-for="tab in tabs"
|
||||||
:key="tab.label"
|
:key="tab.label"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue