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
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/alert/alert.md
+21-9Lines changed: 21 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,9 @@ Toast alerts stack in the upper-right corner of a page. To properly position and
105
105
106
106
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.
107
107
108
-
<imgsrc="./img/Toast-alerts-desktop.png"alt="toast alerts in a page" />
108
+
<divclass="ws-docs-content-img">
109
+

110
+
</div>
109
111
110
112
Toast alerts are commonly used in the following situations:
111
113
@@ -116,31 +118,41 @@ Toast alerts are commonly used in the following situations:
116
118
117
119
**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.
118
120
119
-
<imgsrc="./img/alert-group-desktop.png"alt="An example of a right-aligned toast alert group over a desktop view." />
121
+
<divclass="ws-docs-content-img">
122
+

123
+
</div>
120
124
121
125
**For mobile views**, center toast alert groups over your page content.
122
126
123
-
<imgsrc="./img/alert-group-mobile.png"alt="An example of a centered toast alert group over a mobile view."width="375" />
127
+
<divclass="ws-docs-content-img">
128
+

129
+
</div>
124
130
125
131
See our [toast alert guidelines](#using-toast-alerts) for more information about using toast alerts.
126
132
127
133
### Bordered inline alerts
128
134
129
135
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.
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.
136
144
137
145
-**If an alert message applies globally to the content on a page,** place the alert in the page header area just below the title.
138
146
139
-
<imgsrc="./img/Inline-alert-page-level.png"alt="global inline alert in a page" />
147
+
<divclass="ws-docs-content-img">
148
+

149
+
</div>
140
150
141
151
-**If the alert applies only to specific content,** place it inline with the page content to call attention to the error.
142
152
143
-
<imgsrc="./img/Inline-alert-specific-context.png"alt="inline alert inline with content" />
153
+
<divclass="ws-docs-content-img">
154
+

155
+
</div>
144
156
145
157
-**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.
146
158
@@ -150,16 +162,16 @@ Use bordered inline alerts to return feedback as the result of a user action wit
150
162
151
163
-**If multiple errors are present in the same location,** order them from most to least severe.
152
164
153
-
<imgsrc="./img/Multiplealert.png"alt="multiple alerts on a page" />
165
+
<divclass="ws-docs-content-img">
166
+

167
+
</div>
154
168
155
169
-**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.
156
170
157
171
<divclass="ws-docs-content-img">
158
172

159
173
</div>
160
174
161
-
<imgsrc="./img/inline-alert-modal-with-link-two.png"alt="multiple alerts on a page demo 2" />
162
-
163
175
-**If the alert is being used to indicate errors on a modal with an existing alert,** display the new alert above the existing alert.
0 commit comments