diff options
author | Lukáš Tyrychtr <lukastyrychtr@gmail.com> | 2022-07-26 13:04:46 +0200 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2022-08-03 19:33:12 +0000 |
commit | d760cde5356760f1c677b336dbb378a7716df0f1 (patch) | |
tree | 933781fb0c6a842611efe64b04eae740ee8419f3 /apps/files_external/js | |
parent | 392b08d7611e05a75aa97934ef8ba23a7b8d1f92 (diff) | |
download | nextcloud-server-d760cde5356760f1c677b336dbb378a7716df0f1.tar.gz nextcloud-server-d760cde5356760f1c677b336dbb378a7716df0f1.zip |
Fix accessibility of buttons in the external storage configuration
Note that there is no keyboard only way to close the dropdown
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/files_external/js')
-rw-r--r-- | apps/files_external/js/settings.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js index 0a791001f63..765850e2ef2 100644 --- a/apps/files_external/js/settings.js +++ b/apps/files_external/js/settings.js @@ -715,6 +715,7 @@ MountConfigListView.prototype = _.extend({ }); this.$el.on('click', 'td.mountOptionsToggle>.icon-more', function() { + $(this).attr('aria-expanded', 'true'); self._showMountOptionsDropdown($(this).closest('tr')); }); @@ -1343,6 +1344,7 @@ MountConfigListView.prototype = _.extend({ var mountOptions = dropDown.getOptions(); $('body').off('mouseup.mountOptionsDropdown'); $tr.find('input.mountOptions').val(JSON.stringify(mountOptions)); + $tr.find('td.mountOptionsToggle>.icon-more').attr('aria-expanded', 'false'); self.saveStorageConfig($tr); }); } |