Skip to content

refactor: detached glass manager only tracks/unregisters, callers own DOM removal#90

Merged
ohxyz merged 1 commit into
mainfrom
refactor/detached-glass-manager
Jun 22, 2026
Merged

refactor: detached glass manager only tracks/unregisters, callers own DOM removal#90
ohxyz merged 1 commit into
mainfrom
refactor/detached-glass-manager

Conversation

@ohxyz

@ohxyz ohxyz commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Narrows DetachedGlassManager to registry/z-index concerns; DOM removal (and its close animation) now lives with the callers.

What changed

  • removeDetachedGlassByElement just unregisters now — dropped the animateClose option and the removeDetachedGlassElement call.
  • The close action and removeWindowlessGlass call removeDetachedGlassElement(glassEl, animateClose) directly for the animated DOM removal.
  • Renamed the manager's internal glasses array to detachedGlassElements.

Builds on #89.

… DOM removal

- removeDetachedGlassByElement just unregisters; drops the animateClose option
  and the removeDetachedGlassElement call.
- close action and removeWindowlessGlass now call removeDetachedGlassElement
  directly for the animated DOM removal.
- Rename manager's `glasses` -> `detachedGlassElements`.
@ohxyz ohxyz merged commit 8a27a2f into main Jun 22, 2026
@ohxyz ohxyz deleted the refactor/detached-glass-manager branch June 22, 2026 10:19
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