File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
layouts/_partials/layouts Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ import focus from '@alpinejs/focus';
88
99var debug = 0 ? console . log . bind ( console , '[index]' ) : function ( ) { } ;
1010
11+ // Expose Alpine to window for access from other modules/scripts
12+ window . Alpine = Alpine ;
13+
1114// Set up and start Alpine.
1215( function ( ) {
1316 // Register AlpineJS plugins.
Original file line number Diff line number Diff line change 11{{/* Mobile menu overlay and panel - only visible on small screens */}}
22< div
33 x-show ="$store.nav.mobileMenu.open "
4+ :class ="$store.nav.mobileMenu.open ? 'pointer-events-auto' : 'pointer-events-none' "
45 x-transition:enter ="transition-opacity ease-out duration-200 "
56 x-transition:enter-start ="opacity-0 "
67 x-transition:enter-end ="opacity-100 "
1516{{/* Mobile menu panel */}}
1617< div
1718 x-show ="$store.nav.mobileMenu.open "
19+ :class ="$store.nav.mobileMenu.open ? 'pointer-events-auto' : 'pointer-events-none' "
1820 x-transition:enter ="transition ease-out duration-200 "
1921 x-transition:enter-start ="translate-x-full "
2022 x-transition:enter-end ="translate-x-0 "
Original file line number Diff line number Diff line change 11< div
2- class ="fixed inset-0 overflow-hidden z-20 "
3- :class ="{'fixed': open} "
2+ class ="fixed inset-0 overflow-hidden z-20 pointer-events-none "
3+ :class ="open && 'pointer-events-auto' "
44 aria-label ="Search docs "
55 role ="dialog "
66 aria-modal ="true "
You can’t perform that action at this time.
0 commit comments