-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for an
overlayPosition
property which supports values o…
…f `'parent'` or `'sibling'` - this property affects the relative DOM elements for non-tethered use cases - `parent`, the default, uses a structure of: ``` wrapper > overlay > container ``` - `sibling`, uses a structure of: `wrapper > overlay > container` ``` wrapper > overlay > container ```
- Loading branch information
Showing
7 changed files
with
117 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,38 @@ | ||
{{#ember-wormhole to=destinationElementId}} | ||
<div class="{{wrapperClassNamesString}} {{wrapperClass}}"> | ||
{{#if hasOverlay}} | ||
<div class={{overlayClassNamesString}} onclick={{action (ignore-children onClickOverlay)}} tabindex="-1" data-emd-overlay> | ||
{{#ember-modal-dialog-positioned-container | ||
class=containerClassNamesString | ||
targetAttachment=targetAttachment | ||
target=legacyTarget | ||
}} | ||
{{yield}} | ||
{{/ember-modal-dialog-positioned-container}} | ||
</div> | ||
{{else}} | ||
{{#if isOverlaySibling}} | ||
<div class="{{wrapperClassNamesString}} {{wrapperClass}}"> | ||
{{#if hasOverlay}} | ||
<div class={{overlayClassNamesString}} onclick={{action onClickOverlay}} tabindex="-1" data-emd-overlay></div> | ||
{{/if}} | ||
{{#ember-modal-dialog-positioned-container | ||
class=containerClassNamesString | ||
targetAttachment=targetAttachment | ||
target=legacyTarget | ||
}} | ||
{{yield}} | ||
{{/ember-modal-dialog-positioned-container}} | ||
{{/if}} | ||
</div> | ||
</div> | ||
{{else}} | ||
<div class="{{wrapperClassNamesString}} {{wrapperClass}}"> | ||
{{#if hasOverlay}} | ||
<div class={{overlayClassNamesString}} onclick={{action (ignore-children onClickOverlay)}} tabindex="-1" data-emd-overlay> | ||
{{#ember-modal-dialog-positioned-container | ||
class=containerClassNamesString | ||
targetAttachment=targetAttachment | ||
target=legacyTarget | ||
}} | ||
{{yield}} | ||
{{/ember-modal-dialog-positioned-container}} | ||
</div> | ||
{{else}} | ||
{{#ember-modal-dialog-positioned-container | ||
class=containerClassNamesString | ||
targetAttachment=targetAttachment | ||
target=legacyTarget | ||
}} | ||
{{yield}} | ||
{{/ember-modal-dialog-positioned-container}} | ||
{{/if}} | ||
</div> | ||
{{/if}} | ||
{{/ember-wormhole}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters