mirror of https://github.com/zulip/zulip.git
frontend: Toggle aria-hidden for overlay container visibility.
This commit is contained in:
parent
9904edcd14
commit
c52e964db3
|
@ -57,6 +57,7 @@ exports.open_overlay = function (opts) {
|
|||
open_overlay_name = opts.name;
|
||||
active_overlay = opts.overlay;
|
||||
opts.overlay.addClass('show');
|
||||
opts.overlay.attr("aria-hidden","false");
|
||||
|
||||
close_handler = function () {
|
||||
opts.on_close();
|
||||
|
@ -78,6 +79,7 @@ exports.close_overlay = function (name) {
|
|||
blueslip.debug('close overlay: ' + name);
|
||||
|
||||
active_overlay.removeClass("show");
|
||||
active_overlay.attr("aria-hidden","true");
|
||||
|
||||
if (!close_handler) {
|
||||
blueslip.error("Overlay close handler for " + name + " not properly setup." );
|
||||
|
|
|
@ -54,7 +54,7 @@ var page_params = {{ page_params }};
|
|||
<div id="right-screen" class="screen"></div>
|
||||
<div id="clear-screen" class="screen"></div>
|
||||
|
||||
<div id="settings_overlay_container" class="overlay" data-overlay="settings">
|
||||
<div id="settings_overlay_container" class="overlay" data-overlay="settings" aria-hidden="true">
|
||||
{% include "zerver/settings_overlay.html" %}
|
||||
</div>
|
||||
{% include "zerver/navbar.html" %}
|
||||
|
@ -141,7 +141,7 @@ var page_params = {{ page_params }};
|
|||
{% include "zerver/subscriptions.html" %}
|
||||
{% include "zerver/drafts.html" %}
|
||||
</div><!--/row-->
|
||||
<div class="informational-overlays overlay new-style" data-overlay="informationalOverlays">
|
||||
<div class="informational-overlays overlay new-style" data-overlay="informationalOverlays" aria-hidden="true">
|
||||
<div class="overlay-content">
|
||||
<div class="overlay-tabs">
|
||||
<button class="button no-style exit">×</button>
|
||||
|
|
Loading…
Reference in New Issue