Skip to content

style: refine Drawer spacing, tokens, and close icon#86

Draft
Fernando Jesus (fernandorjesus) wants to merge 3 commits into
mainfrom
style/drawer-spacing-tokens
Draft

style: refine Drawer spacing, tokens, and close icon#86
Fernando Jesus (fernandorjesus) wants to merge 3 commits into
mainfrom
style/drawer-spacing-tokens

Conversation

@fernandorjesus

Copy link
Copy Markdown
Collaborator

Summary

  • Tighten Drawer header/main/footer padding (p-8p-6/px-6 py-4) for a more compact layout
  • Move close icon from icons (CloseIcon) to icons.v2 (XIcon), matching the ongoing lucide migration
  • Align DrawerTitle/DrawerDescription typography with current gray/purple tokens (gray-800/gray-600, smaller sizes)
  • Update stories to match the new header/footer composition (badge + title/description grouped in header, dual footer actions)

Test plan

  • biome ci . — passes (pre-existing unrelated file-size warning only)
  • pnpm run type-check — passes
  • pnpm run test — 2330/2330 passing, Drawer.tsx at 100% coverage
  • pnpm run build — passes

Tighten header/footer/main padding, move close icon to icons.v2 (XIcon),
and align title/description typography with current gray/purple tokens.
Update stories to match the new header/footer composition.
@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
design-system Ready Ready Preview, Comment Jul 22, 2026 8:26pm

Request Review

Add mb-8 to header and drop bottom padding from main; remove leftover
bg-red-500 debug class from FromRight story paragraphs.
Drawer no longer accepts a direction prop and always opens from the
right. DrawerHeader now renders a back button by default (closes the
drawer); passing onBack swaps it for a custom callback instead, and
hideBackButton hides it entirely. Also added an action slot for header
content.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant