diff options
author | julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> | 2022-08-04 08:45:57 +0200 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2022-08-17 19:28:40 +0000 |
commit | 6d12f8b8a146cf789f924b9c0de16ddd05a92ae4 (patch) | |
tree | 60f1505d4ca2c8bfbdc1649f1b87493f6ec190c5 /apps/theming/js | |
parent | 2f538bb20f7859b2f09d0d088be9ee47c6cdadde (diff) | |
download | nextcloud-server-6d12f8b8a146cf789f924b9c0de16ddd05a92ae4.tar.gz nextcloud-server-6d12f8b8a146cf789f924b9c0de16ddd05a92ae4.zip |
Add ```aria-expanded``` value to select2-container om systemtag and file tags
Add ```aria-expanded``` to color picker
Add ```aria-expanded``` to UnifiedSearch.vue
Add ```aria-expanded``` to new button on files
Add ```aria-expanded``` to action menu
Add ```aria-expanded``` to icon .federation-menu
Add ```aria-expanded``` to app navigation collapse button
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
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() { |