Skip to content

fix(NavMenu,Overlay): file headers, BaseProps, hover guard, export hygiene - #2949

Merged
cixzhang merged 1 commit into
mainfrom
navi/component-audit/2026-06-20
Jun 21, 2026
Merged

cixzhang merged 1 commit into
mainfrom
navi/component-audit/2026-06-20

Conversation

@cixzhang

Copy link
Copy Markdown
Contributor

Component Audit: NavMenu, Overlay, MultiSelector, Outline, OverflowList

Audited 5 components. MultiSelector, Outline, and OverflowList passed clean. Fixes for NavMenu and Overlay:

NavMenu

  • Add @file headers to NavHeadingMenu.tsx, NavHeadingMenuItem.tsx, NavMenuContext.tsx, NavMenuItem.tsx
  • Guard :hover background on NavHeadingMenuItem with @media (hover: hover) to prevent sticky hover on touch devices

Overlay

  • OverlayProps now extends Pick<BaseProps, 'xstyle' | 'className' | 'style'> instead of re-declaring those props manually
  • Add 'use client' directive to Overlay/index.ts (re-exports hooks using client APIs)
  • Export OverlayContainerProps type from index.ts (consumers need it when typing useOverlay results)
  • Regenerate compat-aliases to include XDSOverlayContainerProps

Needs Review

  • OverlayScrim uses a hardcoded color-mix(in srgb, white 60%, transparent) for the light scrim. Existing TODO says it needs a --color-overlay-light token. Not fixed here because it requires a token design decision.

Night Watch \u2014 Component Auditor

@cixzhang cixzhang added the hardening Component hardening and quality sweep label Jun 20, 2026
@vercel

vercel Bot commented Jun 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
xds-sandbox Ignored Ignored Jun 20, 2026 10:18am

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jun 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Vercel Preview Deployment

Status ✅ Deployed
Preview Open Preview
Commit 716d1c3
Inspect Vercel Dashboard
Workflow View Logs

No authentication required — anyone with the link can view the preview.

@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

🧪 Sandbox Preview

View Sandbox for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

No new or modified components detected.

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@xds/core N/A 4.6KB 0B

Accessibility Audit

Status: No accessibility violations detected.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

@cixzhang
cixzhang merged commit feaa10a into main Jun 21, 2026
21 checks passed
@cixzhang
cixzhang deleted the navi/component-audit/2026-06-20 branch June 21, 2026 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. hardening Component hardening and quality sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant