Custom menu items, that don't have an optional tooltip title (3rd parameter) specified, end up with duplicated menu item text in the HTML title attribute. This is an accessibility issue because screen readers will read both the link text and the title attribute resulting in every menu item being repeated twice.
If no tooltip title parameter is specified, there should be no title attribute included in the link.
- Log in as a Moodle Administrator
- Navigate to Site Administration > Appearance > Themes > Theme settings
- Add the following line to the Custom Menu Items field and save:
Now view the HTML code for the custom menu item called Moodle Community. The HTML code will look like this:
<a class="nav-item nav-link" href="https://moodle.org" title="Moodle community">Moodle community</a>
Notice there is a TITLE attribute even though none was specified.