HomePhorge

Make all CSS rules for draggable cards/items independent of container classes

Description

Make all CSS rules for draggable cards/items independent of container classes

Summary:
Ref T5240. With the new approach, the draggable clones lose their containers, so they don't get affected by rules like .container .item.

Put classes on the cards/items and use .board-item.item and .standard-item.item to apply rules instead.

This didn't turn out too gross, and seems relatively OK / not obviously broken.

Test Plan:

  • Dragged cards on a workboard.
  • Dragged items in normal lists (tasks, pinned apps).

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T5240

Differential Revision: https://secure.phabricator.com/D15161

Details

Provenance
epriestleyAuthored on Feb 1 2016, 5:47 PM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rPfce010982282: When dragging nodes, clone them
Branches
Unknown
Tags
Unknown

Event Timeline