From c30f09aecd51d9a160c4bc3f4d86f4f885613a31 Mon Sep 17 00:00:00 2001 From: Tessa Walsh Date: Fri, 29 Mar 2024 11:50:35 -0400 Subject: [PATCH] Improve keyboard accessibility of timeline --- pywb/vueui/src/components/Timeline.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pywb/vueui/src/components/Timeline.vue b/pywb/vueui/src/components/Timeline.vue index f101b5f33..24e797d2c 100644 --- a/pywb/vueui/src/components/Timeline.vue +++ b/pywb/vueui/src/components/Timeline.vue @@ -39,7 +39,7 @@ @keyup.enter="changePeriod(histoPeriod, $event)" @mouseover="setTooltipPeriod(histoPeriod, $event)" @mouseout="setTooltipPeriod(null, $event)" - tabindex="0" + :tabindex="histoPeriod.snapshotCount ? 0 : -1" > @@ -49,7 +49,6 @@ @keyup.enter="changePeriod(histoPeriod, $event)" @mouseover="setTooltipPeriod(subPeriod, $event)" @mouseout="setTooltipPeriod(null, $event)" - tabindex="0" >
{{subPeriod.getReadableId()}}