Skip to content

Commit 4d09778

Browse files
chore(alert): build error
1 parent 57489be commit 4d09778

2 files changed

Lines changed: 21 additions & 9 deletions

File tree

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

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ Toast alerts stack in the upper-right corner of a page. To properly position and
105105

106106
Toast alerts should always have a close button so that the user can dismiss them. If you include an automatic timeout for your toast alert, 8 seconds is recommended. Toast alerts should not disappear while the user is hovering over them.
107107

108-
<img src="./img/Toast-alerts-desktop.png" alt="toast alerts in a page" />
108+
<div class="ws-docs-content-img">
109+
![toast alerts in a page](./img/toast-alerts-desktop.svg)
110+
</div>
109111

110112
Toast alerts are commonly used in the following situations:
111113

@@ -116,31 +118,41 @@ Toast alerts are commonly used in the following situations:
116118

117119
**For desktop views**, right align toast alert groups over your page content. Each alert should stack on top of one another with 8px of padding in between.
118120

119-
<img src="./img/alert-group-desktop.png" alt="An example of a right-aligned toast alert group over a desktop view." />
121+
<div class="ws-docs-content-img">
122+
![An example of a right-aligned toast alert group over a desktop view](./img/alert-group-desktop.svg)
123+
</div>
120124

121125
**For mobile views**, center toast alert groups over your page content.
122126

123-
<img src="./img/alert-group-mobile.png" alt="An example of a centered toast alert group over a mobile view." width="375" />
127+
<div class="ws-docs-content-img">
128+
![An example of a centered toast alert group over a mobile view](./img/alert-group-mobile.svg)
129+
</div>
124130

125131
See our [toast alert guidelines](#using-toast-alerts) for more information about using toast alerts.
126132

127133
### Bordered inline alerts
128134

129135
Bordered inline alerts communicate information about a specific user action on a page. An inline alert appears within the content area and disappears when the user closes it or navigates away from the page.
130136

131-
![inline notification placement](./img/inline-notification.png)
137+
<div class="ws-docs-content-img">
138+
![inline notification placement](./img/inline-notification.svg)
139+
</div>
132140

133141
#### Using bordered inline alerts
134142

135143
Use bordered inline alerts to return feedback as the result of a user action within a page without blocking the user’s workflow. Common uses for bordered inline alerts include form validation and warning messages.
136144

137145
- **If an alert message applies globally to the content on a page,** place the alert in the page header area just below the title.
138146

139-
<img src="./img/Inline-alert-page-level.png" alt="global inline alert in a page" />
147+
<div class="ws-docs-content-img">
148+
![global inline alert in a page](./img/inline-alert-page-level.svg)
149+
</div>
140150

141151
- **If the alert applies only to specific content,** place it inline with the page content to call attention to the error.
142152

143-
<img src="./img/Inline-alert-specific-context.png" alt="inline alert inline with content" />
153+
<div class="ws-docs-content-img">
154+
![inline alert inline with content](./img/inline-alert-specific-context.svg)
155+
</div>
144156

145157
- **If the alert is being used to indicate errors,** use an error validation summary at the top of the page to indicate what errors are present. The summary should be a quick, general overview. Show an error alert next to the field that is causing the error. The error message should be concise and actionable. It should tell the user what happened and the next steps needed to fix it.
146158

@@ -150,16 +162,16 @@ Use bordered inline alerts to return feedback as the result of a user action wit
150162

151163
- **If multiple errors are present in the same location,** order them from most to least severe.
152164

153-
<img src="./img/Multiplealert.png" alt="multiple alerts on a page" />
165+
<div class="ws-docs-content-img">
166+
![multiple alerts on a page](./img/multiple-alerts.svg)
167+
</div>
154168

155169
- **If the alert is being used to indicate errors on a modal,** use an error validation summary at the top of the modal below the title to indicate what errors are present. Show an error alert next to the field that is causing the error. The error message should be concise and actionable. It should tell the user what happened and the next steps needed to fix it.
156170

157171
<div class="ws-docs-content-img">
158172
![multiple alerts on a page demo 2](./img/inline-alert-modal-with-link-two.svg)
159173
</div>
160174

161-
<img src="./img/inline-alert-modal-with-link-two.png" alt="multiple alerts on a page demo 2" />
162-
163175
- **If the alert is being used to indicate errors on a modal with an existing alert,** display the new alert above the existing alert.
164176

165177
<div class="ws-docs-content-img">
25.7 KB
Loading

0 commit comments

Comments
 (0)