Skip to content

feat(design): DaffModalService.open returns reference instead of modal instance#4321

Open
joannalauu wants to merge 1 commit intodevelopfrom
feat/modal-return-handle
Open

feat(design): DaffModalService.open returns reference instead of modal instance#4321
joannalauu wants to merge 1 commit intodevelopfrom
feat/modal-return-handle

Conversation

@joannalauu
Copy link
Contributor

PR Checklist

  • Commit message follows our contributing guidelines
  • Tests added/updated (for bug fixes/features)
  • Documentation added/updated (for bug fixes/features)

PR Type

  • Bug fix
  • Feature
  • Style update
  • Refactor
  • Test
  • Build
  • CI
  • Docs
  • Performance
  • Other (please describe)

Current behavior

Fixes: #4270
Part of: #

New behavior

DaffModalService.open returns reference instead of modal instance. The reference provides access to close() and the afterClosed observable.

Breaking change?

  • Yes
  • No

Additional context

@joannalauu joannalauu requested review from a team as code owners February 6, 2026 06:26
@xelaint xelaint added package: design @daffodil/design status: pending review This PR is awaiting review or response from a reviewer before the author can proceed. labels Feb 6, 2026
@xelaint xelaint requested a review from griest024 February 6, 2026 15:06
Copy link
Member

@damienwebdev damienwebdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a good starting point.


import { DaffModalComponent } from '../modal.component';

export interface DaffModal {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

split this into two files I think to avoid accidental public_api exposure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: design @daffodil/design status: pending review This PR is awaiting review or response from a reviewer before the author can proceed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DaffModalService.open should return a handle or ref, not the modal component

3 participants