Skip to content

Update makeDraggable util in Core Carbon #9067

@anamikaanu96

Description

@anamikaanu96

Drag positioning was previously implemented using left/top, which does not work correctly for elements that already rely on transform for positioning.

Analysis showed that dragging works as expected for Bubble. However, in the case of Popover, dragging above the trigger is not possible because Popover already applies its own transform logic.

To address this, drag positioning needs to be updated to use transform: translate() instead. This ensures compatibility with elements that rely on transform-based positioning and improves support for web components.

Metadata

Metadata

Assignees

Type

Projects

Status

Needs review 👋

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions