Skip to content

Add tabindex -1 to UL to register clicks inside UL

Jay Huskins requested to merge ul-clickable into main

When menu disclosure is enabled, the JS is set to hide the menu when the user clicks away from it. For this to work properly, we need to register empty clicks inside the menu UL. This is done by adding tabindex=-1 to the UL element, so that it is registered as a tab-able element, but not included in the tab order.

Merge request reports

Loading