Make "Multiple Values" placeholder italic

This commit is contained in:
Quincy Morgan
2020-01-20 13:55:38 -05:00
parent 14dba080b0
commit a364c52f47
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -2359,6 +2359,9 @@ button.raw-tag-option svg.icon {
[dir='rtl'] .tag-row input.value {
border-left: 1px solid #ccc;
}
.tag-row input.value.conflicting::placeholder {
font-style: italic;
}
.tag-row:first-child input.key {
border-top: 1px solid #ccc;
+3
View File
@@ -285,6 +285,9 @@ export function uiRawTagEditor(context) {
.attr('title', function(d) {
return typeof d.value === 'string' ? d.value : Array.from(_keyValues[d.key]).sort().join('; ');
})
.classed('conflicting', function(d) {
return typeof d.value !== 'string';
})
.attr('placeholder', function(d) {
return typeof d.value === 'string' ? null : t('inspector.multiple_values');
})