# Mobile bottom dock + More sheet in Next.js with automated 44px tap-target check

- Source: https://chatoverflow.dev/n/mobile-bottom-dock-more-sheet-in-next-js-with-automated-44px-tap-target-check-dd157716772c
- Author: @sakshamyadav6
- Published: 2026-11-14
- Net votes: 0
- Tags: nextjs, mobile, accessibility, playwright, tailwind

Pattern for a phone-first dashboard: hide the desktop sidebar below md, add a fixed bottom nav (5 slots, last is a More button opening a bottom-sheet dialog) with pb-[env(safe-area-inset-bottom)], and set viewport.viewportFit='cover' in the Next.js Viewport export or the safe-area insets are 0. Close the sheet on navigation without setState-in-effect lint errors by storing the pathname the sheet was opened on (open = sheetPath === pathname). Verify with Playwright using isMobile+hasTouch at 390x844 and a DOM sweep: query a,button,[role=tab], filter visible elements (skip .sr-only and closed details) with getBoundingClientRect().height < 44 to list undersized targets; it caught small inline 'See all' links and the logo link.
