@patternfly/patternfly 5.0.0-alpha.49 → 5.0.0-alpha.50

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 (72) hide show
  1. package/base/patternfly-variables.css +1 -1
  2. package/components/Breadcrumb/breadcrumb.css +1 -5
  3. package/components/Breadcrumb/breadcrumb.scss +1 -8
  4. package/components/Divider/divider.css +12 -12
  5. package/components/List/list.css +1 -1
  6. package/components/List/list.scss +1 -1
  7. package/components/LogViewer/log-viewer.css +0 -3
  8. package/components/LogViewer/log-viewer.scss +0 -4
  9. package/components/Masthead/masthead.css +12 -12
  10. package/components/MultipleFileUpload/multiple-file-upload.css +3 -3
  11. package/components/MultipleFileUpload/multiple-file-upload.scss +3 -3
  12. package/components/Pagination/pagination.css +12 -12
  13. package/components/Tabs/tabs.css +24 -24
  14. package/components/TextInputGroup/text-input-group.css +1 -5
  15. package/components/TextInputGroup/text-input-group.scss +1 -7
  16. package/components/Toolbar/toolbar.css +54 -54
  17. package/components/_all.scss +1 -2
  18. package/docs/components/AppLauncher/examples/application-launcher.md +8 -7
  19. package/docs/components/Chip/examples/Chip.md +713 -4
  20. package/docs/components/ContextSelector/examples/context-selector.md +12 -12
  21. package/docs/components/DualListSelector/examples/DualListSelector.md +32 -32
  22. package/docs/components/LogViewer/examples/LogViewer.md +40 -40
  23. package/docs/components/Menu/examples/Menu.md +20 -18
  24. package/docs/components/Select/examples/Select.md +16 -14
  25. package/docs/components/TextInputGroup/examples/TextInputGroup.css +0 -13
  26. package/docs/components/TextInputGroup/examples/TextInputGroup.md +21 -21
  27. package/docs/components/Toolbar/examples/Toolbar.md +10 -10
  28. package/docs/components/TreeView/examples/TreeView.md +8 -7
  29. package/docs/demos/AboutModal/examples/AboutModal.md +21 -21
  30. package/docs/demos/Alert/examples/Alert.md +63 -63
  31. package/docs/demos/BackToTop/examples/BackToTop.md +21 -21
  32. package/docs/demos/Banner/examples/Banner.md +42 -42
  33. package/docs/demos/CardView/examples/CardView.md +21 -21
  34. package/docs/demos/ContextSelector/examples/ContextSelector.md +95 -91
  35. package/docs/demos/Dashboard/examples/Dashboard.md +21 -21
  36. package/docs/demos/DataList/examples/DataList.md +104 -105
  37. package/docs/demos/DescriptionList/examples/DescriptionList.md +63 -63
  38. package/docs/demos/Drawer/examples/Drawer.md +105 -105
  39. package/docs/demos/JumpLinks/examples/JumpLinks.md +126 -126
  40. package/docs/demos/Masthead/examples/Masthead.md +56 -55
  41. package/docs/demos/Modal/examples/Modal.md +126 -126
  42. package/docs/demos/Nav/examples/Nav.md +168 -168
  43. package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +105 -105
  44. package/docs/demos/Page/examples/Page.md +189 -189
  45. package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +153 -153
  46. package/docs/demos/Skeleton/examples/Skeleton.md +21 -21
  47. package/docs/demos/Table/examples/Table.md +339 -339
  48. package/docs/demos/Tabs/examples/Tabs.md +126 -126
  49. package/docs/demos/Toolbar/examples/Toolbar.md +50 -50
  50. package/docs/demos/Wizard/examples/Wizard.md +189 -189
  51. package/docs/layouts/Flex/examples/Flex.md +319 -215
  52. package/layouts/Flex/flex.css +738 -31
  53. package/layouts/Flex/flex.scss +101 -17
  54. package/package.json +1 -1
  55. package/patternfly-base-no-globals.css +1 -1
  56. package/patternfly-base.css +1 -1
  57. package/patternfly-no-globals.css +859 -389
  58. package/patternfly.css +859 -389
  59. package/patternfly.min.css +1 -1
  60. package/patternfly.min.css.map +1 -1
  61. package/sass-utilities/component-namespaces.scss +0 -3
  62. package/sass-utilities/functions.scss +9 -5
  63. package/sass-utilities/themes/dark/scss-variables.scss +1 -4
  64. package/components/Breadcrumb/themes/dark/breadcrumb.scss +0 -7
  65. package/components/SearchInput/search-input.css +0 -199
  66. package/components/SearchInput/search-input.scss +0 -231
  67. package/components/SearchInput/themes/dark/search-input.scss +0 -16
  68. package/docs/components/ChipGroup/examples/ChipGroup.md +0 -716
  69. package/docs/components/SearchInput/examples/SearchInput.css +0 -12
  70. package/docs/components/SearchInput/examples/SearchInput.md +0 -681
  71. /package/components/{ChipGroup → Chip}/chip-group.css +0 -0
  72. /package/components/{ChipGroup → Chip}/chip-group.scss +0 -0
