From 04bc4b09f07093e7b2bde9311542167b73a2f9a0 Mon Sep 17 00:00:00 2001 From: vershwal Date: Thu, 15 Mar 2018 12:54:42 +0530 Subject: [PATCH] Added alt text for information icon. --- data/core.yaml | 2 ++ dist/locales/en.json | 3 +++ modules/ui/tag_reference.js | 1 + 3 files changed, 6 insertions(+) diff --git a/data/core.yaml b/data/core.yaml index 4d487fa0d..02a27f103 100644 --- a/data/core.yaml +++ b/data/core.yaml @@ -1,4 +1,6 @@ en: + icons: + information: info modes: add_area: title: Area diff --git a/dist/locales/en.json b/dist/locales/en.json index 8f0102fce..05765672b 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -1,5 +1,8 @@ { "en": { + "icons": { + "information": "info" + }, "modes": { "add_area": { "title": "Area", diff --git a/modules/ui/tag_reference.js b/modules/ui/tag_reference.js index 81cf4659b..ddfd3fb77 100644 --- a/modules/ui/tag_reference.js +++ b/modules/ui/tag_reference.js @@ -157,6 +157,7 @@ export function uiTagReference(tag) { _button = _button.enter() .append('button') .attr('class', 'tag-reference-button') + .attr('title', t('icons.information')) .attr('tabindex', -1) .call(svgIcon('#icon-inspect')) .merge(_button);