@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.
Files changed (115) hide show
  1. package/RELEASE-NOTES.md +1 -1
  2. package/assets/pficon/pficon.scss +1 -2
  3. package/base/_fa-icons.scss +1 -2
  4. package/base/_fonts.scss +5 -10
  5. package/base/_globals.scss +91 -85
  6. package/base/_variables.scss +3 -3
  7. package/base/patternfly-fa-icons.css +1 -1
  8. package/base/patternfly-fonts.css +5 -5
  9. package/base/patternfly-globals.css +35 -41
  10. package/base/patternfly-icons.css +2 -2
  11. package/base/patternfly-pf-icons.css +1 -1
  12. package/base/patternfly-themes.css +0 -42
  13. package/base/patternfly-variables.css +3 -3
  14. package/components/AboutModalBox/about-modal-box.css +0 -38
  15. package/components/Alert/alert.css +14 -5
  16. package/components/Alert/alert.scss +18 -4
  17. package/components/Alert/themes/dark/alert.scss +1 -1
  18. package/components/Banner/banner.css +0 -38
  19. package/components/DatePicker/date-picker.css +0 -8
  20. package/components/DatePicker/date-picker.scss +0 -9
  21. package/components/HelperText/helper-text.css +4 -0
  22. package/components/HelperText/helper-text.scss +5 -0
  23. package/components/Icon/icon.css +3 -3
  24. package/components/Icon/icon.scss +3 -3
  25. package/components/Label/label.css +6 -6
  26. package/components/Label/label.scss +4 -4
  27. package/components/Label/themes/dark/label.scss +2 -2
  28. package/components/LogViewer/log-viewer.css +0 -38
  29. package/components/Login/login.css +0 -40
  30. package/components/Masthead/masthead.css +0 -38
  31. package/components/ModalBox/modal-box.css +3 -3
  32. package/components/ModalBox/modal-box.scss +3 -3
  33. package/components/NotificationDrawer/notification-drawer.css +5 -5
  34. package/components/NotificationDrawer/notification-drawer.scss +5 -5
  35. package/components/Page/page.css +0 -42
  36. package/components/Popover/popover.css +6 -6
  37. package/components/Popover/popover.scss +5 -5
  38. package/components/Popover/themes/dark/popover.scss +1 -1
  39. package/components/Wizard/wizard.css +0 -38
  40. package/docs/components/Alert/examples/Alert.md +15 -15
  41. package/docs/components/AlertGroup/examples/AlertGroup.md +6 -6
  42. package/docs/components/AppLauncher/examples/application-launcher.md +1 -0
  43. package/docs/components/Check/examples/Check.md +1 -0
  44. package/docs/components/ContextSelector/examples/context-selector.md +1 -0
  45. package/docs/components/DatePicker/examples/DatePicker.md +15 -3
  46. package/docs/components/Dropdown/examples/Dropdown.md +1 -0
  47. package/docs/components/FileUpload/examples/FileUpload.md +11 -6
  48. package/docs/components/Form/examples/Form.md +95 -73
  49. package/docs/components/FormControl/examples/FormControl.md +1 -0
  50. package/docs/components/HelperText/examples/HelperText.md +13 -24
  51. package/docs/components/Icon/examples/Icon.md +2 -2
  52. package/docs/components/Login/examples/Login.md +67 -30
  53. package/docs/components/Menu/examples/Menu.md +1 -0
  54. package/docs/components/MenuToggle/examples/MenuToggle.md +1 -0
  55. package/docs/components/ModalBox/examples/ModalBox.md +8 -8
  56. package/docs/components/MultipleFileUpload/examples/MultipleFileUpload.md +2 -1
  57. package/docs/components/NotificationDrawer/examples/NotificationDrawer.md +22 -22
  58. package/docs/components/OptionsMenu/examples/options-menu.md +1 -0
  59. package/docs/components/Popover/examples/Popover.md +9 -9
  60. package/docs/components/Progress/examples/Progress.md +1 -1
  61. package/docs/components/Radio/examples/Radio.md +1 -0
  62. package/docs/components/Select/examples/Select.md +1 -0
  63. package/docs/demos/Alert/examples/Alert.md +105 -58
  64. package/docs/demos/CardView/examples/CardView.md +1 -1
  65. package/docs/demos/Dashboard/examples/Dashboard.md +1 -1
  66. package/docs/demos/Form/examples/BasicForms.md +130 -140
  67. package/docs/demos/HelperText/examples/HelperText.md +11 -8
  68. package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +30 -30
  69. package/docs/demos/PasswordGenerator/examples/PasswordGenerator.md +1 -1
  70. package/docs/demos/PasswordStrength/examples/PasswordStrength.md +88 -54
  71. package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +1 -1
  72. package/docs/demos/Toolbar/examples/Toolbar.md +17 -5
  73. package/docs/utilities/Accessibility/examples/Accessibility.md +1 -1
  74. package/docs/utilities/Alignment/examples/Alignment.md +1 -1
  75. package/docs/utilities/BackgroundColor/examples/BackgroundColor.md +1 -1
  76. package/docs/utilities/BoxShadow/examples/box-shadow.md +1 -1
  77. package/docs/utilities/Display/examples/Display.md +1 -1
  78. package/docs/utilities/Flex/examples/Flex.md +1 -1
  79. package/docs/utilities/Float/examples/Float.md +1 -1
  80. package/docs/utilities/Sizing/examples/Sizing.md +1 -1
  81. package/docs/utilities/Spacing/examples/Spacing.md +1 -1
  82. package/docs/utilities/Text/examples/Text.md +5 -5
  83. package/package.json +2 -2
  84. package/patternfly-addons.css +48 -48
  85. package/{patternfly-base-no-reset.css → patternfly-base-no-globals.css} +10 -31
  86. package/{patternfly-base-no-reset.scss → patternfly-base-no-globals.scss} +1 -0
  87. package/patternfly-base.css +45 -72
  88. package/{patternfly-no-reset.css → patternfly-no-globals.css} +56 -1245
  89. package/{patternfly-no-reset.scss → patternfly-no-globals.scss} +1 -0
  90. package/patternfly.css +87 -1282
  91. package/patternfly.min.css +1 -1
  92. package/patternfly.min.css.map +1 -1
  93. package/sass-utilities/placeholders.scss +0 -23
  94. package/sass-utilities/scss-variables.scss +4 -5
  95. package/sass-utilities/themes/dark/placeholders.scss +0 -22
  96. package/utilities/Text/text.css +48 -48
  97. package/utilities/Text/text.scss +6 -6
  98. package/utilities/Text/themes/dark/text.scss +2 -2
  99. package/assets/fonts/RedHatDisplay/RedHatDisplay-Black.woff +0 -0
  100. package/assets/fonts/RedHatDisplay/RedHatDisplay-BlackItalic.woff +0 -0
  101. package/assets/fonts/RedHatDisplay/RedHatDisplay-Bold.woff +0 -0
  102. package/assets/fonts/RedHatDisplay/RedHatDisplay-BoldItalic.woff +0 -0
  103. package/assets/fonts/RedHatDisplay/RedHatDisplay-Italic.woff +0 -0
  104. package/assets/fonts/RedHatDisplay/RedHatDisplay-Medium.woff +0 -0
  105. package/assets/fonts/RedHatDisplay/RedHatDisplay-MediumItalic.woff +0 -0
  106. package/assets/fonts/RedHatDisplay/RedHatDisplay-Regular.woff +0 -0
  107. package/assets/fonts/RedHatText/RedHatText-Bold.woff +0 -0
  108. package/assets/fonts/RedHatText/RedHatText-BoldItalic.woff +0 -0
  109. package/assets/fonts/RedHatText/RedHatText-Italic.woff +0 -0
  110. package/assets/fonts/RedHatText/RedHatText-Medium.woff +0 -0
  111. package/assets/fonts/RedHatText/RedHatText-MediumItalic.woff +0 -0
  112. package/assets/fonts/RedHatText/RedHatText-Regular.woff +0 -0
  113. package/assets/fonts/webfonts/fa-solid-900.woff +0 -0
  114. package/assets/pficon/pficon.woff +0 -0
  115. 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>&nbsp;<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-form-section-1-input"
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-form-section-1-input"
172
- name="form-section-example-form-section-1-input"
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-form-section-1-input-2"
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-form-section-1-input-2"
189
- name="form-section-example-form-section-1-input-2"
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-section2-title"
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-section2-title"
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-form-section-2-input"
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-form-section-2-input"
217
- name="form-section-example-form-section-2-input"
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-form-section-2-input-2"
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-form-section-2-input-2"
234
- name="form-section-example-form-section-2-input-2"
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
- <p
262
- class="pf-c-form__helper-text"
263
- id="form-help-text-name-helper"
264
- aria-live="polite"
265
- >This is helper text.</p>
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
- <p
282
- class="pf-c-form__helper-text pf-m-warning"
283
- id="form-help-text-email-helper"
284
- aria-live="polite"
285
- >This is helper text for a warning input.</p>
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="form-help-text-address">
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>&nbsp;<span class="pf-c-form__label-required" aria-hidden="true">&#42;</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="form-help-text-address"
298
- name="form-help-text-address"
307
+ id="-address"
308
+ name="-address"
299
309
  aria-invalid="true"
