diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-04-19 14:47:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-19 14:47:17 +0200 |
commit | 0bae516c66efe9004d0a8ff504e0deb0069fc9d9 (patch) | |
tree | 386c7cd07dd0063800716ca2531343258d01ddd7 /core/js/js.js | |
parent | 4d71e12a43a0d9f0d51fc95f199e217692e7ca41 (diff) | |
parent | 0f9ba852bc7e8bafecbd0bcd73099892645ac79e (diff) | |
download | nextcloud-server-0bae516c66efe9004d0a8ff504e0deb0069fc9d9.tar.gz nextcloud-server-0bae516c66efe9004d0a8ff504e0deb0069fc9d9.zip |
Merge pull request #9224 from nextcloud/accessibility-improvements
Add labels for Contacts menu and Settings, thanks to @MarcoZehe
Diffstat (limited to 'core/js/js.js')
-rw-r--r-- | core/js/js.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/js/js.js b/core/js/js.js index 3d5f489895d..d7975804f4b 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -702,6 +702,9 @@ var OCP = {}, $menuEl.parent().addClass('openedMenu'); } + // Set menu to expanded + $toggle.attr('aria-expanded', true); + $menuEl.slideToggle(OC.menuSpeed, toggle); OC._currentMenu = $menuEl; OC._currentMenuToggle = $toggle; @@ -736,6 +739,10 @@ var OCP = {}, } }); } + + // Set menu to closed + $('.menutoggle').attr('aria-expanded', false); + $('.openedMenu').removeClass('openedMenu'); OC._currentMenu = null; OC._currentMenuToggle = null; |