diff --git a/scss/_editor.scss b/scss/_editor.scss index 7fba481af..6b96993bd 100644 --- a/scss/_editor.scss +++ b/scss/_editor.scss @@ -5,3 +5,8 @@ width: 1em; } } + +.o-editor-input:focus { + border-color: #808080; /* Grey edge */ + box-shadow: 0 0 10px rgba(169, 169, 169, 0.5); /* Grey glow */ +} diff --git a/src/controls/editor/editform.js b/src/controls/editor/editform.js index 191411bc6..6d5ac9130 100644 --- a/src/controls/editor/editform.js +++ b/src/controls/editor/editform.js @@ -50,16 +50,16 @@ const createForm = function createForm(obj) { switch (type) { case 'text': // Create a text input - el = `
`; + el = `
`; break; case 'textarea': // Create a textarea - el = `
`; + el = `
`; break; case 'checkbox': // Create a checkbox checked = (obj.config && obj.config.uncheckedValue ? obj.config.uncheckedValue !== val : val) ? ' checked' : ''; - el = `
`; + el = `
`; break; case 'checkboxgroup': // Create a group of checkboxes @@ -79,12 +79,12 @@ const createForm = function createForm(obj) { } textboxVal = checked ? matchingValue.split(`${freetextOptionValueSeparator}`)[1] : ''; disable = checked ? '' : ' disabled'; - el += ` ${option}: `; - el += ``; + el += ` ${option}: `; + el += ``; el += '
'; } else { checked = val.includes(value.trim()) ? ' checked' : ''; - el += ` ${option}
`; + el += ` ${option}
`; } }); el += '
'; @@ -96,7 +96,7 @@ const createForm = function createForm(obj) { } else { firstOption = ''; } - el = `