300
- aria-describedby="form-help-text-address-helper"
310
+ aria-describedby="-address-helper"
301
311
  />
302
- <p
303
- class="pf-c-form__helper-text pf-m-error"
304
- id="form-help-text-address-helper"
305
- aria-live="polite"
306
- >This is helper text for an invalid input.</p>
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
- <p
323
- class="pf-c-form__helper-text pf-m-success"
324
- id="form-help-text-comment-helper"
325
- aria-live="polite"
326
- >This is helper text for success input.</p>
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
- <textarea
334
- class="pf-c-form-control"
335
- id="form-help-text-info"
336
- name="form-help-text-info"
337
- aria-invalid="true"
338
- aria-describedby="form-help-text-info-helper"
339
- ></textarea>
340
- <p
341
- class="pf-c-form__helper-text pf-m-error"
342
- id="form-help-text-info-helper"
343
- aria-live="polite"
344
- >
345
- <span class="pf-c-form__helper-text-icon">
346
- <i class="fas fa-exclamation-circle" aria-hidden="true"></i>
347
- </span>
348
- This is helper text with an icon.
349
- </p>
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>&nbsp;<span class="pf-c-form__label-required" aria-hidden="true">&#42;</span></label>&nbsp;<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-groupform-field-group-field-group-label1"
458
+ for="form-field-group-field-group-label1"
431
459
  >
