From 7a7e34ed758c001a2ff927922f98e271dbeffe07 Mon Sep 17 00:00:00 2001 From: "Milos Brzakovic (E-Search)" Date: Fri, 26 Nov 2021 13:24:46 +0100 Subject: [PATCH] imagery offset --- data/core.yaml | 1 + modules/ui/sections/background_offset.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/data/core.yaml b/data/core.yaml index 0fbfe29c4..afb054b1b 100644 --- a/data/core.yaml +++ b/data/core.yaml @@ -807,6 +807,7 @@ en: tooltip: Show coordinates and regional details. fix_misalignment: Imagery Offset offset: "Drag anywhere in the gray area below to adjust the imagery offset, or enter the offset values in meters." + offset_label: "Adjust Imagery Offset" map_data: title: Map Data description: Map Data diff --git a/modules/ui/sections/background_offset.js b/modules/ui/sections/background_offset.js index ca7c7479c..73d1b18f8 100644 --- a/modules/ui/sections/background_offset.js +++ b/modules/ui/sections/background_offset.js @@ -148,6 +148,7 @@ export function uiSectionBackgroundOffset(context) { .attr('class', 'nudge-inner-rect') .append('input') .attr('type', 'text') + .attr('aria-label', t('background.offset_label')) .on('change', inputOffset); nudgeWrapEnter @@ -155,6 +156,7 @@ export function uiSectionBackgroundOffset(context) { .selectAll('button') .data(_directions).enter() .append('button') + .attr('title', function(d) { return 'nudge ' + d[0]; }) .attr('class', function(d) { return d[0] + ' nudge'; }) .on('click', function(d3_event, d) { nudge(d[1]);