An open source design system that's fully customizable and agent ready
TypeScript
docs: TabList scrolls its overflow, and MobileNav is a drawer (#8100)
Christopher Chedeauee98ff9a8fb7
diff --git a/.changeset/tab-and-drawer-doc-claims.md b/.changeset/tab-and-drawer-doc-claims.mdnew file mode 100644index 0000000000..25ac4846de--- /dev/null+++ b/.changeset/tab-and-drawer-doc-claims.md@@ -0,0 +1,8 @@+---+'@astryxdesign/core': patch+'@astryxdesign/cli': patch+---++[docs] TabList's description no longer promises a built-in "more" menu: a strip narrower than its tabs scrolls horizontally and keeps the selected tab in view (`TabMenu` stays the way to group extra options). The library page template describes `MobileNav` as the slide-out navigation drawer it is, not as a bottom tab bar.++@vjeuxdiff --git a/packages/cli/assets/templates/pages/library/page.tsx b/packages/cli/assets/templates/pages/library/page.tsxindex a34ab0bef0..b24fc7e494 100644--- a/packages/cli/assets/templates/pages/library/page.tsx+++ b/packages/cli/assets/templates/pages/library/page.tsx@@ -193,8 +193,7 @@ const ITEMS: LibraryItem[] = [{id: '18',name: 'MobileNav',- description:- 'Bottom tab bar for mobile viewports with icon and label slots.',+ description: 'Slide-out navigation drawer for mobile viewports.',category: 'Navigation',type: 'Pattern',imageUrl:diff --git a/packages/core/src/TabList/TabList.doc.mjs b/packages/core/src/TabList/TabList.doc.mjsindex 701b56be91..ea7f239ef7 100644--- a/packages/core/src/TabList/TabList.doc.mjs+++ b/packages/core/src/TabList/TabList.doc.mjs@@ -115,7 +115,7 @@ export const docs = {},],description:- 'TabList provides tab-style navigation for organizing content into categorized sections. Use it to let users switch between related views without leaving the page, with overflow items handled by a built-in "more" menu.',+ 'TabList provides tab-style navigation for organizing content into categorized sections. Use it to let users switch between related views without leaving the page. A strip narrower than its tabs scrolls horizontally and keeps the selected tab in view.',bestPractices: [{ guidance: true, description: 'Keep tab labels short and descriptive so users can quickly scan available sections.' },{ guidance: true, description: 'Leave overflow handling on: a strip narrower than its tabs scrolls, and the selected tab is kept in view. Use TabMenu when you want a curated group of extra options rather than a scrolling strip.' },@@ -138,7 +138,7 @@ export const docs = {export const docsZh = {usage: {description:- 'TabList provides tab-style navigation for organizing content into categorized sections. Use it to let users switch between related views without leaving the page, with overflow items handled by a built-in "more" menu.',+ 'TabList provides tab-style navigation for organizing content into categorized sections. Use it to let users switch between related views without leaving the page. A strip narrower than its tabs scrolls horizontally and keeps the selected tab in view.',bestPractices: [{ guidance: true, description: 'Keep tab labels short and descriptive so users can quickly scan available sections.' },{ guidance: true, description: 'Leave overflow handling on: a strip narrower than its tabs scrolls, and the selected tab is kept in view. Use TabMenu when you want a curated group of extra options rather than a scrolling strip.' },@@ -162,7 +162,7 @@ export const docsDense = {description: 'Tab strip w/ overflow scrolling; nav landmark by default, WAI-ARIA tabs pattern under role="tablist".',usage: {description:- 'TabList provides tab-style navigation for organizing content into categorized sections. Use it to let users switch between related views without leaving the page, with overflow items handled by a built-in "more" menu.',+ 'TabList provides tab-style navigation for organizing content into categorized sections. Use it to let users switch between related views without leaving the page. A strip narrower than its tabs scrolls horizontally and keeps the selected tab in view.',bestPractices: [{ guidance: true, description: 'Keep tab labels short and descriptive so users can quickly scan available sections.' },{ guidance: true, description: 'Leave overflow handling on: a strip narrower than its tabs scrolls, and the selected tab is kept in view. Use TabMenu when you want a curated group of extra options rather than a scrolling strip.' },