Skip to content

Commit f682f21

Browse files
committed
fix: hamburger menu not tappable on iOS Safari
- Add pointer-events-none to hero blob overlay so animated backgrounds don't intercept touch events on mobile - Add translateZ(0) to header for proper stacking context on iOS Safari (sticky + z-index needs hardware layer promotion)
1 parent c276f74 commit f682f21

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default function Home() {
77
{/* Hero Section */}
88
<section className="relative overflow-hidden">
99
{/* Animated background elements */}
10-
<div className="absolute inset-0 overflow-hidden">
10+
<div className="absolute inset-0 overflow-hidden pointer-events-none">
1111
<div className="absolute -top-40 -right-40 w-80 h-80 bg-purple-500 rounded-full mix-blend-multiply filter blur-xl opacity-20 animate-blob"></div>
1212
<div className="absolute -bottom-40 -left-40 w-80 h-80 bg-blue-500 rounded-full mix-blend-multiply filter blur-xl opacity-20 animate-blob animation-delay-2000"></div>
1313
<div className="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-80 h-80 bg-pink-500 rounded-full mix-blend-multiply filter blur-xl opacity-20 animate-blob animation-delay-4000"></div>

src/components/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default function Header() {
7777
};
7878

7979
return (
80-
<header className="bg-gray-900 border-b border-gray-800 sticky top-0 z-50">
80+
<header className="bg-gray-900 border-b border-gray-800 sticky top-0 z-50" style={{ WebkitTransform: 'translateZ(0)' }}>
8181
<nav className="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8" aria-label="Top">
8282
<div className="flex w-full items-center justify-between py-3">
8383
{/* Logo */}

0 commit comments

Comments
 (0)