diff options
Diffstat (limited to 'apps/theming/js')
-rw-r--r-- | apps/theming/js/3rdparty/jscolor/jscolor.js | 2 | ||||
-rw-r--r-- | apps/theming/js/settings-admin.js | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/apps/theming/js/3rdparty/jscolor/jscolor.js b/apps/theming/js/3rdparty/jscolor/jscolor.js index cad36eab92a..9e6e8db8853 100644 --- a/apps/theming/js/3rdparty/jscolor/jscolor.js +++ b/apps/theming/js/3rdparty/jscolor/jscolor.js @@ -1354,6 +1354,7 @@ var jsc = { function detachPicker () { + THIS.targetElement.setAttribute('aria-expanded', 'false'); jsc.unsetClass(THIS.targetElement, THIS.activeClass); jsc.picker.wrap.parentNode.removeChild(jsc.picker.wrap); delete jsc.picker.owner; @@ -1361,6 +1362,7 @@ var jsc = { function drawPicker () { + THIS.targetElement.setAttribute('aria-expanded', 'true'); // At this point, when drawing the picker, we know what the parent elements are // and we can do all related DOM operations, such as registering events on them diff --git a/apps/theming/js/settings-admin.js b/apps/theming/js/settings-admin.js index 7efdab6dda4..b33beda43d8 100644 --- a/apps/theming/js/settings-admin.js +++ b/apps/theming/js/settings-admin.js @@ -98,6 +98,7 @@ window.addEventListener('DOMContentLoaded', function () { // manually instantiate jscolor to work around new Function call which violates strict CSP var colorElement = $('#theming-color')[0]; + colorElement.setAttribute('aria-expanded', 'false'); var jscolor = new window.jscolor(colorElement, {hash: true}); $('#theming .theme-undo').each(function() { |