Skip to content

Expose [data-drag-preview] on dragged preview div #8499

Open
@vezaynk

Description

@vezaynk

Provide a general summary of the feature here

I would like to implement a UX where the dragged item a GridList is slightly tilted, but all other styles remain, like so:

Image

🤔 Expected Behavior?

Image

😯 Current Behavior

Currently, there is no way to add purely additive styles. The only way to customize the appearance of the drag preview is by providing your own renderDragPreview.

The downside of this, is that relative styles are lost. For example, restoring the width of the div is difficult if its based on the size of its container.

💁 Possible Solution

Add a data-drag-preview attribute on the default drag preview, so that additional styles could be added to it easily.

🔦 Context

Image

💻 Examples

No response

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions