Skip to content

Commit 74c1b60

Browse files
docs(inline edit): Updates images for v6. (#4613)
* docs(inline edit): Updates images for v6. * Fixing annotation and gif file. * Fixing gif file.
1 parent 93ea753 commit 74c1b60

8 files changed

Lines changed: 443 additions & 6 deletions

File tree

3.07 MB
Loading

packages/documentation-site/patternfly-docs/content/design-guidelines/components/inline-edit/img/inline-edit-field-specific.svg

Lines changed: 48 additions & 0 deletions
Loading

packages/documentation-site/patternfly-docs/content/design-guidelines/components/inline-edit/img/inline-edit-full-page.svg

Lines changed: 63 additions & 0 deletions
Loading

packages/documentation-site/patternfly-docs/content/design-guidelines/components/inline-edit/img/inline-edit-page-elements-1.svg

Lines changed: 55 additions & 0 deletions
Loading

packages/documentation-site/patternfly-docs/content/design-guidelines/components/inline-edit/img/inline-edit-page-elements-2.svg

Lines changed: 37 additions & 0 deletions
Loading

packages/documentation-site/patternfly-docs/content/design-guidelines/components/inline-edit/img/inline-edit-table-rows.svg

Lines changed: 123 additions & 0 deletions
Loading

packages/documentation-site/patternfly-docs/content/design-guidelines/components/inline-edit/img/inline-edit-table.svg

Lines changed: 92 additions & 0 deletions
Loading

packages/documentation-site/patternfly-docs/content/design-guidelines/components/inline-edit/inline-edit.md

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ id: Inline edit
33
section: components
44
---
55

6+
import '../components.css';
7+
68
## Elements
79

810
Elements vary depending on inline edit variation
@@ -18,7 +20,11 @@ Elements vary depending on inline edit variation
1820
### When not to use
1921
* The editing is the primary function of the view. For example, in an edit modal.
2022

21-
<img src="./img/inline-edit.gif" alt="Inline edit components" width="960" height="540" />.
23+
## Behavior
24+
25+
<div class="ws-docs-content-img">
26+
![Example of the behavior of an inline edit field.](./img/inline-edit-behavior.gif)
27+
</div>
2228

2329
## Variations
2430
1. **[Page inline edit](/components/inline-edit/design-guidelines#page-inline-edit):** enables the user to edit a [specific field](/components/inline-edit/design-guidelines#table-inline-edit) in a details page or in a [full page](/components/inline-edit/design-guidelines#full-page-edit).
@@ -31,7 +37,12 @@ Elements vary depending on inline edit variation
3137

3238
### Page inline elements
3339

34-
<img src="./img/elements-form-inline-edit.png" alt="Form inline edit elements" width="785"/>
40+
<div class="ws-docs-content-img">
41+
![Elements of field specific inline edits.](./img/inline-edit-page-elements-1.svg)
42+
</div>
43+
<div class="ws-docs-content-img">
44+
![Elements of full page inline edits](./img/inline-edit-page-elements-2.svg)
45+
</div>
3546

3647
1. **Toggle:** Indicates the edit action
3748
2. **[Tooltip](/components/tooltip):** Provides a short description of the inline edit toggle
@@ -49,7 +60,9 @@ The pencil toggle is placed inline with the header for fields that are editable.
4960
* **The check icon** saves the changes and switches the item back to read-only mode.
5061
* **The close icon** returns to the read-only mode without saving new data.
5162

52-
<img src="./img/specific-field-edit.png" alt="Specific field edit" width="1013"/>
63+
<div class="ws-docs-content-img">
64+
![Example of field specific inline edits.](./img/inline-edit-field-specific.svg)
65+
</div>
5366

5467
### Full page edit
5568

@@ -62,15 +75,19 @@ Any editing is triggered by an edit link for the whole section. All edits should
6275
* **Editable fields** should function like any form.
6376
* Users can save or cancel changes using the ‘Save’ or ‘Cancel’ button. Both actions return a page or description list to the read-only mode.
6477

65-
<img src="./img/full-page-edit.png" alt="Full page edit" width="926"/>
78+
<div class="ws-docs-content-img">
79+
![Example of full page inline edits.](./img/inline-edit-full-page.svg)
80+
</div>
6681

6782
### Table inline edit
6883

6984
* **[Row edit](/components/inline-edit/design-guidelines#row-editing):** allows for making changes to 1 editable row in the table
7085

7186
### Table inline elements
7287

73-
<img src="./img/table-inline-edit-elements.png" alt="Table inline edit elements" width="1010"/>
88+
<div class="ws-docs-content-img">
89+
![Elements of inline edits in a table.](./img/inline-edit-table.svg)
90+
</div>
7491

7592
1. **Editable inactive row:** Inactive row with read-only styling
7693
2. **Editable active row:** Ability to edit form components is enabled
@@ -96,7 +113,9 @@ Clicking the pencil icon toggles the particular table row into edit mode. In the
96113
* **The check icon button** submits the changes and switches the row back to the read-only mode.
97114
* **The close icon** returns to read-only mode without saving new data.
98115

99-
<img src="./img/row-editing.png" alt="Row editing" width="1210"/>
116+
<div class="ws-docs-content-img">
117+
![Example of inline edits in a table.](./img/inline-edit-table-rows.svg)
118+
</div>
100119

101120
Some are elements may be difficult to edit in a table. You can make them editable in a [modal](/components/modal) instead.
102121

0 commit comments

Comments
 (0)