Changed the appearance of menu, both desktop and mobile.

On desktop, the navigation menu will display normally instead of being wrapped in a modal.
On mobile, the dialog has been refined to remove the widget areas to provide better accessibilty. A focus trap is also implemented to improve accessibility.
This commit is contained in:
Frank419
2024-08-27 17:43:11 +08:00
parent c524031003
commit e467a7032d
3 changed files with 181 additions and 287 deletions
+8
View File
@@ -7,4 +7,12 @@ jQuery(document).ready(function($){
e.preventDefault()
})
$("body").removeClass("loading")
$(".menu-item-has-children").click(function(e){
e.preventDefault()
$(this).toggleClass("active")
$(this).parent().parent().toggleClass("active")
})
$("#minimalistflex-menu-focus-hack").focus(function(){
$("#menu-toggle").focus()
})
})