Skip to content

Commit 4dbdd1c

Browse files
jorytindallzamoore
authored andcommitted
Update image and hierarchy to match the code documentation
1 parent 18ca252 commit 4dbdd1c

File tree

2 files changed

+9
-15
lines changed

2 files changed

+9
-15
lines changed

website/docs/components/table/advanced-table/partials/guidelines/guidelines.md

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -122,20 +122,6 @@ Don’t center header labels or cell content within a table.
122122

123123
!!!
124124

125-
### Resizable columns
126-
127-
The Advanced Table supports resizing individual columns to display the entire contents of a cell. When enabled, users can customize the width of each column.
128-
129-
This is supported via an interactive "resize border" that functions either by clicking and dragging on the horizontal axis with a mouse or by moving the focus to the resize border with the keyboard and using the right and left arrow keys.
130-
131-
The Figma component does not support this resizing feature. Instead, we publish a [Resize Border](https://www.figma.com/design/iweq3r2Pi8xiJfD9e6lOhF/HDS-Components-v2.0?m=auto&node-id=80647-127234&t=UHpPyO7erZKLy4SD-1) component and [Templates](https://www.figma.com/design/iweq3r2Pi8xiJfD9e6lOhF/HDS-Components-v2.0?m=auto&node-id=72039-5091&t=UHpPyO7erZKLy4SD-1) to use as a starting point for expressing this interaction. We also provide [examples](https://www.figma.com/design/iweq3r2Pi8xiJfD9e6lOhF/HDS-Components-v2.0?m=auto&node-id=81060-291665&t=UHpPyO7erZKLy4SD-1) that you can copy and paste into your design files.
132-
133-
![The interactive resize border in its active state being dragged with a mouse](/assets/components/table/advanced-table/advanced-table-resize-interaction.png)
134-
135-
When resizable columns are enabled, actions related to each function are rendered in a context menu in the table header. These functions are not customizable.
136-
137-
![An example of the open context menu in the Advanced Table displaying an action to reset the width of the column](/assets/components/table/advanced-table/advanced-table-context-menu.png)
138-
139125
### Reorderable columns
140126

141127
If `hasReorderableColumns` is set to true on the Ember component, users can reorder columns either by clicking and dragging on the column reorder handle with a mouse, or by moving focus to the handle with a keyboard and using the right and left arrow keys. These properties are not available within the Figma component, but we've provided [examples](jory-update-link) that you can copy and paste into your design files.
@@ -145,12 +131,20 @@ When enabled, actions related to altering the column order are rendered in a con
145131
- Move column: moves focus to the reordering handle
146132
- Move column to start/end: moves the column to the first or last position in the table unless the column is already in this position.
147133

148-
![An example of the open context menu in the Advanced Table displaying an action that alter the visual order of the column](/assets/components/table/advanced-table/advanced-table-context-menu.png)
134+
![An example of the open context menu in the Advanced Table displaying an action that alter the visual order of the column](/assets/components/table/advanced-table/advanced-table-reorder-context-menu.png)
149135

150136
![An example of the focused drag target in the table header](/assets/components/table/advanced-table/advanced-table-focus-drag-target.png)
151137

152138
![An example of a column being dragged with the mouse to a new position in the Advanced Table](/assets/components/table/advanced-table/advanced-table-drag-column.png)
153139

140+
### Resizable columns
141+
142+
If `hasResizableColumns` is set to true on the Ember component, users can customize the width of each column in the Advanced Table. These properties are not available within the Figma component, but we've provided [examples](https://www.figma.com/design/iweq3r2Pi8xiJfD9e6lOhF/HDS-Components-v2.0?m=auto&node-id=81060-291665&t=UHpPyO7erZKLy4SD-1) that you can copy and paste into your design files.
143+
144+
When enabled, actions related to each function are rendered in a context menu in the table header. These functions are not customizable.
145+
146+
![An example of the open context menu in the Advanced Table displaying an action to reset the width of the column](/assets/components/table/advanced-table/advanced-table-context-menu.png)
147+
154148
## Column and row span
155149

156150
- Supports combining multiple columns or rows into a single cell.
70.7 KB
Loading

0 commit comments

Comments
 (0)