diff options
author | fenn-cs <fenn25.fn@gmail.com> | 2023-06-29 00:17:19 +0100 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2023-06-30 11:47:21 +0000 |
commit | b83aaed283b9d6813555bf32702ace8254472ad2 (patch) | |
tree | ce25624601a043d03d495c6778b66113c7b6531b /core/src/OC | |
parent | b1797842784b250fb01ed5e3bf130705eb94751b (diff) | |
download | nextcloud-server-b83aaed283b9d6813555bf32702ace8254472ad2.tar.gz nextcloud-server-b83aaed283b9d6813555bf32702ace8254472ad2.zip |
Update aria-expanded attribute for sidebar apps-slide-toggles
Some apps which use the machanism provided in `core/src/OC/apps.js`
for toggle slide up/down in the side bar would equally rely on same for
`aria-expanded` state change.
For example : https://github.com/nextcloud/activity/pull/1230
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'core/src/OC')
-rw-r--r-- | core/src/OC/apps.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/OC/apps.js b/core/src/OC/apps.js index bbda177409e..9f0ae217526 100644 --- a/core/src/OC/apps.js +++ b/core/src/OC/apps.js @@ -90,6 +90,7 @@ export const registerAppsSlideToggle = () => { }) area.removeClass('opened') $(button).removeClass('opened') + $(button).attr('aria-expanded', 'false') } /** @@ -101,6 +102,7 @@ export const registerAppsSlideToggle = () => { }) area.addClass('opened') $(button).addClass('opened') + $(button).attr('aria-expanded', 'true') const input = $(areaSelector + ' [autofocus]') if (input.length === 1) { input.focus() |