Repository navigation
Description
Problem
Astryx has strong responsive primitives in places — useMediaQuery, an AppShell that collapses to MobileNav, lab:Drawer sheets, @media (hover: hover) guards, dynamic viewport units (dvh) — but there is no cohesive responsive-web system. Breakpoint logic is hand-rolled per consumer with a client hook, so it doesn't hold up under RSC/SSR (server renders the desktop tree, then flips on hydration). Mobile affordances (bottom sheet, swipe/gesture dismissal, safe-area insets, hover→tap conversion, on-screen-keyboard handling) are missing or partial, and there's no documented contract for how components should behave across breakpoints.
This is the Q3 push to make Astryx responsive-first: a server-safe breakpoint system, first-class mobile components and gestures, and the guidance/rubric to keep it healthy over time.
This is a tracker. Each item is (or will be) filed as its own issue and lands via the normal issue → API → PR flow. Checked = shipped; linked issues exist; unlinked items still need filing.
Breakpoint system (server-safe, CSS-first)
The core architectural bet: default to CSS-first breakpoints (@media / @container in StyleX, declarative hideBelow/showBelow-style props) so responsive layout renders correctly on the server with no hydration flash, and reserve the useMediaQuery JS hook for genuinely behavioral cases in small client islands.
- CSS-first responsive panel visibility — replace hand-rolled
useMediaQueryhiding — LayoutPanel: responsive hideBelow prop (replace hand-rolled useMediaQuery panel hiding in templates) #3339 - Responsive prop values for layout (breakpoint-keyed sizing/spacing) — targeting layouts
- Responsive
ratioon AspectRatio — XDSAspectRatio: support a responsiveratio(forces double-element workarounds today) #2798 - Responsive
type/sizeon Heading/Text (fluid typography) — XDSHeading/XDSText: no responsivetype/sizeprop — fluid display headlines require a hand-written @media override #2580 - Container layout primitive with responsive gutters — Add a Container layout primitive (centered max-width column with responsive gutters) — no current primitive covers it; Section doesn't center and only takes discrete padding #3492
- Named breakpoint scale exposed to consumers (align to
AppShellsm/md/lg)
Mobile components & gestures
- Sheet / Drawer component API — layer integration + optional mobile swipe — [RFC] Sheet component — API review (evaluate DJ's Drawer draft: layer integration + optional mobile swipe) #3675
- Sheet / Drawer slide-out panel (harden the existing
lab:Drawer) — XDSSheet / XDSDrawer — slide-out panel (318 combined usages) #575, XDS: no Drawer/Sheet component for side-anchored slide-in panels #2575 - Bottom sheet: grab handle + swipe-to-dismiss + snap points (net-new; the current Drawer sheet dismisses only via scrim/Escape/close)
- Safe-area insets (
env(safe-area-inset-*)+viewport-fit=cover) for bottom-anchored UI - On-screen-keyboard-aware layout for sheets/composers (
interactive-widget+ keyboard insets) - Floating action button (FAB) pattern
- Top nav mega menu overflows — the menu doesn't fit/scroll below a breakpoint and content is clipped — fix(TopNav): clamp mega menu panel to viewport width #4558
Hover, touch & pointer behavior
- Mobile access for HoverCard and Tooltip — touch has no path to reveal them — Mobile access for HoverCard and Tooltip (touch has no path to reveal them) #3885
- Hover→tap conversion guidance — documented rubric for when to convert hover affordances on touch
- PowerSearch mobile edit experience — bottom sheet / responsive overlay — PowerSearch: improve the mobile edit-popover experience (bottom sheet / responsive overlay; coordinate with responsive + Sheet work) #4250
- Coarse-pointer target size — a documented minimum and an expansion path for interactive controls under
pointer: coarse, starting atButton(measured 32×32 CSS px in the AlertDialog audit, AlertDialog: night watch component audit, 79.4 C to 89.6 B #4887)
Modals & dialogs on mobile
- Responsive Dialog — auto-adapt to a bottom-sheet/fullscreen presentation below a breakpoint (Dialog has a
fullscreenvariant today but no automatic mobile adaptation)
Responsiveness on RSC
- Make the breakpoint system server-safe end to end (see Breakpoint system above)
- Audit
AppShell'suseMediaQuery-driven mobile split for hydration flash
Theme
- Mobile theme — exploration
Maintenance
- Mobile responsiveness rubric — preserve responsive guidance over time for new components and situations (docs + review checklist)
Related (tracked separately, not owned here)
- [RFC] Platform-aware Astryx — web + native (React Native/Expo) contract — [RFC] Platform-aware Astryx — web + native mobile contract, docs, and Expo integration #3912. Native platform support is a distinct workstream from responsive web; kept separate to avoid constraining the web API to a lowest-common-denominator cross-platform contract.
- [Bug] MobileNav close freezes the page in Safari 26.1 — [Bug] MobileNav close freezes the page in Safari 26.1 #4290. Bugs are tracked on their own; referenced here for visibility.
Deliverables from the responsive-web plan: breakpoint system incl. targeting layouts · mobile theme (exploration) · bottom sheet · hover-behavior guidance · gestures/swipes · modals & dialogs on mobile · responsiveness on RSC · mobile maintenance rubric.
Activity
cixzhang commentedon Aug 11, 2026
Audit reference: coarse-pointer target size (rubric A10)
From the
AlertDialogcomponent audit — #4887, Component Audit Rubric A10. Recording it here rather than against the component, because the root cause is system-level sizing and not an AlertDialog defect.Measured: both AlertDialog footer buttons render 32×32 CSS px at a 390px viewport with touch emulation (
pointer: coarse), driven through real Chromium. That clears the WCAG 2.5.8 floor of 24×24, but nothing expands toward a 44px comfortable target under a coarse pointer — not inButton, and so not in anything that composes it.What it implies for this tracker: a documented minimum target size, plus an expansion path for interactive controls under
pointer: coarse, starting atButton. Added as an item under Hover, touch & pointer behavior.Note for the next audit: A10 is listed as
semi/manualin the rubric's Not yet in force table until a Playwright pass measuring interactive bounding boxes at 320px and underpointer: coarselands in thertl-auditharness.duytbp commentedon Oct 28, 2026
Data for the last item ("Audit
AppShell'suseMediaQuery-driven mobile split for hydration flash") (code read on 0.7.4 and main 84e8552).AppShellchooses between the wide and the phone layout in JS:useMediaQueryis auseSyncExternalStorewhose server snapshot isserverDefault(falseunless the app passesmobileNav={{defaultIsMobile}}). So the server render, and the hydration pass, always produce the wide layout: the inlineSideNavpanel, theTopNavin desktop mode, and no top bar orMobileNavToggle. The phone layout appears only after hydration.A
react-dom/serverrenderToStringcheck of anAppShellwith aSideNavonly (run on 0.7.1; the AppShell code is unchanged in 0.7.4):mobileNavunset: inline side-nav panel rendered, no toggle, no mobile top bar.mobileNav={{defaultIsMobile: true}}: no inline panel, toggle and mobile top bar rendered.On a phone, the first paint therefore shows the SideNav squeezed beside the page and the top nav items in the bar until hydration, and the layout then jumps.
defaultIsMobileis a workable hint where the server knows the device (User-Agent,Sec-CH-UA-Mobile), but a wrong guess flips the other way, and statically rendered or cached pages have no request to read it from. The CSS-first direction in this tracker would fix it at the source: render the layout with@media/@containerrules so the server markup is correct for any viewport, and keep the JS state only for the drawer's open state. If useful, I can file this as its own issue or an RFC for the CSS-first AppShell.