From b83aaed283b9d6813555bf32702ace8254472ad2 Mon Sep 17 00:00:00 2001 From: fenn-cs Date: Thu, 29 Jun 2023 00:17:19 +0100 Subject: 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 Signed-off-by: nextcloud-command --- core/src/OC/apps.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/src/OC') 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() -- cgit v1.2.3