An open source design system that's fully customizable and agent ready
TypeScript
Playground styling fixes (#2983)
Kenton Quatmand40a9788c6fa
diff --git a/apps/docsite/src/app/playground/PlaygroundClient.tsx b/apps/docsite/src/app/playground/PlaygroundClient.tsxindex 097d195bdc..8667714aab 100644--- a/apps/docsite/src/app/playground/PlaygroundClient.tsx+++ b/apps/docsite/src/app/playground/PlaygroundClient.tsx@@ -150,6 +150,10 @@ const s = stylex.create({hidden: {display: 'none',},+ targetingActive: {+ backgroundColor: 'var(--color-background-blue)',+ color: 'var(--color-icon-blue)',+ },shareInput: {width: 300,},@@ -732,7 +736,7 @@ export function PlaygroundClient({defaultIsMobile}: PlaygroundClientProps) {style={{display: 'block', color: 'var(--color-brand)'}}/>}- heading="Playground"+ heading="Home"headingHref="/"xstyle={s.sideNavHeading}/>@@ -741,7 +745,7 @@ export function PlaygroundClient({defaultIsMobile}: PlaygroundClientProps) {xstyle={s.desktopCollapsedSideNav}><SideNavSection title="Playground views" isHeaderHidden><SideNavItem- label="Code"+ label="Code Editor"icon={Code2}isSelected={activeView === 'code'}onClick={() => {@@ -750,7 +754,7 @@ export function PlaygroundClient({defaultIsMobile}: PlaygroundClientProps) {}}/><SideNavItem- label="Theme"+ label="Theme Editor"icon={Palette}isSelected={activeView === 'theme'}onClick={() => {@@ -786,10 +790,7 @@ export function PlaygroundClient({defaultIsMobile}: PlaygroundClientProps) {xstyle={[s.leftPanel, !showEditorPanel && s.hidden]}width={isMobile ? '100%' : editorPanel.size || 440}>{!isMobile && (- <HStack- justify="between"- align="center"- xstyle={s.leftPanelHeader}>+ <HStack justify="between" align="center" xstyle={s.leftPanelHeader}><Heading level={3}>Playground</Heading><HStack gap={2} align="center"><DropdownMenu@@ -866,6 +867,10 @@ export function PlaygroundClient({defaultIsMobile}: PlaygroundClientProps) {size="md"isIconOnlyicon={<Crosshair size={20} />}+ pressedIcon={+ <Crosshair size={20} color="var(--color-icon-blue)" />+ }+ xstyle={isTargeting ? s.targetingActive : undefined}/>}centerContent={diff --git a/apps/docsite/src/app/playground/themeEditor/ColorSwatch.tsx b/apps/docsite/src/app/playground/themeEditor/ColorSwatch.tsxindex 71e8664492..24c16054c8 100644--- a/apps/docsite/src/app/playground/themeEditor/ColorSwatch.tsx+++ b/apps/docsite/src/app/playground/themeEditor/ColorSwatch.tsx@@ -16,7 +16,9 @@ const s = stylex.create({width: 28,height: 28,borderRadius: 6,- border: '1px solid var(--color-border-emphasized)',+ borderWidth: 1,+ borderStyle: 'solid',+ borderColor: 'var(--color-border)',flexShrink: 0,position: 'relative',},