summaryrefslogtreecommitdiff
path: root/help3xsl/xap_templ_query.xsl
diff options
context:
space:
mode:
authorIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2023-10-25 18:20:13 +0300
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2023-10-25 18:05:54 +0200
commit4f4db70a67558885482ba33892910f8123f00c03 (patch)
treeef3cf15229add2315375267917a95af3befb35fc /help3xsl/xap_templ_query.xsl
parentc10e043fdaf6ed01727d99dfa3bcccd49ba9c527 (diff)
Improve accessibility of dropdown menus
Now the opened menus can be closed with Esc key, so we conform to the dismissible success criterion in WCAG 2.1: https://www.w3.org/WAI/WCAG21/Understanding/content-on-hover-or-focus.html To simplify things, now the navigation lists are populated upon page load in all cases. Change-Id: I0a7daaea122d3e03de36c322ccb012c546b271e0 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/158429 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> (cherry picked from commit 69f85cbf17c5acb8fb9b38772139c34eea96a772) Reviewed-on: https://gerrit.libreoffice.org/c/help/+/158436 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'help3xsl/xap_templ_query.xsl')
-rw-r--r--help3xsl/xap_templ_query.xsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/help3xsl/xap_templ_query.xsl b/help3xsl/xap_templ_query.xsl
index 51f2fea3cf..3aedf2e1b3 100644
--- a/help3xsl/xap_templ_query.xsl
+++ b/help3xsl/xap_templ_query.xsl
@@ -118,9 +118,9 @@ document.write("<span title=\""+D+" "+T+"\">]]><xsl:apply-templates select="//va
</header>
</div>
<div class="modules">
- <button type="button" data-a11y-toggle="modules-nav" id="modules" onclick="setupModules(']]><xsl:value-of select="$lang"/><![CDATA[');">]]><xsl:value-of select="$ui_module"/><![CDATA[
+ <button type="button" data-a11y-toggle="modules-nav" id="modules" onclick="setupModules(']]><xsl:value-of select="$lang"/><![CDATA[');" aria-haspopup="true" aria-expanded="false" aria-controls="modules-nav">]]><xsl:value-of select="$ui_module"/><![CDATA[
</button>
- <nav id="modules-nav"/><!-- is filled in via setupModules() on demand -->
+ <nav id="modules-nav" hidden=""/><!-- is filled in via setupModules() on demand -->
</div>
<aside class="rightside">
<input id="accordion-1" name="accordion-menu" type="checkbox"/>