Skip to content

hlm-sheet not working properly (Overlay not rendered / No transition) #1219

@timsar2

Description

@timsar2

hlm-sheet does not work correctly in a standalone Angular application.

  • Clicking the trigger does not render the sheet properly.
  • <div class="cdk-overlay-container"> is not created when using HlmSheet.
  • The sheet only works when using BrnSheet directly.
  • Even when it opens, there is no transition animation (it appears instantly without smooth slide-in).

Environment

  • Angular: 21.0.x
  • @angular/cdk: 21.0.x
  • "@spartan-ng/cli": "^0.0.1-alpha.575",
  • "@spartan-ng/brain": "^0.0.1-alpha.575"
  • Standalone bootstrap (no NgModules)

@component({
standalone: true,
imports: [HlmSheetImports],
template: `

Open

Are you absolutely sure?

This action cannot be undone. This will permanently delete your account and remove your data from our servers.

`,
})
export class TestComponent {}

In main.ts:

bootstrapApplication(AppComponent, {
providers: [
provideAnimations(),
],
})


Observed Behavior

  1. hlm-sheet does not create cdk-overlay-container
  2. Using BrnSheet works correctly
  3. No slide transition animation
  4. Providing animations via:

provideAnimations()

or

provideAnimationsAsync('animations')

does not restore transition behavior


Expected Behavior

  • hlm-sheet should initialize CDK Overlay properly
  • cdk-overlay-container should be created on trigger
  • Sheet should slide in smoothly from the specified side
  • Should work correctly in standalone Angular 20+ without relying on deprecated animation providers

Additional Notes

Both:

  • provideAnimations()
  • provideAnimationsAsync()

are deprecated in Angular 20.2 with intent to remove in v23.

Currently, hlm-sheet appears to depend on the legacy animation engine, and transition animations do not function properly even when the deprecated providers are added.

It seems there may be:

  • A compatibility issue with Angular 20+
  • A missing provider registration for CDK Overlay
  • Or a mismatch between HlmSheet wrapper and BrnSheet implementation

Question

Is hlm-sheet fully compatible with Angular 20+ standalone setup?

Is there a recommended way to enable transitions without relying on deprecated animation providers?


Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions