You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When generating the custom drag preview, the container is added directly to body. This means it inherits the CSS state of body, including CSS variables, font, currentColor etc.
I'd love the option to provide an alternative element to document.body to mount the container to, so that it can inherit the desired CSS state from the context of where the dragged element is.
The main reason I want this is so that it can get use the css variables from the theme, which aren't present on the body.
Because container is position: fixed, it will still render in the correct place.
Potential gotchas to look out for are when the element:
When generating the custom drag preview, the
container
is added directly tobody
. This means it inherits the CSS state of body, including CSS variables, font,currentColor
etc.I'd love the option to provide an alternative element to
document.body
to mount the container to, so that it can inherit the desired CSS state from the context of where the dragged element is.The main reason I want this is so that it can get use the css variables from the theme, which aren't present on the body.
Because
container
isposition: fixed
, it will still render in the correct place.Potential gotchas to look out for are when the element:
display: none
Proposed change
The text was updated successfully, but these errors were encountered: