An open source design system that's fully customizable and agent ready
TypeScript
fix(core): TopNavMegaMenu anchors to its trigger outside a <nav> (#4905) (#4916)
Ishan Jain3112e9960288
diff --git a/packages/core/src/TopNav/TopNavMegaMenu.doc.mjs b/packages/core/src/TopNav/TopNavMegaMenu.doc.mjsindex 59c69110cf..bc38888408 100644--- a/packages/core/src/TopNav/TopNavMegaMenu.doc.mjs+++ b/packages/core/src/TopNav/TopNavMegaMenu.doc.mjs@@ -7,6 +7,11 @@ export const docs = {subComponentOf: 'TopNav',displayName: 'Top Nav Mega Menu',description: 'Navigation item that displays a full-width mega menu panel on hover. Uses a slots API with items and featured props. TopNavMegaMenuItem renders itself in both desktop and mobile drawer modes. Supports inline collapsible drawer via render mode context.',+ // The panel anchors to the nearest <nav>; wrap the preview in a TopNav so+ // it opens below the bar instead of pinning to the viewport corner (#4905).+ playground: {+ wrapper: {component: 'TopNav'},+ },props: [{name: 'label',