fix(identity): apply safe list styles in modal runtime
This commit is contained in:
@@ -41,6 +41,13 @@
|
|||||||
var input = form && form.querySelector('[data-auth-evidence]');
|
var input = form && form.querySelector('[data-auth-evidence]');
|
||||||
var preview = form && form.querySelector('[data-auth-preview]');
|
var preview = form && form.querySelector('[data-auth-preview]');
|
||||||
if (!form || !input || !preview) return;
|
if (!form || !input || !preview) return;
|
||||||
|
Array.prototype.forEach.call(form.querySelectorAll('ul, ol'), function (list) {
|
||||||
|
var listStyle = list.tagName.toLowerCase() === 'ol' ? 'decimal' : 'disc';
|
||||||
|
list.style.setProperty('list-style-type', listStyle, 'important');
|
||||||
|
list.style.setProperty('list-style-position', 'inside', 'important');
|
||||||
|
list.style.setProperty('padding-left', '8px', 'important');
|
||||||
|
list.style.setProperty('margin-left', '0', 'important');
|
||||||
|
});
|
||||||
shell.setAttribute('aria-labelledby', 'uc-auth-modal-title');
|
shell.setAttribute('aria-labelledby', 'uc-auth-modal-title');
|
||||||
|
|
||||||
var selectedFiles = [];
|
var selectedFiles = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user