Given a list with drag-enabled, during a drag, the item that swaps into the dragged item's initial drop zone appears to assume styling for a pseudo state (e.g. :hover, :active). Interestingly, which pseudo state is not consistent.
If dragging a middle row in one direction, the first sibling row that swaps into the initial drop zone appears to assume an :active style where the list item's handle background becomes gray.
Without stopping the drag, if the direction is reversed, the second sibling row that swaps into the initial drop zone appears to take on a :hover style where most of the list item's background becomes gray.
Drag start
Drag over 1st sibling
Drag over 2nd sibling
The initial direction of the drag doesn't matter. The first swapped sibling will always look active and the second swapped sibling will always look hovered. For longer lists, items not swapping with the dragged item's initial drop zone are not affected.
Expected Behavior
There are no styling changes to the dragged item's original siblings when they swap with its initial drop zone.
Check existing issues
Actual Behavior
Given a list with
drag-enabled
, during a drag, the item that swaps into the dragged item's initial drop zone appears to assume styling for a pseudo state (e.g.:hover
,:active
). Interestingly, which pseudo state is not consistent.If dragging a middle row in one direction, the first sibling row that swaps into the initial drop zone appears to assume an
:active
style where the list item's handle background becomes gray.Without stopping the drag, if the direction is reversed, the second sibling row that swaps into the initial drop zone appears to take on a
:hover
style where most of the list item's background becomes gray.The initial direction of the drag doesn't matter. The first swapped sibling will always look active and the second swapped sibling will always look hovered. For longer lists, items not swapping with the dragged item's initial drop zone are not affected.
Expected Behavior
There are no styling changes to the dragged item's original siblings when they swap with its initial drop zone.
Reproduction Sample
https://developers.arcgis.com/calcite-design-system/components/list/#sample
Reproduction Steps
drag-enabled
in the sample.Reproduction Version
2.12.2
Relevant Info
No response
Regression?
No response
Priority impact
impact - p3 - not time sensitive
Impact
No response
Calcite package
Esri team
ArcGIS Field Apps