Kunena Menu
Accessibility
6 months 2 hours ago - 6 months 1 hour ago #76506
by Aks
Replied by Aks on topic Accessibility
Thank you very much for checking. It seems that another one of my assumptions turned out to be wrong. It's difficult trying to figure out what things are supposed to do in terms of accessibility. I haven't found a good documentation yet. Sorry to have troubled you.
But is the "nav" label or landmark that it seems to look for not the menu?
But is the "nav" label or landmark that it seems to look for not the menu?
Last edit: 6 months 1 hour ago by Aks.
Please Log in or Create an account to join the conversation.
5 months 4 weeks ago #76507
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Accessibility
no problem, it's also interesting for me to understand
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
5 months 4 weeks ago #76508
by Aks
Replied by Aks on topic Accessibility
Hi Cedric,
I hope you don't mind my doing this, but I managed to get it to work with a template override withsome a lot of help from Gemini, the override file in my case being:
"/templates/cassiopeia_extended/html/mod_maximenuck/default.php" in template "cassiopeia_extended".
I suppose the original file would be: modules/mod_maximenuck/tmpl/default.php
The change was to replace this near the beginning:
<div class="<?php echo $orientation_class . ' ' . $langdirection ?><?php echo $maximenufixedclass ?>" id="<?php echo $params->get('menuid', 'maximenuck'); ?>" style="z-index:<?php echo $params->get('zindexlevel', '10'); ?>;">
with this:
<nav id="skip-target-<?php echo $params->get('menuid', 'maximenuck'); ?>" aria-label="Main Menu" tabindex="-1">
<div class="<?php echo $orientation_class . ' ' . $langdirection ?><?php echo $maximenufixedclass ?>" id="<?php echo $params->get('menuid', 'maximenuck'); ?>" style="z-index:<?php echo $params->get('zindexlevel', '10'); ?>;">
(i.e; adding the needed <nav> wrapper to the menu.)
and
changing the end from:
</ul>
</div>
to:
</ul>
</div>
</nav>
At least, this seems to work. Whether you consider this to be acceptable and not create other problems is another question!.
I hope you don't mind my doing this, but I managed to get it to work with a template override with
"/templates/cassiopeia_extended/html/mod_maximenuck/default.php" in template "cassiopeia_extended".
I suppose the original file would be: modules/mod_maximenuck/tmpl/default.php
The change was to replace this near the beginning:
<div class="<?php echo $orientation_class . ' ' . $langdirection ?><?php echo $maximenufixedclass ?>" id="<?php echo $params->get('menuid', 'maximenuck'); ?>" style="z-index:<?php echo $params->get('zindexlevel', '10'); ?>;">
with this:
<nav id="skip-target-<?php echo $params->get('menuid', 'maximenuck'); ?>" aria-label="Main Menu" tabindex="-1">
<div class="<?php echo $orientation_class . ' ' . $langdirection ?><?php echo $maximenufixedclass ?>" id="<?php echo $params->get('menuid', 'maximenuck'); ?>" style="z-index:<?php echo $params->get('zindexlevel', '10'); ?>;">
(i.e; adding the needed <nav> wrapper to the menu.)
and
changing the end from:
</ul>
</div>
to:
</ul>
</div>
</nav>
At least, this seems to work. Whether you consider this to be acceptable and not create other problems is another question!.
Please Log in or Create an account to join the conversation.
5 months 4 weeks ago #76509
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Accessibility
Thanks. I have added this support in the 10.2.8 version that I have released. Please test it and let me know
for info you can control the aria-label text with the option Advanced >> accessibility >> aria label
for info you can control the aria-label text with the option Advanced >> accessibility >> aria label
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
5 months 4 weeks ago #76510
by Aks
Replied by Aks on topic Accessibility
Wow, thank you very much, Cedric; I installed the new version, removed the template override, (cleared the cache), and it seems to work fine.
Please Log in or Create an account to join the conversation.
5 months 4 weeks ago #76511
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Accessibility
great
thank you for your feedback
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
Time to create page: 0.209 seconds



