File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed
packages/kit-headless/src/components/modal Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ export default component$(
64
64
return (
65
65
< header
66
66
class = { [
67
- `fixed top-0 z-20 flex h-20 w-full items-center gap-8 border-b-[1px] border-slate-200 bg-white p-4 dark:border-slate-800 dark:bg-slate-900 md:h-20` ,
67
+ `sticky top-0 z-20 flex h-20 w-full items-center gap-8 border-b-[1px] border-slate-200 bg-white p-4 dark:border-slate-800 dark:bg-slate-900 md:h-20` ,
68
68
`shadow-light-low dark:shadow-dark-medium` ,
69
69
rootStore . isSidebarOpened
70
70
? 'bg-blue-200 brightness-75 dark:bg-indigo-900'
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export default component$(() => {
27
27
< >
28
28
< Header showBottomBorder = { true } showVersion = { true } />
29
29
< QwikUIProvider >
30
- < div class = "setup-grid-areas lg:grid-cols-custom-lg 2xl:grid-cols-custom-2xl mt-20 grid" >
30
+ < div class = "setup-grid-areas lg:grid-cols-custom-lg 2xl:grid-cols-custom-2xl grid" >
31
31
< DocsNavigation linksGroups = { menuItemsGroups } />
32
32
< main class = "docs [grid-area:main]" >
33
33
< Slot />
Original file line number Diff line number Diff line change @@ -25,9 +25,6 @@ export function activateFocusTrap(focusTrap: FocusTrap | null) {
25
25
}
26
26
}
27
27
28
- /**
29
- * Deactivates the given FocusTrap
30
- */
31
28
export function deactivateFocusTrap ( focusTrap : FocusTrap | null ) {
32
29
focusTrap ?. deactivate ( ) ;
33
30
focusTrap = null ;
@@ -84,14 +81,14 @@ export function overrideNativeDialogEscapeBehaviorWith(continuation: () => void)
84
81
} ;
85
82
}
86
83
87
- /*
84
+ /**
88
85
* Adds CSS-Class to support modal-opening-animation
89
86
*/
90
87
export function supportShowAnimation ( modal : HTMLDialogElement ) {
91
88
modal . classList . add ( 'modal-showing' ) ;
92
89
}
93
90
94
- /*
91
+ /**
95
92
* Listens for animation/transition events in order to
96
93
* remove Animation-CSS-Classes after animation/transition ended.
97
94
*/
@@ -105,14 +102,14 @@ export function supportClosingAnimation(
105
102
const { animationDuration, transitionDuration } = getComputedStyle ( modal ) ;
106
103
107
104
const runAnimationEnd = ( ) => {
108
- clearAllBodyScrollLocks ( ) ;
109
105
modal . classList . remove ( 'modal-closing' ) ;
106
+ clearAllBodyScrollLocks ( ) ;
110
107
afterAnimate ( ) ;
111
108
} ;
112
109
113
110
const runTransitionEnd = ( ) => {
114
- clearAllBodyScrollLocks ( ) ;
115
111
modal . classList . remove ( 'modal-closing' ) ;
112
+ clearAllBodyScrollLocks ( ) ;
116
113
afterAnimate ( ) ;
117
114
} ;
118
115
You can’t perform that action at this time.
0 commit comments