Skip to content

Commit fec2a49

Browse files
Merge pull request #148 from linked-planet/dev
Dev
2 parents 35b005c + 54e9036 commit fec2a49

File tree

7 files changed

+873
-1466
lines changed

7 files changed

+873
-1466
lines changed

library/src/components/Modal.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,6 @@ function Container({
143143
],
144144
)
145145

146-
console.log("portalContainer", portalContainer?.parentElement?.parentNode)
147-
148146
return (
149147
<RDialog.Root
150148
open={open}

library/src/layouting/AppLayout.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ export function initTopNavigationHeight() {
3232
console.info("UIKitTs - Top navigation height set to:", topNavHeight)
3333
document.documentElement.style.setProperty(
3434
topNavigationHeightVar,
35-
`${topNavHeight}px`,
35+
//`${topNavHeight}px`, // this seems to be wrong and moving the page downwards
36+
"0",
3637
)
3738
}
3839

library/src/utils/getPortal.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,18 @@ export function getPortal(
1919
if (!insidePortalContainerID) {
2020
throw new Error("No portal container id provided")
2121
}
22+
2223
let portalNode = shadowRoot
2324
? shadowRoot.getElementById(portalContainerID)
2425
: document.getElementById(portalContainerID)
26+
// probably this should go to the host document of the shadowRoot
27+
2528
if (!portalNode) {
2629
console.log("creating portal node with id:", portalContainerID)
2730
portalNode = document.createElement("div")
2831
portalNode.setAttribute("id", portalContainerID)
2932
portalNode.style.setProperty("z-index", "511") // the atlaskit portal has 510
30-
portalNode.style.setProperty("position", "fixed")
33+
portalNode.style.setProperty("position", "absolute") // cannot set this to fixed or things like dropdowns menus will be positioned wrongly on scroll
3134
portalNode.style.setProperty("inset", "0")
3235
portalNode.style.setProperty("pointer-events", "none")
3336
if (shadowRoot) {

0 commit comments

Comments
 (0)