Merge pull request #5498 from quincylvania/form-field-flexbox

Flexbox preset field, member, and membership UI
This commit is contained in:
Quincy Morgan
2018-11-21 20:14:36 -05:00
committed by GitHub
11 changed files with 119 additions and 129 deletions
+9 -3
View File
@@ -261,18 +261,24 @@ export function uiFieldLocalized(field, context) {
var label = wrap
.append('label')
.attr('class','form-label')
.text(t('translate.localized_translation_label'))
.attr('for','localized-lang');
label
.append('span')
.attr('class', 'label-text')
.text(t('translate.localized_translation_label'));
label
.append('div')
.attr('class', 'form-label-button-wrap')
.append('button')
.attr('class', 'minor remove')
.attr('class', 'minor remove-icon')
.on('click', function(d){
d3_event.preventDefault();
var t = {};
t[key(d.lang)] = undefined;
dispatch.call('change', this, t);
d3_select(this.parentNode.parentNode)
d3_select(this.parentNode.parentNode.parentNode)
.style('top','0')
.style('max-height','240px')
.transition()