432
460
  <span class="pf-c-form__label-text">Label 1</span>&nbsp;<span class="pf-c-form__label-required" aria-hidden="true">&#42;</span></label>&nbsp;<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-groupform-field-group-field-group-label1"
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-groupform-field-group-field-group-label1"
446
- name="form-field-groupform-field-group-field-group-label1"
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-groupform-field-group-field-group-label2"
482
+ for="form-field-group-field-group-label2"
455
483
  >
456
484
  <span class="pf-c-form__label-text">Label 2</span>&nbsp;<span class="pf-c-form__label-required" aria-hidden="true">&#42;</span></label>&nbsp;<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-groupform-field-group-field-group-label2"
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-groupform-field-group-field-group-label2"
470
- name="form-field-groupform-field-group-field-group-label2"
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
- | `id="{helper_text_id}"` | `.pf-c-form__helper-text` | Form fields with related `.pf-c-form__helper-text` require this attribute. Usage `<p class="pf-c-form__helper-text" id="{helper_text_id}">`. |
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). |
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  id: Form control
3
3
  section: components
4
+ subsection: forms
4
5
  cssPrefix: pf-c-form-control
5
6
  ---import './FormControl.css'
6
7
 
@@ -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-dynamic pf-m-indeterminate">
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-dynamic pf-m-warning">
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-dynamic pf-m-success">
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-dynamic pf-m-error">
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
- <ul class="pf-c-helper-text" role="list">
167
- <li class="pf-c-helper-text__item pf-m-dynamic pf-m-success">
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
- </li>
173
- <li class="pf-c-helper-text__item pf-m-dynamic pf-m-error">
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
- </li>
181
- <li class="pf-c-helper-text__item pf-m-dynamic pf-m-success">
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
- </li>
189
- </ul>
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-default">
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-default` | `.pf-c-icon__content` | Modifies the icon content to use a status color. |
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. |