Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
andrewzamojc
left a comment
There was a problem hiding this comment.
I'm just curious about the positioning props on the portal.
| let { | ||
| anchor, | ||
| open = true, | ||
| position = 'bottom', |
There was a problem hiding this comment.
Is this mixing concepts between portal and overlay? I haven't gone this deep on portals but I didn't think they had a position like a popover...
There was a problem hiding this comment.
Yeah this is a positioned portal. We could consider having just a portal component and then handling the positioning separately, but I figured for 99% of our use cases we're going to want to position it.
In my experience an overlay wouldn't need to be positioned since it's usually the same (centered) in every instance. Is that not your experience? Curious if you have any more insights into patterns for portals you've seen and liked!
There was a problem hiding this comment.
Ya I see. Basically this is practical and always how we're going to use it 👍
|
This is great stuff! Pretty cool to see the guts of a Portal. |
d1c75ba to
3048fe3
Compare
| $menuElementCtx = menuElement; | ||
| }); | ||
|
|
||
| $effect(() => { |
There was a problem hiding this comment.
Named function please
Auto-generated version bump from 2.44.1 to 2.45.0 Bump type: minor Changes included: - [`4d828b96`](4d828b9) Account for potential not in conditional in custom query (#3081) - [`bead6b37`](bead6b3) Fix truncate in detail-list-text-value (#3089) - [`bb4bee6c`](bb4bee6) Bump svelte dependencies (#3097) - [`586bfe19`](586bfe1) Test section - [`4ad6cfff`](4ad6cff) Remove sisyphus and add to .gitignore (#3104) - [`0aea80f3`](0aea80f) Nav update icons clean (#3095) - [`bca75cc5`](bca75cc) make routes conditional on prop (#3106) - [`0008100b`](0008100) Add new Nexus timeout fields and translations (#3105) - [`b9939675`](b993967) Bump golang.org/x/crypto from 0.38.0 to 0.45.0 in /server (#3028) - [`5963ca9c`](5963ca9) Nav release fix/kt (#3110) - [`3cab346e`](3cab346) quick nav fix add logo and route to title (#3112) - [`f9f75d64`](f9f75d6) [DT-3501] reactive timestamp (#3108) - [`faa48e2b`](faa48e2) [DT-3501][DT-3505] 12/24 hour and ISO formats added to timezone popover (#3113) - [`068e5978`](068e597) Fix nav collapse icon (#3117) - [`d0b34226`](d0b3422) feat(workflows): show Versioning Behavior column when filtering by deployment version (#3120) - [`bd8a3556`](bd8a355) [DT-3580] Add tooltips to worker deployment version status badges (#3119) - [`f46dca00`](f46dca0) Add Portal component (#3107) - [`ef6b923e`](ef6b923) feat(deployments): make build ID and deployment name copyable and filterable (#3121) - [`6209f9b6`](6209f9b) DT-3507-fix-code-block-scrolling (#3129) - [`023f034b`](023f034) DT-3523 - standalone activities UI (#3124) - [`7199ce9e`](7199ce9) Set API to v1.60.0 (#3132)
Auto-generated version bump from 2.44.1 to 2.45.0 Bump type: minor Changes included: - [`4d828b96`](4d828b9) Account for potential not in conditional in custom query (#3081) - [`bead6b37`](bead6b3) Fix truncate in detail-list-text-value (#3089) - [`bb4bee6c`](bb4bee6) Bump svelte dependencies (#3097) - [`586bfe19`](586bfe1) Test section - [`4ad6cfff`](4ad6cff) Remove sisyphus and add to .gitignore (#3104) - [`0aea80f3`](0aea80f) Nav update icons clean (#3095) - [`bca75cc5`](bca75cc) make routes conditional on prop (#3106) - [`0008100b`](0008100) Add new Nexus timeout fields and translations (#3105) - [`b9939675`](b993967) Bump golang.org/x/crypto from 0.38.0 to 0.45.0 in /server (#3028) - [`5963ca9c`](5963ca9) Nav release fix/kt (#3110) - [`3cab346e`](3cab346) quick nav fix add logo and route to title (#3112) - [`f9f75d64`](f9f75d6) [DT-3501] reactive timestamp (#3108) - [`faa48e2b`](faa48e2) [DT-3501][DT-3505] 12/24 hour and ISO formats added to timezone popover (#3113) - [`068e5978`](068e597) Fix nav collapse icon (#3117) - [`d0b34226`](d0b3422) feat(workflows): show Versioning Behavior column when filtering by deployment version (#3120) - [`bd8a3556`](bd8a355) [DT-3580] Add tooltips to worker deployment version status badges (#3119) - [`f46dca00`](f46dca0) Add Portal component (#3107) - [`ef6b923e`](ef6b923) feat(deployments): make build ID and deployment name copyable and filterable (#3121) - [`6209f9b6`](6209f9b) DT-3507-fix-code-block-scrolling (#3129) - [`023f034b`](023f034) DT-3523 - standalone activities UI (#3124) - [`7199ce9e`](7199ce9) Set API to v1.60.0 (#3132) - [`138473c6`](138473c) Set API to v1.60.1 (#3134)
Auto-generated version bump from 2.44.1 to 2.45.0 Bump type: minor Changes included: - [`4d828b96`](4d828b9) Account for potential not in conditional in custom query (#3081) - [`bead6b37`](bead6b3) Fix truncate in detail-list-text-value (#3089) - [`bb4bee6c`](bb4bee6) Bump svelte dependencies (#3097) - [`586bfe19`](586bfe1) Test section - [`4ad6cfff`](4ad6cff) Remove sisyphus and add to .gitignore (#3104) - [`0aea80f3`](0aea80f) Nav update icons clean (#3095) - [`bca75cc5`](bca75cc) make routes conditional on prop (#3106) - [`0008100b`](0008100) Add new Nexus timeout fields and translations (#3105) - [`b9939675`](b993967) Bump golang.org/x/crypto from 0.38.0 to 0.45.0 in /server (#3028) - [`5963ca9c`](5963ca9) Nav release fix/kt (#3110) - [`3cab346e`](3cab346) quick nav fix add logo and route to title (#3112) - [`f9f75d64`](f9f75d6) [DT-3501] reactive timestamp (#3108) - [`faa48e2b`](faa48e2) [DT-3501][DT-3505] 12/24 hour and ISO formats added to timezone popover (#3113) - [`068e5978`](068e597) Fix nav collapse icon (#3117) - [`d0b34226`](d0b3422) feat(workflows): show Versioning Behavior column when filtering by deployment version (#3120) - [`bd8a3556`](bd8a355) [DT-3580] Add tooltips to worker deployment version status badges (#3119) - [`f46dca00`](f46dca0) Add Portal component (#3107) - [`ef6b923e`](ef6b923) feat(deployments): make build ID and deployment name copyable and filterable (#3121) - [`6209f9b6`](6209f9b) DT-3507-fix-code-block-scrolling (#3129) - [`023f034b`](023f034) DT-3523 - standalone activities UI (#3124) - [`7199ce9e`](7199ce9) Set API to v1.60.0 (#3132) - [`138473c6`](138473c) Set API to v1.60.1 (#3134) Co-authored-by: laurakwhit <15069288+laurakwhit@users.noreply.github.com>
Description & motivation 💭
This PR introduces a new
Portalcomponent to the Holocene design system and integrates it with the existingMenucomponent via an opt-inusePortalprop.Portalrenders children at a specific position relative to an anchor element with advanced positioning features:document.bodyto escape overflow/z-index constraintstop,bottom,left,right,top-left,top-right,bottom-left,bottom-right)flipOnCollisionis enabledscrollContainerprophideWhenAnchorHiddenis enabledScreenshots (if applicable) 📸
Design Considerations 🎨
Testing 🧪
How was this tested 👻
Steps for others to test: 🚶🏽♂️🚶🏽♀️
Checklists
Draft Checklist
Merge Checklist
Issue(s) closed
Related to
DT-3325Docs
Any docs updates needed?