An open source design system that's fully customizable and agent ready
TypeScript
fix(docsite): add bottom margin to carousel tablists (#2009)
Cindy Zhang52c1dd52b461
diff --git a/apps/docsite/src/app/craft/page.tsx b/apps/docsite/src/app/craft/page.tsxindex 0bdc0af4d3..a2dbcb0aa4 100644--- a/apps/docsite/src/app/craft/page.tsx+++ b/apps/docsite/src/app/craft/page.tsx@@ -30,6 +30,9 @@ const styles = stylex.create({heroTitle: {textAlign: 'center' as const,},+ carouselTabs: {+ marginBottom: 4,+ },cardImage: {display: 'block',width: '100%',@@ -107,7 +110,11 @@ export default function CraftPage() {</XDSText><XDSCarousel gap={0}>- <XDSTabList value={activeTab} onChange={handleTabChange} size="md">+ <XDSTabList+ value={activeTab}+ onChange={handleTabChange}+ size="md"+ xstyle={styles.carouselTabs}><XDSTabvalue="all"label={`All (${allItems.templates.length + allItems.showcases.length})`}diff --git a/apps/docsite/src/components/ChangelogView.tsx b/apps/docsite/src/components/ChangelogView.tsxindex c7373a4755..81c067eb01 100644--- a/apps/docsite/src/components/ChangelogView.tsx+++ b/apps/docsite/src/components/ChangelogView.tsx@@ -56,6 +56,9 @@ const styles = stylex.create({maxWidth: 960,marginInline: 'auto',},+ carouselTab: {+ marginBottom: 4,+ },});export function ChangelogView({@@ -80,7 +83,12 @@ export function ChangelogView({<XDSTabList value={activeTab} onChange={setActiveTab} hasDivider><XDSCarousel gap={0.5} hasSnap={false}>{changelogs.map(c => (- <XDSTab key={c.pkg} value={c.pkg} label={c.pkg} />+ <XDSTab+ key={c.pkg}+ value={c.pkg}+ label={c.pkg}+ xstyle={styles.carouselTab}+ />))}</XDSCarousel></XDSTabList>