Fix issue with the Label field by changing the class name of form-field-label (close #6344)

This commit is contained in:
Quincy Morgan
2019-05-13 10:36:21 -04:00
parent b4811dbfe1
commit 401c3a5005
5 changed files with 24 additions and 24 deletions
+5 -5
View File
@@ -119,7 +119,7 @@ export function uiField(context, presetField, entity, options) {
if (options.wrap) {
var label = enter
.append('label')
.attr('class', 'form-field-label')
.attr('class', 'field-label')
.attr('for', function(d) { return 'preset-input-' + d.safeid; });
label
@@ -151,10 +151,10 @@ export function uiField(context, presetField, entity, options) {
container = container
.merge(enter);
container.select('.form-field-label > .remove-icon') // propagate bound data
container.select('.field-label > .remove-icon') // propagate bound data
.on('click', remove);
container.select('.form-field-label > .modified-icon') // propagate bound data
container.select('.field-label > .modified-icon') // propagate bound data
.on('click', revert);
container
@@ -192,7 +192,7 @@ export function uiField(context, presetField, entity, options) {
if (help) {
d3_select(this)
.call(help.body)
.select('.form-field-label')
.select('.field-label')
.call(help.button);
}
@@ -200,7 +200,7 @@ export function uiField(context, presetField, entity, options) {
if (reference) {
d3_select(this)
.call(reference.body)
.select('.form-field-label')
.select('.field-label')
.call(reference.button);
}
+1 -1
View File
@@ -402,7 +402,7 @@ export function uiFieldLocalized(field, context) {
var label = wrap
.append('label')
.attr('class', 'form-field-label');
.attr('class', 'field-label');
label
.append('span')
+1 -1
View File
@@ -148,7 +148,7 @@ export function uiRawMemberEditor(context) {
var label = item
.append('label')
.attr('class', 'form-field-label');
.attr('class', 'field-label');
if (d.member) {
// highlight the member feature in the map while hovering on the list item
+2 -2
View File
@@ -197,7 +197,7 @@ export function uiRawMembershipEditor(context) {
var labelEnter = itemsEnter
.append('label')
.attr('class', 'form-field-label')
.attr('class', 'field-label')
.append('span')
.attr('class', 'label-text')
.append('a')
@@ -258,7 +258,7 @@ export function uiRawMembershipEditor(context) {
newMembershipEnter
.append('label')
.attr('class', 'form-field-label')
.attr('class', 'field-label')
.append('input')
.attr('placeholder', t('inspector.choose_relation'))
.attr('type', 'text')