@hanzo/ui 3.0.13 → 3.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46,7 +46,7 @@ const ScreenfulComponent: React.FC<{
46
46
  // p&m-modifiers
47
47
  // ]
48
48
  const cwclx = [
49
- 'z-10 xl:mx-auto max-w-screen-xl overflow-y-hidden ',
49
+ 'xl:mx-auto max-w-screen-xl overflow-y-hidden ',
50
50
  // desktop header: 80px / pt-20
51
51
  // mobile header: 44px / pt-11
52
52
  narrowGutters ?
@@ -68,13 +68,13 @@ const ScreenfulComponent: React.FC<{
68
68
  {hasBannerVideo() && (
69
69
  <Video
70
70
  block={b.banner! as VideoBlock}
71
- className='z-0 absolute top-0 left-0 bottom-0 right-0'
71
+ className='absolute top-0 left-0 bottom-0 right-0'
72
72
  initialInView={initialInView}
73
73
  />
74
74
  )}
75
75
  <div className={cn(
76
76
  ...cwclx,
77
- snapTile ? 'absolute z-[1] left-0 right-0 top-0 bottom-0 ' : 'flex min-h-screen w-full',
77
+ snapTile ? 'absolute left-0 right-0 top-0 bottom-0 ' : 'flex min-h-screen w-full',
78
78
  contentClx,
79
79
  vertCenter ? '!py-0 self-center' : ''
80
80
  )}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/ui",
3
- "version": "3.0.13",
3
+ "version": "3.0.15",
4
4
  "description": "Library that contains shared UI primitives, support for a common design system, and other boilerplate support.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -26,7 +26,7 @@ const DrawerOverlay = React.forwardRef<
26
26
  >(({ className, ...props }, ref) => (
27
27
  <DrawerPrimitive.Overlay
28
28
  ref={ref}
29
- className={cn('fixed inset-0 z-20 bg-[#aaffaa]', className)}
29
+ className={cn('fixed inset-0 bg-background opacity-30 backdrop-blur', className)}
30
30
  {...props}
31
31
  />
32
32
  ))
@@ -37,11 +37,12 @@ const DrawerContent = React.forwardRef<
37
37
  React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content>
38
38
  >(({ className, children, ...props }, ref) => (
39
39
  <DrawerPortal>
40
+ {/* If no or same z index, overlay should precede content */}
40
41
  <DrawerOverlay />
41
42
  <DrawerPrimitive.Content
42
43
  ref={ref}
43
- className={cn(
44
- 'fixed inset-x-0 bottom-0 z-[25] mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background',
44
+ className={cn('fixed left-0 right-0 bottom-0 ',
45
+ 'mt-24 flex h-[80%] flex-col rounded-t-[10px] border bg-background',
45
46
  className
46
47
  )}
47
48
  {...props}