@patternfly/patternfly 5.0.0-alpha.32 → 5.0.0-alpha.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/RELEASE-NOTES.md +1 -1
- package/assets/pficon/pficon.scss +1 -2
- package/base/_fa-icons.scss +1 -2
- package/base/_fonts.scss +5 -10
- package/base/_globals.scss +91 -85
- package/base/_variables.scss +3 -3
- package/base/patternfly-fa-icons.css +1 -1
- package/base/patternfly-fonts.css +5 -5
- package/base/patternfly-globals.css +35 -41
- package/base/patternfly-icons.css +2 -2
- package/base/patternfly-pf-icons.css +1 -1
- package/base/patternfly-themes.css +0 -42
- package/base/patternfly-variables.css +3 -3
- package/components/AboutModalBox/about-modal-box.css +0 -38
- package/components/Alert/alert.css +14 -5
- package/components/Alert/alert.scss +18 -4
- package/components/Alert/themes/dark/alert.scss +1 -1
- package/components/Banner/banner.css +0 -38
- package/components/DatePicker/date-picker.css +0 -8
- package/components/DatePicker/date-picker.scss +0 -9
- package/components/HelperText/helper-text.css +4 -0
- package/components/HelperText/helper-text.scss +5 -0
- package/components/Icon/icon.css +3 -3
- package/components/Icon/icon.scss +3 -3
- package/components/Label/label.css +6 -6
- package/components/Label/label.scss +4 -4
- package/components/Label/themes/dark/label.scss +2 -2
- package/components/LogViewer/log-viewer.css +0 -38
- package/components/Login/login.css +0 -40
- package/components/Masthead/masthead.css +0 -38
- package/components/ModalBox/modal-box.css +3 -3
- package/components/ModalBox/modal-box.scss +3 -3
- package/components/NotificationDrawer/notification-drawer.css +5 -5
- package/components/NotificationDrawer/notification-drawer.scss +5 -5
- package/components/Page/page.css +0 -42
- package/components/Popover/popover.css +6 -6
- package/components/Popover/popover.scss +5 -5
- package/components/Popover/themes/dark/popover.scss +1 -1
- package/components/Wizard/wizard.css +0 -38
- package/docs/components/Alert/examples/Alert.md +15 -15
- package/docs/components/AlertGroup/examples/AlertGroup.md +6 -6
- package/docs/components/AppLauncher/examples/application-launcher.md +1 -0
- package/docs/components/Check/examples/Check.md +1 -0
- package/docs/components/ContextSelector/examples/context-selector.md +1 -0
- package/docs/components/DatePicker/examples/DatePicker.md +15 -3
- package/docs/components/Dropdown/examples/Dropdown.md +1 -0
- package/docs/components/FileUpload/examples/FileUpload.md +11 -6
- package/docs/components/Form/examples/Form.md +95 -73
- package/docs/components/FormControl/examples/FormControl.md +1 -0
- package/docs/components/HelperText/examples/HelperText.md +13 -24
- package/docs/components/Icon/examples/Icon.md +2 -2
- package/docs/components/Login/examples/Login.md +67 -30
- package/docs/components/Menu/examples/Menu.md +1 -0
- package/docs/components/MenuToggle/examples/MenuToggle.md +1 -0
- package/docs/components/ModalBox/examples/ModalBox.md +8 -8
- package/docs/components/MultipleFileUpload/examples/MultipleFileUpload.md +2 -1
- package/docs/components/NotificationDrawer/examples/NotificationDrawer.md +22 -22
- package/docs/components/OptionsMenu/examples/options-menu.md +1 -0
- package/docs/components/Popover/examples/Popover.md +9 -9
- package/docs/components/Progress/examples/Progress.md +1 -1
- package/docs/components/Radio/examples/Radio.md +1 -0
- package/docs/components/Select/examples/Select.md +1 -0
- package/docs/demos/Alert/examples/Alert.md +105 -58
- package/docs/demos/CardView/examples/CardView.md +1 -1
- package/docs/demos/Dashboard/examples/Dashboard.md +1 -1
- package/docs/demos/Form/examples/BasicForms.md +130 -140
- package/docs/demos/HelperText/examples/HelperText.md +11 -8
- package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +30 -30
- package/docs/demos/PasswordGenerator/examples/PasswordGenerator.md +1 -1
- package/docs/demos/PasswordStrength/examples/PasswordStrength.md +88 -54
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +1 -1
- package/docs/demos/Toolbar/examples/Toolbar.md +17 -5
- package/docs/utilities/Accessibility/examples/Accessibility.md +1 -1
- package/docs/utilities/Alignment/examples/Alignment.md +1 -1
- package/docs/utilities/BackgroundColor/examples/BackgroundColor.md +1 -1
- package/docs/utilities/BoxShadow/examples/box-shadow.md +1 -1
- package/docs/utilities/Display/examples/Display.md +1 -1
- package/docs/utilities/Flex/examples/Flex.md +1 -1
- package/docs/utilities/Float/examples/Float.md +1 -1
- package/docs/utilities/Sizing/examples/Sizing.md +1 -1
- package/docs/utilities/Spacing/examples/Spacing.md +1 -1
- package/docs/utilities/Text/examples/Text.md +5 -5
- package/package.json +2 -2
- package/patternfly-addons.css +48 -48
- package/{patternfly-base-no-reset.css → patternfly-base-no-globals.css} +10 -31
- package/{patternfly-base-no-reset.scss → patternfly-base-no-globals.scss} +1 -0
- package/patternfly-base.css +45 -72
- package/{patternfly-no-reset.css → patternfly-no-globals.css} +56 -1245
- package/{patternfly-no-reset.scss → patternfly-no-globals.scss} +1 -0
- package/patternfly.css +87 -1282
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/placeholders.scss +0 -23
- package/sass-utilities/scss-variables.scss +4 -5
- package/sass-utilities/themes/dark/placeholders.scss +0 -22
- package/utilities/Text/text.css +48 -48
- package/utilities/Text/text.scss +6 -6
- package/utilities/Text/themes/dark/text.scss +2 -2
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Black.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-BlackItalic.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Bold.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-BoldItalic.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Italic.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Medium.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-MediumItalic.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Regular.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-Bold.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-BoldItalic.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-Italic.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-Medium.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-MediumItalic.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-Regular.woff +0 -0
- package/assets/fonts/webfonts/fa-solid-900.woff +0 -0
- package/assets/pficon/pficon.woff +0 -0
- package/sass-utilities/bs-variables.scss +0 -709
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Form
|
|
3
3
|
section: components
|
|
4
|
+
subsection: forms
|
|
4
5
|
cssPrefix: pf-c-form
|
|
5
6
|
---## Examples
|
|
6
7
|
|
|
@@ -75,11 +76,11 @@ cssPrefix: pf-c-form
|
|
|
75
76
|
<div
|
|
76
77
|
class="pf-c-form__group"
|
|
77
78
|
role="group"
|
|
78
|
-
aria-labelledby="form-horizontal-checkbox-legend"
|
|
79
|
+
aria-labelledby="form-horizontalform-horizontal-checkbox-legend"
|
|
79
80
|
>
|
|
80
81
|
<div
|
|
81
82
|
class="pf-c-form__group-label pf-m-no-padding-top"
|
|
82
|
-
id="form-horizontal-checkbox-legend"
|
|
83
|
+
id="form-horizontalform-horizontal-checkbox-legend"
|
|
83
84
|
><span class="pf-c-form__label">
|
|
84
85
|
<span class="pf-c-form__label-text">Label (no top padding)</span></span> <span
|
|
85
86
|
class="pf-c-form__group-label-help"
|
|
@@ -160,7 +161,7 @@ cssPrefix: pf-c-form
|
|
|
160
161
|
<div class="pf-c-form__group">
|
|
161
162
|
<div class="pf-c-form__group-label"><label
|
|
162
163
|
class="pf-c-form__label"
|
|
163
|
-
for="form-section-example-
|
|
164
|
+
for="form-section-example-section-1-input"
|
|
164
165
|
>
|
|
165
166
|
<span class="pf-c-form__label-text">Form section 1 inputs</span></label>
|
|
166
167
|
</div>
|
|
@@ -168,8 +169,8 @@ cssPrefix: pf-c-form
|
|
|
168
169
|
<input
|
|
169
170
|
class="pf-c-form-control"
|
|
170
171
|
type="text"
|
|
171
|
-
id="form-section-example-
|
|
172
|
-
name="form-section-example-
|
|
172
|
+
id="form-section-example-section-1-input"
|
|
173
|
+
name="form-section-example-section-1-input"
|
|
173
174
|
required
|
|
174
175
|
/>
|
|
175
176
|
</div>
|
|
@@ -177,7 +178,7 @@ cssPrefix: pf-c-form
|
|
|
177
178
|
<div class="pf-c-form__group">
|
|
178
179
|
<div class="pf-c-form__group-label"><label
|
|
179
180
|
class="pf-c-form__label"
|
|
180
|
-
for="form-section-example-
|
|
181
|
+
for="form-section-example-section-1-input-2"
|
|
181
182
|
>
|
|
182
183
|
<span class="pf-c-form__label-text">Form section 1 inputs</span></label>
|
|
183
184
|
</div>
|
|
@@ -185,8 +186,8 @@ cssPrefix: pf-c-form
|
|
|
185
186
|
<input
|
|
186
187
|
class="pf-c-form-control"
|
|
187
188
|
type="text"
|
|
188
|
-
id="form-section-example-
|
|
189
|
-
name="form-section-example-
|
|
189
|
+
id="form-section-example-section-1-input-2"
|
|
190
|
+
name="form-section-example-section-1-input-2"
|
|
190
191
|
required
|
|
191
192
|
/>
|
|
192
193
|
</div>
|
|
@@ -195,17 +196,17 @@ cssPrefix: pf-c-form
|
|
|
195
196
|
<section
|
|
196
197
|
class="pf-c-form__section"
|
|
197
198
|
role="group"
|
|
198
|
-
aria-labelledby="form-section-example-
|
|
199
|
+
aria-labelledby="form-section-example-section-2-title"
|
|
199
200
|
>
|
|
200
201
|
<div
|
|
201
202
|
class="pf-c-form__section-title"
|
|
202
|
-
id="form-section-example-
|
|
203
|
+
id="form-section-example-section-2-title"
|
|
203
204
|
aria-hidden="true"
|
|
204
205
|
>Section 2 title (optional)</div>
|
|
205
206
|
<div class="pf-c-form__group">
|
|
206
207
|
<div class="pf-c-form__group-label"><label
|
|
207
208
|
class="pf-c-form__label"
|
|
208
|
-
for="form-section-example-
|
|
209
|
+
for="form-section-example-section-2-input"
|
|
209
210
|
>
|
|
210
211
|
<span class="pf-c-form__label-text">Form section 2 inputs</span></label>
|
|
211
212
|
</div>
|
|
@@ -213,8 +214,8 @@ cssPrefix: pf-c-form
|
|
|
213
214
|
<input
|
|
214
215
|
class="pf-c-form-control"
|
|
215
216
|
type="text"
|
|
216
|
-
id="form-section-example-
|
|
217
|
-
name="form-section-example-
|
|
217
|
+
id="form-section-example-section-2-input"
|
|
218
|
+
name="form-section-example-section-2-input"
|
|
218
219
|
required
|
|
219
220
|
/>
|
|
220
221
|
</div>
|
|
@@ -222,7 +223,7 @@ cssPrefix: pf-c-form
|
|
|
222
223
|
<div class="pf-c-form__group">
|
|
223
224
|
<div class="pf-c-form__group-label"><label
|
|
224
225
|
class="pf-c-form__label"
|
|
225
|
-
for="form-section-example-
|
|
226
|
+
for="form-section-example-section-2-input-2"
|
|
226
227
|
>
|
|
227
228
|
<span class="pf-c-form__label-text">Form section 2 inputs</span></label>
|
|
228
229
|
</div>
|
|
@@ -230,8 +231,8 @@ cssPrefix: pf-c-form
|
|
|
230
231
|
<input
|
|
231
232
|
class="pf-c-form-control"
|
|
232
233
|
type="text"
|
|
233
|
-
id="form-section-example-
|
|
234
|
-
name="form-section-example-
|
|
234
|
+
id="form-section-example-section-2-input-2"
|
|
235
|
+
name="form-section-example-section-2-input-2"
|
|
235
236
|
required
|
|
236
237
|
/>
|
|
237
238
|
</div>
|
|
@@ -258,11 +259,13 @@ cssPrefix: pf-c-form
|
|
|
258
259
|
name="form-help-text-name"
|
|
259
260
|
aria-describedby="form-help-text-name-helper"
|
|
260
261
|
/>
|
|
261
|
-
<
|
|
262
|
-
class="pf-c-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
262
|
+
<div class="pf-c-form__helper-text" aria-live="polite">
|
|
263
|
+
<div class="pf-c-helper-text">
|
|
264
|
+
<div class="pf-c-helper-text__item" id="form-help-text-name-helper">
|
|
265
|
+
<span class="pf-c-helper-text__item-text">This is helper text.</span>
|
|
266
|
+
</div>
|
|
267
|
+
</div>
|
|
268
|
+
</div>
|
|
266
269
|
</div>
|
|
267
270
|
</div>
|
|
268
271
|
<div class="pf-c-form__group">
|
|
@@ -278,15 +281,22 @@ cssPrefix: pf-c-form
|
|
|
278
281
|
name="form-help-text-email"
|
|
279
282
|
aria-describedby="form-help-text-email-helper"
|
|
280
283
|
/>
|
|
281
|
-
<
|
|
282
|
-
class="pf-c-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
284
|
+
<div class="pf-c-form__helper-text" aria-live="polite">
|
|
285
|
+
<div class="pf-c-helper-text">
|
|
286
|
+
<div
|
|
287
|
+
class="pf-c-helper-text__item pf-m-warning"
|
|
288
|
+
id="form-help-text-email-helper"
|
|
289
|
+
>
|
|
290
|
+
<span
|
|
291
|
+
class="pf-c-helper-text__item-text"
|
|
292
|
+
>This is helper text for a warning input.</span>
|
|
293
|
+
</div>
|
|
294
|
+
</div>
|
|
295
|
+
</div>
|
|
286
296
|
</div>
|
|
287
297
|
</div>
|
|
288
298
|
<div class="pf-c-form__group">
|
|
289
|
-
<div class="pf-c-form__group-label"><label class="pf-c-form__label" for="
|
|
299
|
+
<div class="pf-c-form__group-label"><label class="pf-c-form__label" for="-address">
|
|
290
300
|
<span class="pf-c-form__label-text">Address</span> <span class="pf-c-form__label-required" aria-hidden="true">*</span></label>
|
|
291
301
|
</div>
|
|
292
302
|
<div class="pf-c-form__group-control">
|
|
@@ -294,16 +304,20 @@ cssPrefix: pf-c-form
|
|
|
294
304
|
class="pf-c-form-control"
|
|
295
305
|
required
|
|
296
306
|
type="text"
|
|
297
|
-
id="
|
|
298
|
-
name="
|
|
307
|
+
id="-address"
|
|
308
|
+
name="-address"
|
|
299
309
|
aria-invalid="true"
|
|
300
|
-
aria-describedby="
|
|
310
|
+
aria-describedby="-address-helper"
|
|
301
311
|
/>
|
|
302
|
-
<
|
|
303
|
-
class="pf-c-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
312
|
+
<div class="pf-c-form__helper-text" aria-live="polite">
|
|
313
|
+
<div class="pf-c-helper-text">
|
|
314
|
+
<div class="pf-c-helper-text__item pf-m-error" id="-address-helper">
|
|
315
|
+
<span
|
|
316
|
+
class="pf-c-helper-text__item-text"
|
|
317
|
+
>This is helper text for an invalid input.</span>
|
|
318
|
+
</div>
|
|
319
|
+
</div>
|
|
320
|
+
</div>
|
|
307
321
|
</div>
|
|
308
322
|
</div>
|
|
309
323
|
<div class="pf-c-form__group">
|
|
@@ -319,34 +333,48 @@ cssPrefix: pf-c-form
|
|
|
319
333
|
name="form-help-text-comment"
|
|
320
334
|
aria-describedby="form-help-text-comment-helper"
|
|
321
335
|
/>
|
|
322
|
-
<
|
|
323
|
-
class="pf-c-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
336
|
+
<div class="pf-c-form__helper-text" aria-live="polite">
|
|
337
|
+
<div class="pf-c-helper-text">
|
|
338
|
+
<div
|
|
339
|
+
class="pf-c-helper-text__item pf-m-success"
|
|
340
|
+
id="form-help-text-comment-helper"
|
|
341
|
+
>
|
|
342
|
+
<span
|
|
343
|
+
class="pf-c-helper-text__item-text"
|
|
344
|
+
>This is helper text for success input.</span>
|
|
345
|
+
</div>
|
|
346
|
+
</div>
|
|
347
|
+
</div>
|
|
327
348
|
</div>
|
|
328
349
|
</div>
|
|
329
350
|
<div class="pf-c-form__group">
|
|
330
351
|
<div class="pf-c-form__group-label"><label class="pf-c-form__label" for="form-help-text-info">
|
|
331
352
|
<span class="pf-c-form__label-text">Information</span></label>
|
|
332
353
|
</div>
|
|
333
|
-
<
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
class="pf-c-form__helper-text
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
354
|
+
<div class="pf-c-form__group-control">
|
|
355
|
+
<textarea
|
|
356
|
+
class="pf-c-form-control"
|
|
357
|
+
id="form-help-text-info"
|
|
358
|
+
name="form-help-text-info"
|
|
359
|
+
aria-invalid="true"
|
|
360
|
+
aria-describedby="form-help-text-info-helper"
|
|
361
|
+
></textarea>
|
|
362
|
+
<div class="pf-c-form__helper-text" aria-live="polite">
|
|
363
|
+
<div class="pf-c-helper-text">
|
|
364
|
+
<div
|
|
365
|
+
class="pf-c-helper-text__item pf-m-error"
|
|
366
|
+
id="form-help-text-info-helper"
|
|
367
|
+
>
|
|
368
|
+
<span class="pf-c-helper-text__item-icon">
|
|
369
|
+
<i class="fas fa-fw fa-exclamation-circle" aria-hidden="true"></i>
|
|
370
|
+
</span>
|
|
371
|
+
<span
|
|
372
|
+
class="pf-c-helper-text__item-text"
|
|
373
|
+
>This is helper text with an icon.</span>
|
|
374
|
+
</div>
|
|
375
|
+
</div>
|
|
376
|
+
</div>
|
|
377
|
+
</div>
|
|
350
378
|
</div>
|
|
351
379
|
</form>
|
|
352
380
|
|
|
@@ -362,7 +390,7 @@ cssPrefix: pf-c-form
|
|
|
362
390
|
<span class="pf-c-form__label-text">Name</span> <span class="pf-c-form__label-required" aria-hidden="true">*</span></label> <span
|
|
363
391
|
class="pf-c-form__group-label-help"
|
|
364
392
|
aria-label="More information for name field"
|
|
365
|
-
aria-describedby="form-additional-info-name"
|
|
393
|
+
aria-describedby="form-additional-infoform-additional-info-name"
|
|
366
394
|
role="button"
|
|
367
395
|
type="button"
|
|
368
396
|
tabindex="0"
|
|
@@ -427,12 +455,12 @@ cssPrefix: pf-c-form
|
|
|
427
455
|
<div class="pf-c-form__group">
|
|
428
456
|
<div class="pf-c-form__group-label"><label
|
|
429
457
|
class="pf-c-form__label"
|
|
430
|
-
for="form-field-
|
|
458
|
+
for="form-field-group-field-group-label1"
|
|
431
459
|
>
|
|
432
460
|
<span class="pf-c-form__label-text">Label 1</span> <span class="pf-c-form__label-required" aria-hidden="true">*</span></label> <span
|
|
433
461
|
class="pf-c-form__group-label-help"
|
|
434
462
|
aria-label="More information for label 1 field"
|
|
435
|
-
aria-describedby="form-field-
|
|
463
|
+
aria-describedby="form-field-group-field-group-label1"
|
|
436
464
|
role="button"
|
|
437
465
|
type="button"
|
|
438
466
|
tabindex="0"
|
|
@@ -442,8 +470,8 @@ cssPrefix: pf-c-form
|
|
|
442
470
|
<input
|
|
443
471
|
class="pf-c-form-control"
|
|
444
472
|
type="text"
|
|
445
|
-
id="form-field-
|
|
446
|
-
name="form-field-
|
|
473
|
+
id="form-field-group-field-group-label1"
|
|
474
|
+
name="form-field-group-field-group-label1"
|
|
447
475
|
required
|
|
448
476
|
/>
|
|
449
477
|
</div>
|
|
@@ -451,12 +479,12 @@ cssPrefix: pf-c-form
|
|
|
451
479
|
<div class="pf-c-form__group">
|
|
452
480
|
<div class="pf-c-form__group-label"><label
|
|
453
481
|
class="pf-c-form__label"
|
|
454
|
-
for="form-field-
|
|
482
|
+
for="form-field-group-field-group-label2"
|
|
455
483
|
>
|
|
456
484
|
<span class="pf-c-form__label-text">Label 2</span> <span class="pf-c-form__label-required" aria-hidden="true">*</span></label> <span
|
|
457
485
|
class="pf-c-form__group-label-help"
|
|
458
486
|
aria-label="More information for label 2 field"
|
|
459
|
-
aria-describedby="form-field-
|
|
487
|
+
aria-describedby="form-field-group-field-group-label2"
|
|
460
488
|
role="button"
|
|
461
489
|
type="button"
|
|
462
490
|
tabindex="0"
|
|
@@ -466,8 +494,8 @@ cssPrefix: pf-c-form
|
|
|
466
494
|
<input
|
|
467
495
|
class="pf-c-form-control"
|
|
468
496
|
type="text"
|
|
469
|
-
id="form-field-
|
|
470
|
-
name="form-field-
|
|
497
|
+
id="form-field-group-field-group-label2"
|
|
498
|
+
name="form-field-group-field-group-label2"
|
|
471
499
|
required
|
|
472
500
|
/>
|
|
473
501
|
</div>
|
|
@@ -686,8 +714,7 @@ To avoid the form label's required indicator or help tooltip icon from wrapping
|
|
|
686
714
|
| `for` | `<label>` | Each `<label>` must have a `for` attribute that matches its form field id. **Required** |
|
|
687
715
|
| `id` | `<input type="radio/checkbox/text">`, `<select>`, `<textarea>` | Each `<form>` field must have an `id` attribute that matches its label's `for` value. **Required** |
|
|
688
716
|
| `required` | `<input>`, `<select>`, `<textarea>` | Required fields must include these attributes. |
|
|
689
|
-
| `
|
|
690
|
-
| `aria-describedby="{helper_text_id}"` | `<input>`, `<select>`, `<textarea>` | Form fields with related `.pf-c-form__helper-text` require this attribute. Usage `<input aria-describedby="{helper_text_id}">`. |
|
|
717
|
+
| `aria-describedby="{helper_text_id}"` | `<input>`, `<select>`, `<textarea>` | Form fields with related `.pf-c-helper-text` require this attribute. Usage `<input aria-describedby="{helper_text_id}">`. |
|
|
691
718
|
| `aria-invalid="true" aria-describedby="{helper_text_id}"` | `<input>`, `<select>`, `<textarea>` | When form validation fails `aria-describedby` is used to communicate the error to the user. These attributes need to be handled with Javascript so that `aria-describedby` only references help text that explains the error, and so that `aria-invalid="true"` is only present when validation fails. For proper styling of errors `aria-invalid="true"` is required. |
|
|
692
719
|
| `aria-hidden="true"` | `.pf-c-form__label-required` | Hides the required indicator from assistive technologies. |
|
|
693
720
|
| `role="group"` | `.pf-c-form__group`, `.pf-c-form__section`, `.pf-c-form__field-group` | Provides group role for form groups, form sections, and form field groups. **Required for checkbox groups, form groups, form sections, and form field groups.** |
|
|
@@ -721,7 +748,6 @@ To avoid the form label's required indicator or help tooltip icon from wrapping
|
|
|
721
748
|
| `.pf-c-form__group-control` | `<div>` | Initiates a form group control section. |
|
|
722
749
|
| `.pf-c-form__actions` | `<div>` | Iniates a row of actions. |
|
|
723
750
|
| `.pf-c-form__helper-text` | `<p>`, `<div>` | Initiates a form helper text block. |
|
|
724
|
-
| `.pf-c-form__helper-text-icon` | `<span>` | Initiates a form helper text icon. |
|
|
725
751
|
| `.pf-c-form__alert` | `<div>` | Initiates the form alert container for inline alerts. |
|
|
726
752
|
| `.pf-c-form__field-group` | `<div>` | Initiates a form field group. |
|
|
727
753
|
| `.pf-c-form__field-group-toggle` | `<div>` | Initiates the form field group toggle. |
|
|
@@ -738,10 +764,6 @@ To avoid the form label's required indicator or help tooltip icon from wrapping
|
|
|
738
764
|
| `.pf-m-limit-width` | `.pf-c-form` | Limits the overall max-width of the form. Configurable by defining `--pf-c-form--m-limit-width--MaxWidth`. |
|
|
739
765
|
| `.pf-m-info` | `.pf-c-form__group-label` | Modifies the form group label to contain form group label info. |
|
|
740
766
|
| `.pf-m-action` | `.pf-c-form__group` | Modifies form group margin-top. |
|
|
741
|
-
| `.pf-m-success` | `.pf-c-form__helper-text` | Modifies text color of helper text for success state. |
|
|
742
|
-
| `.pf-m-warning` | `.pf-c-form__helper-text` | Modifies text color of helper text for warning state. |
|
|
743
|
-
| `.pf-m-error` | `.pf-c-form__helper-text`| Modifies text color of helper text for error state. |
|
|
744
|
-
| `.pf-m-inactive` | `.pf-c-form__helper-text`| Modifies display of helper text to none. |
|
|
745
767
|
| `.pf-m-disabled` | `.pf-c-form__label` | Modifies form label to show disabled state. |
|
|
746
768
|
| `.pf-m-no-padding-top` | `.pf-c-form__group-label` | Removes top padding from the label element for labels adjacent to an element that isn't a form control. |
|
|
747
769
|
| `.pf-m-inline` | `.pf-c-form__group-control` | Modifies form group children to be inline (this is primarily for radio buttons and checkboxes). |
|
|
@@ -12,25 +12,21 @@ cssPrefix: pf-c-helper-text
|
|
|
12
12
|
<span class="pf-c-helper-text__item-text">This is default helper text</span>
|
|
13
13
|
</div>
|
|
14
14
|
</div>
|
|
15
|
-
|
|
16
15
|
<div class="pf-c-helper-text">
|
|
17
16
|
<div class="pf-c-helper-text__item pf-m-indeterminate">
|
|
18
17
|
<span class="pf-c-helper-text__item-text">This is indeterminate helper text</span>
|
|
19
18
|
</div>
|
|
20
19
|
</div>
|
|
21
|
-
|
|
22
20
|
<div class="pf-c-helper-text">
|
|
23
21
|
<div class="pf-c-helper-text__item pf-m-warning">
|
|
24
22
|
<span class="pf-c-helper-text__item-text">This is warning helper text</span>
|
|
25
23
|
</div>
|
|
26
24
|
</div>
|
|
27
|
-
|
|
28
25
|
<div class="pf-c-helper-text">
|
|
29
26
|
<div class="pf-c-helper-text__item pf-m-success">
|
|
30
27
|
<span class="pf-c-helper-text__item-text">This is success helper text</span>
|
|
31
28
|
</div>
|
|
32
29
|
</div>
|
|
33
|
-
|
|
34
30
|
<div class="pf-c-helper-text">
|
|
35
31
|
<div class="pf-c-helper-text__item pf-m-error">
|
|
36
32
|
<span class="pf-c-helper-text__item-text">This is error helper text</span>
|
|
@@ -50,7 +46,6 @@ cssPrefix: pf-c-helper-text
|
|
|
50
46
|
<span class="pf-c-helper-text__item-text">This is default helper text</span>
|
|
51
47
|
</div>
|
|
52
48
|
</div>
|
|
53
|
-
|
|
54
49
|
<div class="pf-c-helper-text">
|
|
55
50
|
<div class="pf-c-helper-text__item pf-m-indeterminate">
|
|
56
51
|
<span class="pf-c-helper-text__item-icon">
|
|
@@ -59,7 +54,6 @@ cssPrefix: pf-c-helper-text
|
|
|
59
54
|
<span class="pf-c-helper-text__item-text">This is indeterminate helper text</span>
|
|
60
55
|
</div>
|
|
61
56
|
</div>
|
|
62
|
-
|
|
63
57
|
<div class="pf-c-helper-text">
|
|
64
58
|
<div class="pf-c-helper-text__item pf-m-warning">
|
|
65
59
|
<span class="pf-c-helper-text__item-icon">
|
|
@@ -68,7 +62,6 @@ cssPrefix: pf-c-helper-text
|
|
|
68
62
|
<span class="pf-c-helper-text__item-text">This is warning helper text</span>
|
|
69
63
|
</div>
|
|
70
64
|
</div>
|
|
71
|
-
|
|
72
65
|
<div class="pf-c-helper-text">
|
|
73
66
|
<div class="pf-c-helper-text__item pf-m-success">
|
|
74
67
|
<span class="pf-c-helper-text__item-icon">
|
|
@@ -77,7 +70,6 @@ cssPrefix: pf-c-helper-text
|
|
|
77
70
|
<span class="pf-c-helper-text__item-text">This is success helper text</span>
|
|
78
71
|
</div>
|
|
79
72
|
</div>
|
|
80
|
-
|
|
81
73
|
<div class="pf-c-helper-text">
|
|
82
74
|
<div class="pf-c-helper-text__item pf-m-error">
|
|
83
75
|
<span class="pf-c-helper-text__item-icon">
|
|
@@ -121,36 +113,32 @@ cssPrefix: pf-c-helper-text
|
|
|
121
113
|
<span class="pf-c-helper-text__item-text">This is default helper text</span>
|
|
122
114
|
</div>
|
|
123
115
|
</div>
|
|
124
|
-
|
|
125
116
|
<div class="pf-c-helper-text">
|
|
126
|
-
<div class="pf-c-helper-text__item pf-m-
|
|
117
|
+
<div class="pf-c-helper-text__item pf-m-indeterminate pf-m-dynamic">
|
|
127
118
|
<span class="pf-c-helper-text__item-icon">
|
|
128
119
|
<i class="fas fa-fw fa-minus" aria-hidden="true"></i>
|
|
129
120
|
</span>
|
|
130
121
|
<span class="pf-c-helper-text__item-text">This is indeterminate helper text</span>
|
|
131
122
|
</div>
|
|
132
123
|
</div>
|
|
133
|
-
|
|
134
124
|
<div class="pf-c-helper-text">
|
|
135
|
-
<div class="pf-c-helper-text__item pf-m-
|
|
125
|
+
<div class="pf-c-helper-text__item pf-m-warning pf-m-dynamic">
|
|
136
126
|
<span class="pf-c-helper-text__item-icon">
|
|
137
127
|
<i class="fas fa-fw fa-exclamation-triangle" aria-hidden="true"></i>
|
|
138
128
|
</span>
|
|
139
129
|
<span class="pf-c-helper-text__item-text">This is warning helper text</span>
|
|
140
130
|
</div>
|
|
141
131
|
</div>
|
|
142
|
-
|
|
143
132
|
<div class="pf-c-helper-text">
|
|
144
|
-
<div class="pf-c-helper-text__item pf-m-
|
|
133
|
+
<div class="pf-c-helper-text__item pf-m-success pf-m-dynamic">
|
|
145
134
|
<span class="pf-c-helper-text__item-icon">
|
|
146
135
|
<i class="fas fa-fw fa-check-circle" aria-hidden="true"></i>
|
|
147
136
|
</span>
|
|
148
137
|
<span class="pf-c-helper-text__item-text">This is success helper text</span>
|
|
149
138
|
</div>
|
|
150
139
|
</div>
|
|
151
|
-
|
|
152
140
|
<div class="pf-c-helper-text">
|
|
153
|
-
<div class="pf-c-helper-text__item pf-m-
|
|
141
|
+
<div class="pf-c-helper-text__item pf-m-error pf-m-dynamic">
|
|
154
142
|
<span class="pf-c-helper-text__item-icon">
|
|
155
143
|
<i class="fas fa-fw fa-exclamation-circle" aria-hidden="true"></i>
|
|
156
144
|
</span>
|
|
@@ -163,30 +151,30 @@ cssPrefix: pf-c-helper-text
|
|
|
163
151
|
### Dynamic list
|
|
164
152
|
|
|
165
153
|
```html
|
|
166
|
-
<
|
|
167
|
-
<
|
|
154
|
+
<div class="pf-c-helper-text">
|
|
155
|
+
<div class="pf-c-helper-text__item pf-m-success pf-m-dynamic">
|
|
168
156
|
<span class="pf-c-helper-text__item-icon">
|
|
169
157
|
<i class="fas fa-fw fa-check-circle" aria-hidden="true"></i>
|
|
170
158
|
</span>
|
|
171
159
|
<span class="pf-c-helper-text__item-text">Must be at least 14 characters</span>
|
|
172
|
-
</
|
|
173
|
-
<
|
|
160
|
+
</div>
|
|
161
|
+
<div class="pf-c-helper-text__item pf-m-error pf-m-dynamic">
|
|
174
162
|
<span class="pf-c-helper-text__item-icon">
|
|
175
163
|
<i class="fas fa-fw fa-exclamation-circle" aria-hidden="true"></i>
|
|
176
164
|
</span>
|
|
177
165
|
<span
|
|
178
166
|
class="pf-c-helper-text__item-text"
|
|
179
167
|
>Cannot contain any variation of the word "redhat"</span>
|
|
180
|
-
</
|
|
181
|
-
<
|
|
168
|
+
</div>
|
|
169
|
+
<div class="pf-c-helper-text__item pf-m-success pf-m-dynamic">
|
|
182
170
|
<span class="pf-c-helper-text__item-icon">
|
|
183
171
|
<i class="fas fa-fw fa-check-circle" aria-hidden="true"></i>
|
|
184
172
|
</span>
|
|
185
173
|
<span
|
|
186
174
|
class="pf-c-helper-text__item-text"
|
|
187
175
|
>Must include at least 3 of the following: lowercase letter, uppercase letters, numbers, symbols</span>
|
|
188
|
-
</
|
|
189
|
-
</
|
|
176
|
+
</div>
|
|
177
|
+
</div>
|
|
190
178
|
|
|
191
179
|
```
|
|
192
180
|
|
|
@@ -203,3 +191,4 @@ cssPrefix: pf-c-helper-text
|
|
|
203
191
|
| `.pf-m-warning` | `.pf-c-helper-text__item` | Modifies a helper text item for warning state styles. |
|
|
204
192
|
| `.pf-m-success` | `.pf-c-helper-text__item` | Modifies a helper text item for success state styles. |
|
|
205
193
|
| `.pf-m-error` | `.pf-c-helper-text__item` | Modifies a helper text item for error state styles. |
|
|
194
|
+
| `.pf-m-hidden` | `.pf-c-helper-text` | Hides helper text. |
|
|
@@ -84,7 +84,7 @@ cssPrefix: pf-c-icon
|
|
|
84
84
|
</span>
|
|
85
85
|
</span>
|
|
86
86
|
<span class="pf-c-icon">
|
|
87
|
-
<span class="pf-c-icon__content pf-m-
|
|
87
|
+
<span class="pf-c-icon__content pf-m-custom">
|
|
88
88
|
<i class="fas fa-bell" aria-hidden="true"></i>
|
|
89
89
|
</span>
|
|
90
90
|
</span>
|
|
@@ -252,4 +252,4 @@ Refer to the [icons](/guidelines/icons) page for information about the PatternFl
|
|
|
252
252
|
| `.pf-m-[sm,md,lg,xl]` | `.pf-c-icon` | Modifies the icon container to be small, medium, large, or extra large. |
|
|
253
253
|
| `.pf-m-[sm,md,lg,xl]` | `.pf-c-icon__content`, `pf-c-icon__progress` | Modifies the icon content or progress element to be small, medium, large, or extra large. |
|
|
254
254
|
| `.pf-m-in-progress` | `.pf-c-icon` | Shows the progress element in place of the icon content. |
|
|
255
|
-
| `.pf-m-danger`, `.pf-m-warning`, `.pf-m-success`, `.pf-m-info`, `.pf-m-
|
|
255
|
+
| `.pf-m-danger`, `.pf-m-warning`, `.pf-m-success`, `.pf-m-info`, `.pf-m-custom` | `.pf-c-icon__content` | Modifies the icon content to use a status color. |
|