Add "deselect" tooltip to X buttons in selected features list

This commit is contained in:
Quincy Morgan
2020-01-20 10:22:49 -05:00
parent d40b4295e4
commit bb593c5ccc
3 changed files with 5 additions and 1 deletions
+1
View File
@@ -10,6 +10,7 @@ en:
favorite: favorite
list: list
text: text
deselect: deselect
toolbar:
inspect: Inspect
undo_redo: Undo / Redo
+2 -1
View File
@@ -10,7 +10,8 @@
"view_on": "view on {domain}",
"favorite": "favorite",
"list": "list",
"text": "text"
"text": "text",
"deselect": "deselect"
},
"toolbar": {
"inspect": "Inspect",
+2
View File
@@ -3,6 +3,7 @@ import { event as d3_event, select as d3_select } from 'd3-selection';
import { modeSelect } from '../modes/select';
import { osmEntity } from '../osm';
import { svgIcon } from '../svg/icon';
import { t } from '../util/locale';
import { utilDisplayName, utilHighlightEntities } from '../util';
@@ -79,6 +80,7 @@ export function uiSelectionList(context) {
enter
.append('button')
.attr('class', 'close')
.attr('title', t('icons.deselect'))
.on('click', deselectEntity)
.call(svgIcon('#iD-icon-close'));