@@ -1,12 +0,0 @@
1
- #ws-core-c-search-input-advanced-search-expanded,
2
- #ws-core-c-search-input-advanced-search-expanded-with-autocomplete {
3
- height: 550px;
4
- }
5
-
6
- #ws-core-c-search-input-autocomplete {
7
- height: 250px;
8
- }
9
-
10
- #ws-core-c-search-input-autocomplete-last-option-hint {
11
- height: 150px;
12
- }
@@ -1,681 +0,0 @@
1
- ---
2
- id: 'Search input'
3
- section: components
4
- cssPrefix: pf-v5-c-search-input
5
- ---import './SearchInput.css'
6
-
7
- ## Examples
8
-
9
- ### Basic
10
-
11
- ```html
12
- <div class="pf-v5-c-search-input">
13
- <div class="pf-v5-c-search-input__bar">
14
- <span class="pf-v5-c-search-input__text">
15
- <span class="pf-v5-c-search-input__icon">
16
- <i class="fas fa-search fa-fw" aria-hidden="true"></i>
17
- </span>
18
- <input
19
- class="pf-v5-c-search-input__text-input"
20
- type="text"
21
- placeholder="Find by name"
22
- aria-label="Find by name"
23
- />
24
- </span>
25
- </div>
26
- </div>
27
-
28
- ```
29
-
30
- ### No match
31
-
32
- ```html
33
- <div class="pf-v5-c-search-input">
34
- <div class="pf-v5-c-search-input__bar">
35
- <span class="pf-v5-c-search-input__text">
36
- <span class="pf-v5-c-search-input__icon">
37
- <i class="fas fa-search fa-fw" aria-hidden="true"></i>
38
- </span>
39
- <input
40
- class="pf-v5-c-search-input__text-input"
41
- type="text"
42
- placeholder="Find by name"
43
- aria-label="Find by name"
44
- value="Joh"
45
- />
46
- </span>
47
- <span class="pf-v5-c-search-input__utilities">
48
- <span class="pf-v5-c-search-input__clear">
49
- <button
50
- class="pf-v5-c-button pf-m-plain"
51
- type="button"
52
- aria-label="Clear"
53
- >
54
- <i class="fas fa-times fa-fw" aria-hidden="true"></i>
55
- </button>
56
- </span>
57
- </span>
58
- </div>
59
- </div>
60
-
61
- ```
62
-
63
- ### Match with result count
64
-
65
- ```html
66
- <div class="pf-v5-c-search-input">
67
- <div class="pf-v5-c-search-input__bar">
68
- <span class="pf-v5-c-search-input__text">
69
- <span class="pf-v5-c-search-input__icon">
70
- <i class="fas fa-search fa-fw" aria-hidden="true"></i>
71
- </span>
72
- <input
73
- class="pf-v5-c-search-input__text-input"
74
- type="text"
75
- placeholder="Find by name"
76
- aria-label="Find by name"
77
- value="John Doe"
78
- />
79
- </span>
80
- <span class="pf-v5-c-search-input__utilities">
81
- <span class="pf-v5-c-search-input__count">
82
- <span class="pf-v5-c-badge pf-m-read">3</span>
83
- </span>
84
- <span class="pf-v5-c-search-input__clear">
85
- <button
86
- class="pf-v5-c-button pf-m-plain"
87
- type="button"
88
- aria-label="Clear"
89
- >
90
- <i class="fas fa-times fa-fw" aria-hidden="true"></i>
91
- </button>
92
- </span>
93
- </span>
94
- </div>
95
- </div>
96
-
97
- ```
98
-
99
- ### Match with navigable options
100
-
101
- ```html
102
- <div class="pf-v5-c-search-input">
103
- <div class="pf-v5-c-search-input__bar">
104
- <span class="pf-v5-c-search-input__text">
105
- <span class="pf-v5-c-search-input__icon">
106
- <i class="fas fa-search fa-fw" aria-hidden="true"></i>
107
- </span>
108
- <input
109
- class="pf-v5-c-search-input__text-input"
110
- type="text"
111
- placeholder="Find by name"
112
- aria-label="Find by name"
113
- value="John Doe"
114
- />
115
- </span>
116
- <span class="pf-v5-c-search-input__utilities">
117
- <span class="pf-v5-c-search-input__count">
118
- <span class="pf-v5-c-badge pf-m-read">1 / 3</span>
119
- </span>
120
- <span class="pf-v5-c-search-input__nav">
121
- <button
122
- class="pf-v5-c-button pf-m-plain"
123
- type="button"
124
- disabled
125
- aria-label="Previous"
126
- >
127
- <i class="fas fa-angle-up fa-fw" aria-hidden="true"></i>
128
- </button>
129
- <button
130
- class="pf-v5-c-button pf-m-plain"
131
- type="button"
132
- aria-label="Next"
133
- >
134
- <i class="fas fa-angle-down fa-fw" aria-hidden="true"></i>
135
- </button>
136
- </span>
137
- <span class="pf-v5-c-search-input__clear">
138
- <button
139
- class="pf-v5-c-button pf-m-plain"
140
- type="button"
141
- aria-label="Clear"
142
- >
143
- <i class="fas fa-times fa-fw" aria-hidden="true"></i>
144
- </button>
145
- </span>
146
- </span>
147
- </div>
148
- </div>
149
-
150
- ```
151
-
152
- ### With submit button
153
-
154
- ```html
155
- <div class="pf-v5-c-search-input">
156
- <div class="pf-v5-c-input-group">
157
- <div class="pf-v5-c-input-group__item pf-m-fill">
158
- <div class="pf-v5-c-search-input__bar">
159
- <span class="pf-v5-c-search-input__text">
160
- <span class="pf-v5-c-search-input__icon">
161
- <i class="fas fa-search fa-fw" aria-hidden="true"></i>
162
- </span>
163
- <input
164
- class="pf-v5-c-search-input__text-input"
165
- type="text"
166
- placeholder="Find by name"
167
- aria-label="Find by name"
168
- />
169
- </span>
170
- </div>
171
- </div>
172
- <div class="pf-v5-c-input-group__item">
173
- <button
174
- class="pf-v5-c-button pf-m-control"
175
- type="submit"
176
- aria-label="Search"
177
- >
178
- <i class="fas fa-arrow-right" aria-hidden="true"></i>
179
- </button>
180
- </div>
181
- </div>
182
- </div>
183
-
184
- ```
185
-
186
- ### Advanced search
187
-
188
- ```html
189
- <div class="pf-v5-c-search-input">
190
- <div class="pf-v5-c-input-group">
191
- <div class="pf-v5-c-input-group__item pf-m-fill">
192
- <div class="pf-v5-c-search-input__bar">
193
- <span class="pf-v5-c-search-input__text">
194
- <span class="pf-v5-c-search-input__icon">
195
- <i class="fas fa-search fa-fw" aria-hidden="true"></i>
196
- </span>
197
- <input
198
- class="pf-v5-c-search-input__text-input"
199
- type="text"
200
- placeholder="username:admin firstname:joe"
201
- aria-label="username:admin firstname:joe"
202
- value="username:root firstname:ned"
203
- />
204
- </span>
205
- <span class="pf-v5-c-search-input__utilities">
206
- <span class="pf-v5-c-search-input__clear">
207
- <button
208
- class="pf-v5-c-button pf-m-plain"
209
- type="button"
210
- aria-label="Clear"
211
- >
212
- <i class="fas fa-times fa-fw" aria-hidden="true"></i>
213
- </button>
214
- </span>
215
- </span>
216
- </div>
217
- </div>
218
- <div class="pf-v5-c-input-group__item">
219
- <button
220
- class="pf-v5-c-button pf-m-control"
221
- type="button"
222
- aria-expanded="false"
223
- aria-label="Advanced search"
224
- >
225
- <i class="fas fa-caret-down" aria-hidden="true"></i>
226
- </button>
227
- </div>
228
- <div class="pf-v5-c-input-group__item">
229
- <button
230
- class="pf-v5-c-button pf-m-control"
231
- type="submit"
232
- aria-label="Search"
233
- >
234
- <i class="fas fa-arrow-right" aria-hidden="true"></i>
235
- </button>
236
- </div>
237
- </div>
238
- </div>
239
-
240
- ```
241
-
242
- ### Advanced search expanded
243
-
244
- ```html
245
- <div class="pf-v5-c-search-input">
246
- <div class="pf-v5-c-input-group">
247
- <div class="pf-v5-c-input-group__item pf-m-fill">
248
- <div class="pf-v5-c-search-input__bar">
249
- <span class="pf-v5-c-search-input__text">
250
- <span class="pf-v5-c-search-input__icon">
251
- <i class="fas fa-search fa-fw" aria-hidden="true"></i>
252
- </span>
253
- <input
254
- class="pf-v5-c-search-input__text-input"
255
- type="text"
256
- placeholder="username:admin firstname:joe"
257
- aria-label="username:admin firstname:joe"
258
- value="username:root firstname:ned"
259
- />
260
- </span>
261
- <span class="pf-v5-c-search-input__utilities">
262
- <span class="pf-v5-c-search-input__clear">
263
- <button
264
- class="pf-v5-c-button pf-m-plain"
265
- type="button"
266
- aria-label="Clear"
267
- >
268
- <i class="fas fa-times fa-fw" aria-hidden="true"></i>
269
- </button>
270
- </span>
271
- </span>
272
- </div>
273
- </div>
274
- <div class="pf-v5-c-input-group__item">
275
- <button
276
- class="pf-v5-c-button pf-m-control pf-m-expanded"
277
- type="button"
278
- aria-expanded="true"
279
- aria-label="Advanced search"
280
- >
281
- <i class="fas fa-caret-down" aria-hidden="true"></i>
282
- </button>
283
- </div>
284
- <div class="pf-v5-c-input-group__item">
285
- <button
286
- class="pf-v5-c-button pf-m-control"
287
- type="submit"
288
- aria-label="Search"
289
- >
290
- <i class="fas fa-arrow-right" aria-hidden="true"></i>
291
- </button>
292
- </div>
293
- </div>
294
- <div class="pf-v5-c-search-input__menu">
295
- <div class="pf-v5-c-search-input__menu-body">
296
- <form class="pf-v5-c-form" novalidate>
297
- <div class="pf-v5-c-form__group">
298
- <div class="pf-v5-c-form__group-label"><label
299
- class="pf-v5-c-form__label"
300
- for="advanced-search-input-form-username"
301
- >
302
- <span class="pf-v5-c-form__label-text">Username</span></label>
303
- </div>
304
- <div class="pf-v5-c-form__group-control">
305
- <input
306
- class="pf-v5-c-form-control"
307
- type="text"
308
- value="root"
309
- id="advanced-search-input-form-username"
310
- name="advanced-search-input-form-username"
311
- />
312
- </div>
313
- </div>
314
- <div class="pf-v5-c-form__group">
315
- <div class="pf-v5-c-form__group-label"><label
316
- class="pf-v5-c-form__label"
317
- for="advanced-search-input-form-firstname"
318
- >
319
- <span class="pf-v5-c-form__label-text">First name</span></label>
320
- </div>
321
- <div class="pf-v5-c-form__group-control">
322
- <input
323
- class="pf-v5-c-form-control"
324
- type="text"
325
- value="ned"
326
- id="advanced-search-input-form-firstname"
327
- name="advanced-search-input-form-firstname"
328
- />
329
- </div>
330
- </div>
331
- <div class="pf-v5-c-form__group">
332
- <div class="pf-v5-c-form__group-label"><label
333
- class="pf-v5-c-form__label"
334
- for="advanced-search-input-form-group"
335
- >
336
- <span class="pf-v5-c-form__label-text">Group</span></label>
337
- </div>
338
- <div class="pf-v5-c-form__group-control">
339
- <input
340
- class="pf-v5-c-form-control"
341
- type="text"
342
- id="advanced-search-input-form-group"
343
- name="advanced-search-input-form-group"
344
- />
345
- </div>
346
- </div>
347
- <div class="pf-v5-c-form__group">
348
- <div class="pf-v5-c-form__group-label"><label
349
- class="pf-v5-c-form__label"
350
- for="advanced-search-input-form-email"
351
- >
352
- <span class="pf-v5-c-form__label-text">Email</span></label>
353
- </div>
354
- <div class="pf-v5-c-form__group-control">
355
- <input
356
- class="pf-v5-c-form-control"
357
- type="text"
358
- id="advanced-search-input-form-email"
359
- name="advanced-search-input-form-email"
360
- />
361
- </div>
362
- </div>
363
- <div class="pf-v5-c-form__group pf-m-action">
364
- <div class="pf-v5-c-form__actions">
365
- <button class="pf-v5-c-button pf-m-primary" type="submit">Submit</button>
366
- <button class="pf-v5-c-button pf-m-link" type="reset">Reset</button>
367
- </div>
368
- </div>
369
- </form>
370
- </div>
371
- </div>
372
- </div>
373
-
374
- ```
375
-
376
- ### Autocomplete
377
-
378
- ```html
379
- <div class="pf-v5-c-search-input">
380
- <div class="pf-v5-c-search-input__bar">
381
- <span class="pf-v5-c-search-input__text">
382
- <span class="pf-v5-c-search-input__icon">
383
- <i class="fas fa-search fa-fw" aria-hidden="true"></i>
384
- </span>
385
- <input
386
- class="pf-v5-c-search-input__text-input"
387
- id="search-input-autocomplete-text-input"
388
- type="text"
389
- placeholder="Keyword search"
390
- aria-label="Keyword search"
391
- value="app"
392
- />
393
- </span>
394
- <span class="pf-v5-c-search-input__utilities">
395
- <span class="pf-v5-c-search-input__clear">
396
- <button
397
- class="pf-v5-c-button pf-m-plain"
398
- type="button"
399
- aria-label="Clear"
400
- >
401
- <i class="fas fa-times fa-fw" aria-hidden="true"></i>
402
- </button>
403
- </span>
404
- </span>
405
- </div>
406
- <div class="pf-v5-c-search-input__menu">
407
- <ul class="pf-v5-c-search-input__menu-list">
408
- <li class="pf-v5-c-search-input__menu-list-item">
409
- <button class="pf-v5-c-search-input__menu-item" type="button">
410
- <span class="pf-v5-c-search-input__menu-item-text">apple</span>
411
- </button>
412
- </li>
413
- <li class="pf-v5-c-search-input__menu-list-item">
414
- <button class="pf-v5-c-search-input__menu-item" type="button">
415
- <span class="pf-v5-c-search-input__menu-item-text">appleby</span>
416
- </button>
417
- </li>
418
- <li class="pf-v5-c-search-input__menu-list-item">
419
- <button class="pf-v5-c-search-input__menu-item" type="button">
420
- <span class="pf-v5-c-search-input__menu-item-text">appleseed</span>
421
- </button>
422
- </li>
423
- <li class="pf-v5-c-search-input__menu-list-item">
424
- <button class="pf-v5-c-search-input__menu-item" type="button">
425
- <span class="pf-v5-c-search-input__menu-item-text">appleton</span>
426
- </button>
427
- </li>
428
- </ul>
429
- </div>
430
- </div>
431
-
432
- ```
433
-
434
- ### Autocomplete last option hint
435
-
436
- ```html
437
- <div class="pf-v5-c-search-input">
438
- <div class="pf-v5-c-search-input__bar">
439
- <span class="pf-v5-c-search-input__text">
440
- <span class="pf-v5-c-search-input__icon">
441
- <i class="fas fa-search fa-fw" aria-hidden="true"></i>
442
- </span>
443
- <input
444
- class="pf-v5-c-search-input__text-input pf-m-hint"
445
- type="text"
446
- disabled
447
- aria-hidden="true"
448
- placeholder="Keyword search"
449
- aria-label="Keyword search"
450
- value="appleseed"
451
- />
452
- <input
453
- class="pf-v5-c-search-input__text-input"
454
- type="text"
455
- placeholder="Keyword search"
456
- aria-label="Keyword search"
457
- value="apples"
458
- />
459
- </span>
460
- <span class="pf-v5-c-search-input__utilities">
461
- <span class="pf-v5-c-search-input__clear">
462
- <button
463
- class="pf-v5-c-button pf-m-plain"
464
- type="button"
465
- aria-label="Clear"
466
- >
467
- <i class="fas fa-times fa-fw" aria-hidden="true"></i>
468
- </button>
469
- </span>
470
- </span>
471
- </div>
472
- <div class="pf-v5-c-search-input__menu">
473
- <ul class="pf-v5-c-search-input__menu-list">
474
- <li class="pf-v5-c-search-input__menu-list-item">
475
- <button class="pf-v5-c-search-input__menu-item" type="button">
476
- <span class="pf-v5-c-search-input__menu-item-text">appleseed</span>
477
- </button>
478
- </li>
479
- </ul>
480
- </div>
481
- </div>
482
-
483
- ```
484
-
485
- ### Advanced search expanded with autocomplete
486
-
487
- ```html
488
- <div class="pf-v5-c-search-input">
489
- <div class="pf-v5-c-input-group">
490
- <div class="pf-v5-c-input-group__item pf-m-fill">
491
- <div class="pf-v5-c-search-input__bar">
492
- <span class="pf-v5-c-search-input__text">
493
- <span class="pf-v5-c-search-input__icon">
494
- <i class="fas fa-search fa-fw" aria-hidden="true"></i>
495
- </span>
496
- <input
497
- class="pf-v5-c-search-input__text-input"
498
- type="text"
499
- placeholder="username:admin firstname:joe"
500
- aria-label="username:admin firstname:joe"
501
- value="username:root firstname:n"
502
- />
503
- </span>
504
- <span class="pf-v5-c-search-input__utilities">
505
- <span class="pf-v5-c-search-input__clear">
506
- <button
507
- class="pf-v5-c-button pf-m-plain"
508
- type="button"
509
- aria-label="Clear"
510
- >
511
- <i class="fas fa-times fa-fw" aria-hidden="true"></i>
512
- </button>
513
- </span>
514
- </span>
515
- </div>
516
- </div>
517
- <div class="pf-v5-c-input-group__item">
518
- <button
519
- class="pf-v5-c-button pf-m-control pf-m-expanded"
520
- type="button"
521
- aria-expanded="true"
522
- aria-label="Advanced search"
523
- >
524
- <i class="fas fa-caret-down" aria-hidden="true"></i>
525
- </button>
526
- </div>
527
- <div class="pf-v5-c-input-group__item">
528
- <button
529
- class="pf-v5-c-button pf-m-control"
530
- type="submit"
531
- aria-label="Search"
532
- >
533
- <i class="fas fa-arrow-right" aria-hidden="true"></i>
534
- </button>
535
- </div>
536
- </div>
537
- <div class="pf-v5-c-search-input__menu">
538
- <div class="pf-v5-c-search-input__menu-body">
539
- <form class="pf-v5-c-form" novalidate>
540
- <div class="pf-v5-c-form__group">
541
- <div class="pf-v5-c-form__group-label"><label
542
- class="pf-v5-c-form__label"
543
- for="advanced-search-autocomplete-input-form-username"
544
- >
545
- <span class="pf-v5-c-form__label-text">Username</span></label>
546
- </div>
547
- <div class="pf-v5-c-form__group-control">
548
- <input
549
- class="pf-v5-c-form-control"
550
- type="text"
551
- value="root"
552
- id="advanced-search-autocomplete-input-form-username"
553
- name="advanced-search-autocomplete-input-form-username"
554
- />
555
- </div>
556
- </div>
557
- <div class="pf-v5-c-form__group">
558
- <div class="pf-v5-c-form__group-label"><label
559
- class="pf-v5-c-form__label"
560
- for="advanced-search-autocomplete-input-form-firstname"
561
- >
562
- <span class="pf-v5-c-form__label-text">First name</span></label>
563
- </div>
564
- <div class="pf-v5-c-form__group-control">
565
- <input
566
- class="pf-v5-c-form-control"
567
- type="text"
568
- value="n"
569
- id="advanced-search-autocomplete-input-form-firstname"
570
- name="advanced-search-autocomplete-input-form-firstname"
571
- />
572
- </div>
573
- </div>
574
- <div class="pf-v5-c-form__group">
575
- <div class="pf-v5-c-form__group-label"><label
576
- class="pf-v5-c-form__label"
577
- for="advanced-search-autocomplete-input-form-group"
578
- >
579
- <span class="pf-v5-c-form__label-text">Group</span></label>
580
- </div>
581
- <div class="pf-v5-c-form__group-control">
582
- <input
583
- class="pf-v5-c-form-control"
584
- type="text"
585
- id="advanced-search-autocomplete-input-form-group"
586
- name="advanced-search-autocomplete-input-form-group"
587
- />
588
- </div>
589
- </div>
590
- <div class="pf-v5-c-form__group">
591
- <div class="pf-v5-c-form__group-label"><label
592
- class="pf-v5-c-form__label"
593
- for="advanced-search-autocomplete-input-form-email"
594
- >
595
- <span class="pf-v5-c-form__label-text">Email</span></label>
596
- </div>
597
- <div class="pf-v5-c-form__group-control">
598
- <input
599
- class="pf-v5-c-form-control"
600
- type="text"
601
- id="advanced-search-autocomplete-input-form-email"
602
- name="advanced-search-autocomplete-input-form-email"
603
- />
604
- </div>
605
- </div>
606
- <div class="pf-v5-c-form__group pf-m-action">
607
- <div class="pf-v5-c-form__actions">
608
- <button class="pf-v5-c-button pf-m-primary" type="submit">Submit</button>
609
- <button class="pf-v5-c-button pf-m-link" type="reset">Reset</button>
610
- </div>
611
- </div>
612
- </form>
613
- </div>
614
- </div>
615
- <div class="pf-v5-c-search-input__menu">
616
- <ul class="pf-v5-c-search-input__menu-list">
617
- <li class="pf-v5-c-search-input__menu-list-item">
618
- <button class="pf-v5-c-search-input__menu-item" type="button">
619
- <span class="pf-v5-c-search-input__menu-item-text">nancy</span>
620
- </button>
621
- </li>
622
- <li class="pf-v5-c-search-input__menu-list-item">
623
- <button class="pf-v5-c-search-input__menu-item" type="button">
624
- <span class="pf-v5-c-search-input__menu-item-text">ned</span>
625
- </button>
626
- </li>
627
- <li class="pf-v5-c-search-input__menu-list-item">
628
- <button class="pf-v5-c-search-input__menu-item" type="button">
629
- <span class="pf-v5-c-search-input__menu-item-text">neil</span>
630
- </button>
631
- </li>
632
- <li class="pf-v5-c-search-input__menu-list-item">
633
- <button class="pf-v5-c-search-input__menu-item" type="button">
634
- <span class="pf-v5-c-search-input__menu-item-text">nicole</span>
635
- </button>
636
- </li>
637
- </ul>
638
- </div>
639
- </div>
640
-
641
- ```
642
-
643
- ### Accessibility
644
-
645
- | Attributes | Applied to | Outcome |
646
- | -- | -- | -- |
647
- | `aria-hidden="true"` | `.pf-v5-c-search-input__icon > *` | Hides the search icon from assistive technologies. **Required** |
648
- | `aria-label="Previous"` | `.pf-v5-c-search-input__nav > .pf-v5-c-button` | Provides an accessible label for the previous nav button. **Required** |
649
- | `aria-label="Next"` | `.pf-v5-c-search-input__nav > .pf-v5-c-button` | Provides an accessible label for the next nav button. **Required** |
650
- | `aria-label="[descriptive text]"` | `.pf-v5-c-search-input__text-input` | Provides an accessible label for the search input. **Required** |
651
- | `aria-label="Clear"` | `.pf-v5-c-search-input__clear > .pf-v5-c-button` | Provides an accessible label for the clear button. **Required** |
652
- | `aria-label="Search"` | `.pf-v5-c-button` | Provides an accessible label for the search button. **Required** |
653
- | `aria-label="Advanced search"` | `.pf-v5-c-button` | Provides an accessible label for the advanced search toggle. **Required** |
654
- | `aria-expanded="[true/false]"` | `.pf-v5-c-button` | Indicates whether the advanced search menu is expanded or collapsed. **Required** |
655
- | `id` | `.pf-v5-c-search-input__text-input` | Assigns an ID that is used with `aria-labelledby` on `.pf-v5-c-search-input__menu-list`. **Required when using autocomplete** |
656
- | `aria-labelledby="[id of text input]"` | `.pf-v5-c-search-input__menu-list` | Gives the menu list an accessible label. **Required when using autocomplete** |
657
- | `disabled` | `.pf-v5-c-search-input__text-input.pf-m-hint` | Disables the hint text input from being submitted with the search input. **Required when using hint text** |
658
- | `aria-hidden="true"` | `.pf-v5-c-search-input__text-input.pf-m-hint` | Hides the hint text input from assistive technology. **Required when using hint text** |
659
-
660
- ### Usage
661
-
662
- | Class | Applied to | Outcome |
663
- | -- | -- | -- |
664
- | `.pf-v5-c-search-input` | `<div>` | Initiates the custom search input component. **Required** |
665
- | `.pf-v5-c-search-input__bar` | `<div>` | Initiates the custom search input bar. **Required** |
666
- | `.pf-v5-c-search-input__text` | `<span>` | Initiates the text area. **Required** |
667
- | `.pf-v5-c-search-input__text-input` | `<input>` | Initiates the search input. **Required** |
668
- | `.pf-v5-c-search-input__icon` | `<span>` | Initiates the search icon container. **Required** |
669
- | `.pf-v5-c-search-input__utilities` | `<span>` | Initiates the utilities area beside the search input. |
670
- | `.pf-v5-c-search-input__count` | `<span>` | Initiates the item count container. |
671
- | `.pf-v5-c-search-input__nav` | `<span>` | Initiates the navigable buttons container. |
672
- | `.pf-v5-c-search-input__clear` | `<span>` | Initiates the clear button container. **Required when there is text in the search input** |
673
- | `.pf-v5-c-search-input__menu` | `<div>` | Initiates the search input dropdown menu. |
674
- | `.pf-v5-c-search-input__menu-body` | `<div>` | Initiates the search input dropdown menu body element. |
675
- | `.pf-v5-c-search-input__menu-list` | `<div>` | Initiates the search input dropdown menu list. |
676
- | `.pf-v5-c-search-input__menu-list-item` | `<div>` | Initiates the search input dropdown menu list item. |
677
- | `.pf-v5-c-search-input__menu-item` | `<div>` | Initiates the search input dropdown menu item. |
678
- | `.pf-v5-c-search-input__menu-item-text` | `<span>` | Initiates the search input dropdown menu item text. |
679
- | `.pf-m-top` | `.pf-v5-c-search-input__menu` | Modifies the menu to display above the toggle. |
680
- | `.pf-m-static` | `.pf-v5-c-search-input__menu` | Modifies the menu to be statically positioned to support custom positioning. |
681
- | `.pf-m-hint` | `.pf-v5-c-search-input__text-input` | Modifies the text input for hint text styles. |
File without changes