diff options
author | Aleksander Machniak <alec@alec.pl> | 2022-04-30 09:16:57 +0300 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2022-04-30 09:16:57 +0300 |
commit | fbed6bb0744abf744ed59aca0a847b751977785e (patch) | |
tree | ff6390868ec70ba41ca3b702ed98b2b48683d25d | |
parent | 9d051a30509ae819bca4624038cf5cd8659d873c (diff) |
Fix problem with aria-hidden=true on toolbar menus in the Elastic skin (#8517)
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | skins/elastic/ui.js | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b067b7b4..775319227 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ - Fix bug where session could time out if DB and PHP timezone were different (#8303) - Fix bug where DSN flag state wasn't stored with a draft (#8371) - Fix broken encoding of HTML content encapsulated in a RTF attachment (#8444) +- Fix problem with aria-hidden=true on toolbar menus in the Elastic skin (#8517) ## Release 1.6-beta diff --git a/skins/elastic/ui.js b/skins/elastic/ui.js index e52511d62..605e64b41 100644 --- a/skins/elastic/ui.js +++ b/skins/elastic/ui.js @@ -2478,7 +2478,11 @@ function rcube_elastic_ui() $(item).attr('title', title); } - popup.attr('aria-hidden', 'true').data('button', item); + if (is_mobile() || !popup.is('.toolbar')) { + popup.attr('aria-hidden', 'true'); + } + + popup.data('button', item); // stop propagation to e.g. do not hide the popup when // clicking inside on form elements |