mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-26 09:57:50 +02:00
Fix issue with the Label field by changing the class name of form-field-label (close #6344)
This commit is contained in:
+5
-5
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user