diff --git a/app/components/AppShell.tsx b/app/components/AppShell.tsx index b329e94..2e28e3f 100644 --- a/app/components/AppShell.tsx +++ b/app/components/AppShell.tsx @@ -20,7 +20,7 @@ import { AnimatedBaseLogo, BaseMark } from './ui/AnimatedBaseLogo'; import { Breadcrumb } from './ui/Breadcrumb'; import { cn } from './ui/cn'; import { AnimatedArrowIcon, CloseIcon } from './ui/icons'; -import { Text } from './ui/Text'; +import { Text, textVariantClasses } from './ui/Text'; const SIDEBAR_WIDTH = 248; /** Matches base.org's nav logo size, which the animation timings are tuned for. */ @@ -84,7 +84,6 @@ const styles: Record = { gap: 10, padding: '9px 10px', borderRadius: 8, - fontSize: 14, }, navIcon: { display: 'inline-flex', width: 20, height: 20 }, soon: { @@ -293,14 +292,7 @@ function NavRow({ icon, label, href, active, enabled, hasChildren, onNavigate }: )} - - {label} - + {label} {!enabled && Soon} {hasChildren && ( @@ -318,13 +310,13 @@ function NavRow({ icon, label, href, active, enabled, hasChildren, onNavigate }: }; if (!enabled) { - return
{content}
; + return
{content}
; } return ( { if (opensInNewTab(event)) return; @@ -385,8 +377,12 @@ const APP_BANNER_HEIGHT = '2.25rem'; // slipped through), so it just has to be longer than a slow route. const PENDING_PATH_TIMEOUT_MS = 5000; +const TEXT_TRIM = '[text-box-trim:trim-both] [text-box-edge:cap_alphabetic]'; + +const NAV_LABEL = `${textVariantClasses['label.medium']} box-content min-h-[1lh] ${TEXT_TRIM}`; + const SIDEBAR_FOOTER_LINK = - 'group outline-none text-bds-gray-50 transition-colors duration-150 hover:text-bds-gray-80'; + `group outline-none ${NAV_LABEL} text-bds-gray-50 transition-colors duration-150 hover:text-bds-gray-80`; const SIDEBAR_FOOTER_LINK_LABEL = 'inline-flex items-center gap-2.5 rounded-lg group-focus-visible:outline group-focus-visible:outline-2 group-focus-visible:outline-offset-2 group-focus-visible:outline-brand-blue'; @@ -515,7 +511,7 @@ function SidebarContent({ dark, onToggleTheme, onNavigate, hideBrand }: SidebarC > { if (opensInNewTab(event)) return; @@ -543,7 +539,7 @@ function SidebarContent({ dark, onToggleTheme, onNavigate, hideBrand }: SidebarC className="transition-[stroke-dashoffset] duration-200 ease-out group-hover:[stroke-dashoffset:0]" /> - {activeParent.label} + {activeParent.label}