Skip to content

Commit 7c18d2b

Browse files
chore(file upload): img updates
1 parent f0bfbd4 commit 7c18d2b

24 files changed

Lines changed: 1160 additions & 13 deletions

packages/documentation-site/patternfly-docs/content/design-guidelines/components/file-upload-multiple/file-upload-multiple.md

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ section: components
44
subsection: file-upload
55
---
66

7+
import '../components.css';
8+
79
A file upload component is commonly found in forms, but can also live as a standalone element.
810

911
*Note: This component is for both single and multiple file upload scenarios that do not require a text preview. For a single file upload that supports text preview, see the [file upload component](/components/file-upload/simple-file-upload).*
@@ -13,7 +15,9 @@ A file upload component is commonly found in forms, but can also live as a stand
1315

1416
### Multiple file upload component
1517

16-
<img src="./img/elements.png" alt="Multiple File Upload" width="638"/>
18+
<div class="ws-docs-content-img">
19+
<img src="./img/elements.svg" alt="Multiple File Upload"/>
20+
</div>
1721

1822
Most multiple file upload components contain 5 basic elements:
1923

@@ -38,7 +42,9 @@ Most multiple file upload components contain 5 basic elements:
3842

3943
**Best practices:**
4044

41-
<img src="./img/best-practices.png" alt="best practices for file upload" width="1145"/>
45+
<div class="ws-docs-content-img">
46+
<img src="./img/best-practices.svg" alt="Best practices for file upload"/>
47+
</div>
4248

4349
1. **Sizing:** Modify the drop zone to fit your context. For example, when placing the component in forms, align the width of the drop zone to the form fields.
4450

@@ -58,23 +64,29 @@ The component can be set to restrict specific file types and sizes according to
5864
### Upload file(s) via the Upload button
5965
Users have the option to upload files by clicking the button inside the drop zone. Clicking on the button prompts a file selector dialog to open. Once users select 1 or more files from the dialog, the files will populate below the drop zone on the page. The file(s) may display a loading state before uploading is successfully completed.
6066

61-
<img src="./img/upload-via-button.png" alt="file upload using the upload button" width="1145"/>
62-
67+
<div class="ws-docs-content-img">
68+
<img src="./img/upload-via-button.svg" alt="File upload using the upload button"/>
69+
</div>
6370

6471
### Drag and drop file(s)
6572
Users have the option to directly upload files by dragging and dropping them into the specified drop zone area.
6673

6774
When dragging files into the drop zone area, the drop zone changes color to indicate the active area. Once the cursor hits the drop zone area it changes with a preview of the file(s) users are about to upload. The style of cursor change is rendered by the user's browser.
6875

69-
<img src="./img/upload-via-drag-drop.png" alt="file upload using drag and drop" width="1145"/>
70-
76+
<div class="ws-docs-content-img">
77+
<img src="./img/upload-via-drag-drop.svg" alt="File upload using drag and drop"/>
78+
</div>
7179

7280
### Loading states
7381
A file that is being uploaded has 3 distinct states—waiting, in progress and uploaded.
7482

75-
<img src="./img/loading-states.png" alt="A file that is being uploaded has 3 distinct states" width="1145"/>
83+
<div class="ws-docs-content-img">
84+
<img src="./img/loading-states.svg" alt="A file that is being uploaded has 3 distinct states"/>
85+
</div>
7686

7787
### Validation
7888
When a specific file cannot be uploaded successfully, the corresponding file will show an error state. Error messages should provide clear guidance to help the user resolve the error.
7989

80-
<img src="./img/validation.png" alt="file upload with error state" width="1145"/>
90+
<div class="ws-docs-content-img">
91+
<img src="./img/validation.svg" alt="file upload with error state"/>
92+
</div>

packages/documentation-site/patternfly-docs/content/design-guidelines/components/file-upload-multiple/img/best-practices.svg

Lines changed: 176 additions & 0 deletions
Loading

packages/documentation-site/patternfly-docs/content/design-guidelines/components/file-upload-multiple/img/elements.svg

Lines changed: 75 additions & 0 deletions
Loading

packages/documentation-site/patternfly-docs/content/design-guidelines/components/file-upload-multiple/img/loading-states.svg

Lines changed: 163 additions & 0 deletions
Loading

packages/documentation-site/patternfly-docs/content/design-guidelines/components/file-upload-multiple/img/multi-upload-usage.svg

Lines changed: 179 additions & 0 deletions
Loading

packages/documentation-site/patternfly-docs/content/design-guidelines/components/file-upload-multiple/img/upload-via-button.svg

Lines changed: 126 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)