Merge pull request #4904 from vershwal/remove-undo-icon

Hint text for Remove and Undo button.
This commit is contained in:
Bryan Housel
2018-03-18 18:58:34 -04:00
committed by GitHub
3 changed files with 8 additions and 1 deletions
+2
View File
@@ -1,6 +1,8 @@
en:
icons:
information: info
remove: remove
undo: undo
modes:
add_area:
title: Area
+3 -1
View File
@@ -1,7 +1,9 @@
{
"en": {
"icons": {
"information": "info"
"information": "info",
"remove": "remove",
"undo": "undo"
},
"modes": {
"add_area": {
+3
View File
@@ -9,6 +9,7 @@ import {
select as d3_select
} from 'd3-selection';
import { t } from '../util/locale';
import { textDirection } from '../util/locale';
import { svgIcon } from '../svg';
import { uiFieldHelp } from './field_help';
@@ -114,6 +115,7 @@ export function uiField(context, presetField, entity, options) {
wrap
.append('button')
.attr('class', 'remove-icon')
.attr('title', t('icons.remove'))
.attr('tabindex', -1)
.call(svgIcon('#operation-delete'));
}
@@ -122,6 +124,7 @@ export function uiField(context, presetField, entity, options) {
wrap
.append('button')
.attr('class', 'modified-icon')
.attr('title', t('icons.undo'))
.attr('tabindex', -1)
.call(
(textDirection === 'rtl') ? svgIcon('#icon-redo') : svgIcon('#icon-undo')