Skip to content

refactor(ui): remove local .btn duplicates in Lifecycle/ContextPreview/Consolidate — use ui/Button (restores :active press feedback, kills transition:all) #247

Description

@ajianaz

Problem

Three components define a local copy of the .btn styles instead of using the shared ui/Button.svelte:

  • src/lib/components/LifecycleView.svelte:389–423
  • src/lib/components/ContextPreviewPanel.svelte (.btn { block, line ~250s)
  • src/lib/components/ConsolidatePanel.svelte (.btn styles)

The local copies lost two things the shared button has:

  1. :active { transform: scale(0.97) } — press feedback (buttons feel dead on these pages)
  2. Explicit transition properties — local copies use transition: all 0.15s ease (LayoutView:395, ContextPreviewPanel:260)

Also MemoryDetail.svelte:452 uses transition: all.

Fix

  • Delete local .btn* blocks; rely on ui/Button classes (btn, btn-sm, btn-primary, btn-secondary are already global via ui/)
  • Where markup uses class="btn btn-primary" it should just work once local overrides are gone — verify paddings still fit
  • Replace transition: all in MemoryDetail:452 with explicit properties

Resolves: press feedback (mobile-UX P24/P38), transition: all (miifb #14), design-system duplication.

Source

Full-app UI audit. Related: hit-area issue (btn-sm sizing).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions