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:
@@ -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()
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user