Skip to content

Conversation

jackmcdade
Copy link
Member

@jackmcdade jackmcdade commented Oct 15, 2025

They now look/act more like the ill-fated Drawers component. Nothing major, just nicer built-in style, smooth animation, etc.


Note

Restyles Stacks with fixed, polished overlay/content, new slide/opacity transitions, and delayed mount/unmount behavior.

  • UI/Behavior
    • Mount lifecycle: Teleport now renders when mounted (not visible); sets mounted on mount and clears it after close; visible toggled on nextTick for smooth entry.
    • Close flow: close() now unmounts (mounted = false) after animation delay before emitting closed.
  • Styles/Animation
    • Overlay: Replaced with fixed full-screen backdrop (bg-gray-800/20 dark bg-gray-800/50 + slight blur); overlay CSS simplified to pointer-events-none; new fade classes stack-overlay-fade-*.
    • Slide transitions: Introduces stack-slide-* enter/leave active/from rules with transform/opacity; uses percentage-based translate with RTL support.
    • Content panel: Now fixed, rounded, shadowed, overflow-auto, and transition-optimized; supports full inset; hover offset applied via -translate-x-4 rtl:translate-x-4.
    • Hit area: Adds cursor-pointer.
  • Class bindings
    • Removes container hovering and full styling responsibilities; shifts styling to content panel classes; keeps stack-is-current only on container.

Written by Cursor Bugbot for commit b680e56. This will update automatically on new commits. Configure here.

Animate hover state on below-top layers
@jackmcdade jackmcdade requested a review from jasonvarga October 15, 2025 20:53
@duncanmcclean
Copy link
Member

Should the Stack component be moved to the UI package?

@jasonvarga
Copy link
Member

Yes but we can do that separately

@jasonvarga jasonvarga merged commit e7b5794 into master Oct 16, 2025
18 checks passed
@jasonvarga jasonvarga deleted the stacks-facelift branch October 16, 2025 13:59
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.

3 participants