From 93973859d78cfdbee56857fed538a68d954ffd1d Mon Sep 17 00:00:00 2001 From: Corson-Dosch <hcorson-dosch@usgs.gov> Date: Fri, 13 Dec 2024 20:49:28 -0600 Subject: [PATCH] attach keydown to group instead of paths --- src/components/GlacierScanViz.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/GlacierScanViz.vue b/src/components/GlacierScanViz.vue index 590cc0c..9ecda4c 100644 --- a/src/components/GlacierScanViz.vue +++ b/src/components/GlacierScanViz.vue @@ -9,7 +9,7 @@ <div id="cross-section-grid-container"> <div id="caption-container" > <img v-if="defaultView" id="globe-image" src="https://labs.waterdata.usgs.gov/visualizations/images/FireInIce/globe_marker_40.png" alt="locator map showing location of Juneau ice field in southeastern Alaska"> - <img v-if="!defaultView" class="jif-image" :id=currentPhotoID :src=getImageSrc(currentPhotoID) alt="currentPhotoAlt"> + <img v-if="!defaultView" class="jif-image" :id=currentPhotoID :src=getImageSrc(currentPhotoID) :alt="currentPhotoAlt"> <div v-if="!mobileView && defaultView"> <p v-html="text.paragraph1" /> <p v-html="text.promptDesktop" /> @@ -327,7 +327,7 @@ photoIDs.forEach(photo_id => { crossSectionSVG.select(`#photo-sm-${photo_id}-${id}`).selectAll("path") .attr("class", `xs photo-sm xs-${id}`) - crossSectionSVG.select(`#photo-lg-${photo_id}-${id}`).selectAll("path") + crossSectionSVG.select(`#photo-lg-${photo_id}-${id}`) .attr("tabindex", 0) .attr("role", "button") .attr("aria-label", 'field photo') -- GitLab