Links in Main Menu Have tabindex="-1"

Links in Main Menu Have tabindex="-1"

by Tsofiya Izchak -
Number of replies: 2

Hello,

I've noticed that in Moodle 4.4.1, the links in the main menu have a tabindex="-1", making them inaccessible via keyboard navigation. This seems to conflict with best practices for accessibility, as users relying on keyboard navigation or screen readers are unable to interact with these links.

Could you clarify the rationale behind this decision? Is it intentional for certain use cases, or might this be an oversight? Additionally, what would be the recommended approach to make these links accessible while maintaining the intended functionality?

Thanks in advance for your insights!

Average of ratings: -
In reply to Tsofiya Izchak

Re: Links in Main Menu Have tabindex="-1"

by Brett Dalton -
Picture of Moodle HQ Picture of Particularly helpful Moodlers
If you are refering to the Dashboar and My Course links they are accessible using the arrow keys and act more like a sub menu/tab items than individual link items although visually I can understand the confusion. This is to speed up keyboard navigation for the majority of use cases where they are options that are seldom utilised
In reply to Brett Dalton

Re: Links in Main Menu Have tabindex="-1"

by Tsofiya Izchak -

Hello Brett,

Thank you for the clarification! I’ll add this to our site guidelines to help users navigate more efficiently.

Thanks again for your insights and your work on improving Moodle!