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
docs(drag and drop): Updates images for v6. (#4584)
* docs(drag and drop): Updates images for v6.
* Removing error state guidelines until a design decision is made for v6.
* Updating images to show proper placement of drag cursor.
---------
Co-authored-by: Andrew Ronaldson <aronalds@redhat.com>
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/drag-and-drop/drag.md
+29-28Lines changed: 29 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,69 +3,70 @@ id: Drag and drop
3
3
section: components
4
4
---
5
5
6
+
import '../components.css';
7
+
6
8
## Usage
7
9
### Simple list
8
10
1.**Draggable area:** The drag and drop interaction can be triggered with click and hold over any part of the item. The `fa-grip` icon is used to show that the drag and drop interaction is available.
9
11
10
-
<imgsrc="./img/Simple-list-drag-1.png"width="588"alt="Showing the area in which an item can be dragged."/>
12
+
<divclass="ws-docs-content-img">
13
+

14
+
</div>
11
15
12
16
2.**Bounding box:** Upon click & hold a `--pf-v6-global--active-color--100` border will show the draggable area that is available.
13
17
14
18
3.**onDrag event:** The list item being dragged will also use a `--pf-v6-global--active-color--100` border to highlight it as the item being dragged and all other list items will switch to a disabled state. The space where the item is being dragged from will remain empty to indicate its original position in the list.
15
19
16
-
<imgsrc="./img/Simple-list-drag-2-3.png"width="683"alt="Borders appear around the item and bounding box shows the area in which an item can be dragged."/>
20
+
<divclass="ws-docs-content-img">
21
+

22
+
</div>
17
23
18
24
4.**postDrag event:** Once dropped, the items will be reordered based on the user’s action. The space left empty is then filled by the next item in the list.
19
25
20
-
<imgsrc="./img/Simple-list-drag-4.png"width="588"alt="postDrag drops item into new position and all border highlights are disabled."/>
21
-
22
-
5.**Error state:** If the list item is dragged outside the bounding box the borders on the dragged item will switch to `--pf-v6-global--danger-color--100` and the cursor will change to `not-allowed` to indicate an invalid placement. If the user releases the cursor outside the bounding area the dragged item will return to its default position.
26
+
<divclass="ws-docs-content-img">
27
+

28
+
</div>
23
29
24
-
<imgsrc="./img/Simple-list-drag-5-error.png"width="588"alt="Dragging outside the bounding box shows an error state on the dragged item."/>
25
30
26
31
### Multiple lists
27
32
PatternFly drag and drop allows users to move items between different list groups. For example, in a To-Do list scenario users can quickly drag list items from the ”In progress” column to the “Done” column.
28
33
29
34
1.**Draggable item**
30
35
31
-
<imgsrc="./img/Multiple-list-drag-1.png"width="1277"alt="Showing the area in which an item can be dragged."/>
32
-
36
+
<divclass="ws-docs-content-img">
37
+

38
+
</div>
33
39
34
40
2.**onDrag event**
35
41
36
-
<imgsrc="./img/Multiple-list-drag-2.png"width="1277"alt="Borders appear around the item and bounding boxes shows the area in which an item can be dragged."/>
37
-
42
+
<divclass="ws-docs-content-img">
43
+

44
+
</div>
38
45
39
46
3.**postDrag event**
40
47
41
-
<imgsrc="./img/Multiple-list-drag-3.png"width="1277"alt="postDrag drops item into new position and all border highlights are disabled."/>
42
-
43
-
4.**Error state**
44
-
45
-
<imgsrc="./img/Multiple-list-drag-4-error.png"width="1277"alt="When dragging outside the bounding box the border color of the dragged item changes to pf-color-red-100 and the cursor changes to error state."/>
46
-
47
-
48
-
48
+
<divclass="ws-docs-content-img">
49
+

50
+
</div>
49
51
50
52
51
53
### Draggable cards
52
54
In a card view, when the selected card has been dropped the others will reposition following a left-to-right flow by default.
53
55
54
56
1.**Draggable item**
55
57
56
-
<imgsrc="./img/Card-drag-1.png"width="1042"alt="Showing the area in which an item can be dragged."/>
57
-
58
+
<divclass="ws-docs-content-img">
59
+

60
+
</div>
58
61
59
62
2.**onDrag event**
60
63
61
-
<imgsrc="./img/Card-drag-2.png"width="1104"alt="Borders appear around the item and bounding box shows the area in which an item can be dragged."/>
62
-
64
+
<divclass="ws-docs-content-img">
65
+

66
+
</div>
63
67
64
68
3.**postDrag event**
65
69
66
-
<imgsrc="./img/Card-drag-3.png"width="1051"alt="postDrag drops item into new position and all border highlights are disabled."/>
67
-
68
-
4.**Error state**
69
-
70
-
<imgsrc="./img/Card-drag-4-error.png"width="1128"alt="When dragging outside the bounding box the border color of the dragged item changes to pf-color-red-100 and the cursor changes to error state."/>
71
-
70
+
<divclass="ws-docs-content-img">
71
+

Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/drag-and-drop/img/dnd-cards1.svg
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/drag-and-drop/img/dnd-cards2.svg
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/drag-and-drop/img/dnd-cards3.svg
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/drag-and-drop/img/dnd-cards4.svg
0 commit comments