mirror of
https://github.com/moodle/moodle.git
synced 2025-04-07 01:12:42 +02:00
Previously the li elements had the treeitem role, which was not invalid, but it meant that when a menu item expanded, the entire li was clickable and clicking anywhere that was not another menu item would cause the (sub)tree to collapse. This patch moves the treeitem role on to the p element (which contains the node name) and uses aria-owns to expand Mad shoutouts to Ryan Wyllie for his assistance 🙌 🌄 ᚳᚱᛒ