@patternfly/patternfly 6.0.0-alpha.169 → 6.0.0-alpha.170

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 (27) hide show
  1. package/components/Card/card.css +3 -3
  2. package/components/Card/card.scss +3 -3
  3. package/components/_index.css +3 -3
  4. package/docs/components/InputGroup/examples/InputGroup.md +11 -53
  5. package/docs/components/Login/examples/Login.md +11 -42
  6. package/docs/demos/Card/examples/Card.md +64 -324
  7. package/docs/demos/CardView/examples/CardView.md +11 -103
  8. package/docs/demos/Dashboard/examples/Dashboard.md +22 -128
  9. package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +105 -794
  10. package/docs/demos/Table/examples/Table.md +141 -1320
  11. package/docs/demos/Tabs/examples/Tabs.md +11 -103
  12. package/package.json +1 -1
  13. package/patternfly-no-globals.css +3 -3
  14. package/patternfly.css +3 -3
  15. package/patternfly.min.css +1 -1
  16. package/patternfly.min.css.map +1 -1
  17. package/docs/components/AppLauncher/deprecated/application-launcher.css +0 -25
  18. package/docs/components/AppLauncher/deprecated/application-launcher.md +0 -792
  19. package/docs/components/ContextSelector/deprecated/context-selector.css +0 -7
  20. package/docs/components/ContextSelector/deprecated/context-selector.md +0 -907
  21. package/docs/components/Dropdown/deprecated/Dropdown.css +0 -64
  22. package/docs/components/Dropdown/deprecated/Dropdown.md +0 -2920
  23. package/docs/components/OptionsMenu/deprecated/options-menu.css +0 -25
  24. package/docs/components/OptionsMenu/deprecated/options-menu.md +0 -1014
  25. package/docs/components/Select/deprecated/Select.css +0 -56
  26. package/docs/components/Select/deprecated/Select.md +0 -3609
  27. package/docs/demos/ContextSelector/examples/ContextSelector.md +0 -1781
@@ -1,1014 +0,0 @@
1
- ---
2
- id: Options menu
3
- section: components
4
- subsection: menus
5
- cssPrefix: pf-v6-c-options-menu
6
- deprecated: true
7
- ---import './options-menu.css'
8
-
9
- ## Examples
10
-
11
- ### Single option
12
-
13
- ```html
14
- <div class="pf-v6-c-options-menu">
15
- <button
16
- class="pf-v6-c-options-menu__toggle"
17
- type="button"
18
- id="options-menu-single-example-toggle"
19
- aria-haspopup="listbox"
20
- aria-expanded="false"
21
- >
22
- <span class="pf-v6-c-options-menu__toggle-text">Options menu</span>
23
- <div class="pf-v6-c-options-menu__toggle-icon">
24
- <i class="fas fa-caret-down" aria-hidden="true"></i>
25
- </div>
26
- </button>
27
- <ul
28
- class="pf-v6-c-options-menu__menu"
29
- role="menu"
30
- aria-labelledby="options-menu-single-example-toggle"
31
- hidden
32
- >
33
- <li role="none">
34
- <button
35
- class="pf-v6-c-options-menu__menu-item"
36
- type="button"
37
- role="menuitem"
38
- >Option 1</button>
39
- </li>
40
- <li role="none">
41
- <button
42
- class="pf-v6-c-options-menu__menu-item"
43
- type="button"
44
- role="menuitem"
45
- >
46
- Option 2
47
- <div class="pf-v6-c-options-menu__menu-item-icon">
48
- <i class="fas fa-check" aria-hidden="true"></i>
49
- </div>
50
- </button>
51
- </li>
52
- <li role="none">
53
- <button
54
- class="pf-v6-c-options-menu__menu-item"
55
- type="button"
56
- role="menuitem"
57
- >Option 3</button>
58
- </li>
59
- </ul>
60
- </div>
61
-
62
- <div class="pf-v6-c-options-menu pf-m-expanded">
63
- <button
64
- class="pf-v6-c-options-menu__toggle"
65
- type="button"
66
- id="options-menu-single-expanded-example-toggle"
67
- aria-haspopup="listbox"
68
- aria-expanded="true"
69
- >
70
- <span class="pf-v6-c-options-menu__toggle-text">Options menu</span>
71
- <div class="pf-v6-c-options-menu__toggle-icon">
72
- <i class="fas fa-caret-down" aria-hidden="true"></i>
73
- </div>
74
- </button>
75
- <ul
76
- class="pf-v6-c-options-menu__menu"
77
- role="menu"
78
- aria-labelledby="options-menu-single-expanded-example-toggle"
79
- >
80
- <li role="none">
81
- <button
82
- class="pf-v6-c-options-menu__menu-item"
83
- type="button"
84
- role="menuitem"
85
- >Option 1</button>
86
- </li>
87
- <li role="none">
88
- <button
89
- class="pf-v6-c-options-menu__menu-item"
90
- type="button"
91
- role="menuitem"
92
- >
93
- Option 2
94
- <div class="pf-v6-c-options-menu__menu-item-icon">
95
- <i class="fas fa-check" aria-hidden="true"></i>
96
- </div>
97
- </button>
98
- </li>
99
- <li role="none">
100
- <button
101
- class="pf-v6-c-options-menu__menu-item"
102
- type="button"
103
- role="menuitem"
104
- >Option 3</button>
105
- </li>
106
- </ul>
107
- </div>
108
-
109
- ```
110
-
111
- ### Disabled
112
-
113
- ```html
114
- <div class="pf-v6-c-options-menu">
115
- <button
116
- class="pf-v6-c-options-menu__toggle"
117
- type="button"
118
- id="options-menu-single-disabled-example-toggle"
119
- aria-haspopup="listbox"
120
- aria-expanded="false"
121
- disabled
122
- >
123
- <span class="pf-v6-c-options-menu__toggle-text">Disabled options menu</span>
124
- <div class="pf-v6-c-options-menu__toggle-icon">
125
- <i class="fas fa-caret-down" aria-hidden="true"></i>
126
- </div>
127
- </button>
128
- </div>
129
-
130
- ```
131
-
132
- ### Multiple options
133
-
134
- ```html
135
- <div class="pf-v6-c-options-menu">
136
- <button
137
- class="pf-v6-c-options-menu__toggle"
138
- type="button"
139
- id="options-menu-multiple-example-toggle"
140
- aria-haspopup="listbox"
141
- aria-expanded="false"
142
- >
143
- <span class="pf-v6-c-options-menu__toggle-text">Sort by</span>
144
- <div class="pf-v6-c-options-menu__toggle-icon">
145
- <i class="fas fa-caret-down" aria-hidden="true"></i>
146
- </div>
147
- </button>
148
- <div
149
- class="pf-v6-c-options-menu__menu"
150
- role="menu"
151
- aria-labelledby="options-menu-multiple-example-toggle"
152
- hidden
153
- >
154
- <section class="pf-v6-c-options-menu__group" role="none">
155
- <ul role="group" aria-label="Sort by">
156
- <li role="none">
157
- <button
158
- class="pf-v6-c-options-menu__menu-item"
159
- type="button"
160
- role="menuitem"
161
- >Name</button>
162
- </li>
163
- <li role="none">
164
- <button
165
- class="pf-v6-c-options-menu__menu-item"
166
- type="button"
167
- role="menuitem"
168
- >
169
- Date
170
- <div class="pf-v6-c-options-menu__menu-item-icon">
171
- <i class="fas fa-check" aria-hidden="true"></i>
172
- </div>
173
- </button>
174
- </li>
175
- <li role="none">
176
- <button
177
- class="pf-v6-c-options-menu__menu-item"
178
- type="button"
179
- role="menuitem"
180
- disabled
181
- >Disabled</button>
182
- </li>
183
- <li role="none">
184
- <button
185
- class="pf-v6-c-options-menu__menu-item"
186
- type="button"
187
- role="menuitem"
188
- >Size</button>
189
- </li>
190
- </ul>
191
- </section>
192
- <li class="pf-v6-c-divider" role="separator"></li>
193
- <section class="pf-v6-c-options-menu__group" role="none">
194
- <ul role="group" aria-label="Sort direction">
195
- <li role="none">
196
- <button
197
- class="pf-v6-c-options-menu__menu-item"
198
- type="button"
199
- role="menuitem"
200
- >
201
- Ascending
202
- <div class="pf-v6-c-options-menu__menu-item-icon">
203
- <i class="fas fa-check" aria-hidden="true"></i>
204
- </div>
205
- </button>
206
- </li>
207
- <li role="none">
208
- <button
209
- class="pf-v6-c-options-menu__menu-item"
210
- type="button"
211
- role="menuitem"
212
- >Descending</button>
213
- </li>
214
- </ul>
215
- </section>
216
- </div>
217
- </div>
218
-
219
- <div class="pf-v6-c-options-menu pf-m-expanded">
220
- <button
221
- class="pf-v6-c-options-menu__toggle"
222
- type="button"
223
- id="options-menu-multiple-expanded-example-toggle"
224
- aria-haspopup="listbox"
225
- aria-expanded="true"
226
- >
227
- <span class="pf-v6-c-options-menu__toggle-text">Sort by</span>
228
- <div class="pf-v6-c-options-menu__toggle-icon">
229
- <i class="fas fa-caret-down" aria-hidden="true"></i>
230
- </div>
231
- </button>
232
- <div
233
- class="pf-v6-c-options-menu__menu"
234
- role="menu"
235
- aria-labelledby="options-menu-multiple-expanded-example-toggle"
236
- >
237
- <section class="pf-v6-c-options-menu__group" role="none">
238
- <ul role="group" aria-label="Sort by">
239
- <li role="none">
240
- <button
241
- class="pf-v6-c-options-menu__menu-item"
242
- type="button"
243
- role="menuitem"
244
- >Name</button>
245
- </li>
246
- <li role="none">
247
- <button
248
- class="pf-v6-c-options-menu__menu-item"
249
- type="button"
250
- role="menuitem"
251
- >
252
- Date
253
- <div class="pf-v6-c-options-menu__menu-item-icon">
254
- <i class="fas fa-check" aria-hidden="true"></i>
255
- </div>
256
- </button>
257
- </li>
258
- <li role="none">
259
- <button
260
- class="pf-v6-c-options-menu__menu-item"
261
- type="button"
262
- role="menuitem"
263
- disabled
264
- >Disabled</button>
265
- </li>
266
- <li role="none">
267
- <button
268
- class="pf-v6-c-options-menu__menu-item"
269
- type="button"
270
- role="menuitem"
271
- >Size</button>
272
- </li>
273
- </ul>
274
- </section>
275
- <li class="pf-v6-c-divider" role="separator"></li>
276
- <section class="pf-v6-c-options-menu__group" role="none">
277
- <ul role="group" aria-label="Sort direction">
278
- <li role="none">
279
- <button
280
- class="pf-v6-c-options-menu__menu-item"
281
- type="button"
282
- role="menuitem"
283
- >
284
- Ascending
285
- <div class="pf-v6-c-options-menu__menu-item-icon">
286
- <i class="fas fa-check" aria-hidden="true"></i>
287
- </div>
288
- </button>
289
- </li>
290
- <li role="none">
291
- <button
292
- class="pf-v6-c-options-menu__menu-item"
293
- type="button"
294
- role="menuitem"
295
- >Descending</button>
296
- </li>
297
- </ul>
298
- </section>
299
- </div>
300
- </div>
301
-
302
- ```
303
-
304
- ### Plain
305
-
306
- ```html
307
- <div class="pf-v6-c-options-menu">
308
- <button
309
- class="pf-v6-c-options-menu__toggle pf-m-plain"
310
- type="button"
311
- id="options-menu-plain-disabled-example-toggle"
312
- aria-haspopup="listbox"
313
- aria-expanded="false"
314
- disabled
315
- aria-label="Sort by"
316
- >
317
- <i
318
- class="fas fa-sort-amount-down pf-v6-m-mirror-inline-rtl"
319
- aria-hidden="true"
320
- ></i>
321
- </button>
322
- <ul
323
- class="pf-v6-c-options-menu__menu"
324
- role="menu"
325
- aria-labelledby="options-menu-plain-disabled-example-toggle"
326
- hidden
327
- >
328
- <li role="none">
329
- <button
330
- class="pf-v6-c-options-menu__menu-item"
331
- type="button"
332
- role="menuitem"
333
- >Option 1</button>
334
- </li>
335
- <li role="none">
336
- <button
337
- class="pf-v6-c-options-menu__menu-item"
338
- type="button"
339
- role="menuitem"
340
- >
341
- Option 2
342
- <div class="pf-v6-c-options-menu__menu-item-icon">
343
- <i class="fas fa-check" aria-hidden="true"></i>
344
- </div>
345
- </button>
346
- </li>
347
- <li role="none">
348
- <button
349
- class="pf-v6-c-options-menu__menu-item"
350
- type="button"
351
- role="menuitem"
352
- >Option 3</button>
353
- </li>
354
- </ul>
355
- </div>
356
-
357
- <div class="pf-v6-c-options-menu">
358
- <button
359
- class="pf-v6-c-options-menu__toggle pf-m-plain"
360
- type="button"
361
- id="options-menu-plain-example-toggle"
362
- aria-haspopup="listbox"
363
- aria-expanded="false"
364
- aria-label="Sort by"
365
- >
366
- <i
367
- class="fas fa-sort-amount-down pf-v6-m-mirror-inline-rtl"
368
- aria-hidden="true"
369
- ></i>
370
- </button>
371
- <ul
372
- class="pf-v6-c-options-menu__menu"
373
- role="menu"
374
- aria-labelledby="options-menu-plain-example-toggle"
375
- hidden
376
- >
377
- <li role="none">
378
- <button
379
- class="pf-v6-c-options-menu__menu-item"
380
- type="button"
381
- role="menuitem"
382
- >Option 1</button>
383
- </li>
384
- <li role="none">
385
- <button
386
- class="pf-v6-c-options-menu__menu-item"
387
- type="button"
388
- role="menuitem"
389
- >
390
- Option 2
391
- <div class="pf-v6-c-options-menu__menu-item-icon">
392
- <i class="fas fa-check" aria-hidden="true"></i>
393
- </div>
394
- </button>
395
- </li>
396
- <li role="none">
397
- <button
398
- class="pf-v6-c-options-menu__menu-item"
399
- type="button"
400
- role="menuitem"
401
- >Option 3</button>
402
- </li>
403
- </ul>
404
- </div>
405
-
406
- <div class="pf-v6-c-options-menu pf-m-expanded">
407
- <button
408
- class="pf-v6-c-options-menu__toggle pf-m-plain"
409
- type="button"
410
- id="options-menu-plain-expanded-example-toggle"
411
- aria-haspopup="listbox"
412
- aria-expanded="true"
413
- aria-label="Sort by"
414
- >
415
- <i
416
- class="fas fa-sort-amount-down pf-v6-m-mirror-inline-rtl"
417
- aria-hidden="true"
418
- ></i>
419
- </button>
420
- <ul
421
- class="pf-v6-c-options-menu__menu"
422
- role="menu"
423
- aria-labelledby="options-menu-plain-expanded-example-toggle"
424
- >
425
- <li role="none">
426
- <button
427
- class="pf-v6-c-options-menu__menu-item"
428
- type="button"
429
- role="menuitem"
430
- >Option 1</button>
431
- </li>
432
- <li role="none">
433
- <button
434
- class="pf-v6-c-options-menu__menu-item"
435
- type="button"
436
- role="menuitem"
437
- >
438
- Option 2
439
- <div class="pf-v6-c-options-menu__menu-item-icon">
440
- <i class="fas fa-check" aria-hidden="true"></i>
441
- </div>
442
- </button>
443
- </li>
444
- <li role="none">
445
- <button
446
- class="pf-v6-c-options-menu__menu-item"
447
- type="button"
448
- role="menuitem"
449
- >Option 3</button>
450
- </li>
451
- </ul>
452
- </div>
453
-
454
- ```
455
-
456
- ### Align top
457
-
458
- ```html
459
- <div class="pf-v6-c-options-menu pf-m-expanded pf-m-top">
460
- <button
461
- class="pf-v6-c-options-menu__toggle"
462
- type="button"
463
- id="options-menu-top-example-toggle"
464
- aria-haspopup="listbox"
465
- aria-expanded="true"
466
- >
467
- <span class="pf-v6-c-options-menu__toggle-text">Options menu</span>
468
- <div class="pf-v6-c-options-menu__toggle-icon">
469
- <i class="fas fa-caret-down" aria-hidden="true"></i>
470
- </div>
471
- </button>
472
- <ul
473
- class="pf-v6-c-options-menu__menu pf-m-top"
474
- role="menu"
475
- aria-labelledby="options-menu-top-example-toggle"
476
- >
477
- <li role="none">
478
- <button
479
- class="pf-v6-c-options-menu__menu-item"
480
- type="button"
481
- role="menuitem"
482
- >Option 1</button>
483
- </li>
484
- <li role="none">
485
- <button
486
- class="pf-v6-c-options-menu__menu-item"
487
- type="button"
488
- role="menuitem"
489
- >
490
- Option 2
491
- <div class="pf-v6-c-options-menu__menu-item-icon">
492
- <i class="fas fa-check" aria-hidden="true"></i>
493
- </div>
494
- </button>
495
- </li>
496
- <li role="none">
497
- <button
498
- class="pf-v6-c-options-menu__menu-item"
499
- type="button"
500
- role="menuitem"
501
- >Option 3</button>
502
- </li>
503
- </ul>
504
- </div>
505
-
506
- ```
507
-
508
- ### Align right
509
-
510
- ```html
511
- <div class="pf-v6-c-options-menu pf-m-expanded pf-m-align-right">
512
- <button
513
- class="pf-v6-c-options-menu__toggle"
514
- type="button"
515
- id="options-menu-align-right-example-toggle"
516
- aria-haspopup="listbox"
517
- aria-expanded="true"
518
- >
519
- <span class="pf-v6-c-options-menu__toggle-text">Options menu</span>
520
- <div class="pf-v6-c-options-menu__toggle-icon">
521
- <i class="fas fa-caret-down" aria-hidden="true"></i>
522
- </div>
523
- </button>
524
- <ul
525
- class="pf-v6-c-options-menu__menu pf-m-align-right"
526
- role="menu"
527
- aria-labelledby="options-menu-align-right-example-toggle"
528
- >
529
- <li role="none">
530
- <button
531
- class="pf-v6-c-options-menu__menu-item"
532
- type="button"
533
- role="menuitem"
534
- >Option 1</button>
535
- </li>
536
- <li role="none">
537
- <button
538
- class="pf-v6-c-options-menu__menu-item"
539
- type="button"
540
- role="menuitem"
541
- >
542
- Option 2
543
- <div class="pf-v6-c-options-menu__menu-item-icon">
544
- <i class="fas fa-check" aria-hidden="true"></i>
545
- </div>
546
- </button>
547
- </li>
548
- <li role="none">
549
- <button
550
- class="pf-v6-c-options-menu__menu-item"
551
- type="button"
552
- role="menuitem"
553
- >Option 3</button>
554
- </li>
555
- </ul>
556
- </div>
557
-
558
- ```
559
-
560
- ### Plain with text
561
-
562
- ```html
563
- <div class="pf-v6-c-options-menu">
564
- <button
565
- class="pf-v6-c-options-menu__toggle pf-m-text pf-m-plain"
566
- type="button"
567
- id="options-menu-disabled-text-example-toggle"
568
- aria-haspopup="listbox"
569
- aria-expanded="false"
570
- disabled
571
- >
572
- <span class="pf-v6-c-options-menu__toggle-text">Custom text</span>
573
- <div class="pf-v6-c-options-menu__toggle-icon">
574
- <i class="fas fa-caret-down" aria-hidden="true"></i>
575
- </div>
576
- </button>
577
- <ul
578
- class="pf-v6-c-options-menu__menu"
579
- role="menu"
580
- aria-labelledby="options-menu-disabled-text-example-toggle"
581
- hidden
582
- >
583
- <li role="none">
584
- <button
585
- class="pf-v6-c-options-menu__menu-item"
586
- type="button"
587
- role="menuitem"
588
- >Option 1</button>
589
- </li>
590
- <li role="none">
591
- <button
592
- class="pf-v6-c-options-menu__menu-item"
593
- type="button"
594
- role="menuitem"
595
- >
596
- Option 2
597
- <div class="pf-v6-c-options-menu__menu-item-icon">
598
- <i class="fas fa-check" aria-hidden="true"></i>
599
- </div>
600
- </button>
601
- </li>
602
- <li role="none">
603
- <button
604
- class="pf-v6-c-options-menu__menu-item"
605
- type="button"
606
- role="menuitem"
607
- >Option 3</button>
608
- </li>
609
- </ul>
610
- </div>
611
-
612
- <div class="pf-v6-c-options-menu">
613
- <button
614
- class="pf-v6-c-options-menu__toggle pf-m-text pf-m-plain"
615
- type="button"
616
- id="options-menu-plain-text-example-toggle"
617
- aria-haspopup="listbox"
618
- aria-expanded="false"
619
- >
620
- <span class="pf-v6-c-options-menu__toggle-text">Custom text</span>
621
- <div class="pf-v6-c-options-menu__toggle-icon">
622
- <i class="fas fa-caret-down" aria-hidden="true"></i>
623
- </div>
624
- </button>
625
- <ul
626
- class="pf-v6-c-options-menu__menu"
627
- role="menu"
628
- aria-labelledby="options-menu-plain-text-example-toggle"
629
- hidden
630
- >
631
- <li role="none">
632
- <button
633
- class="pf-v6-c-options-menu__menu-item"
634
- type="button"
635
- role="menuitem"
636
- >Option 1</button>
637
- </li>
638
- <li role="none">
639
- <button
640
- class="pf-v6-c-options-menu__menu-item"
641
- type="button"
642
- role="menuitem"
643
- >
644
- Option 2
645
- <div class="pf-v6-c-options-menu__menu-item-icon">
646
- <i class="fas fa-check" aria-hidden="true"></i>
647
- </div>
648
- </button>
649
- </li>
650
- <li role="none">
651
- <button
652
- class="pf-v6-c-options-menu__menu-item"
653
- type="button"
654
- role="menuitem"
655
- >Option 3</button>
656
- </li>
657
- </ul>
658
- </div>
659
-
660
- <div class="pf-v6-c-options-menu pf-m-expanded">
661
- <button
662
- class="pf-v6-c-options-menu__toggle pf-m-text pf-m-plain"
663
- type="button"
664
- id="options-menu-plain-text-expanded-example-toggle"
665
- aria-haspopup="listbox"
666
- aria-expanded="true"
667
- >
668
- <span class="pf-v6-c-options-menu__toggle-text">Custom text</span>
669
- <div class="pf-v6-c-options-menu__toggle-icon">
670
- <i class="fas fa-caret-down" aria-hidden="true"></i>
671
- </div>
672
- </button>
673
- <ul
674
- class="pf-v6-c-options-menu__menu"
675
- role="menu"
676
- aria-labelledby="options-menu-plain-text-expanded-example-toggle"
677
- >
678
- <li role="none">
679
- <button
680
- class="pf-v6-c-options-menu__menu-item"
681
- type="button"
682
- role="menuitem"
683
- >Option 1</button>
684
- </li>
685
- <li role="none">
686
- <button
687
- class="pf-v6-c-options-menu__menu-item"
688
- type="button"
689
- role="menuitem"
690
- >
691
- Option 2
692
- <div class="pf-v6-c-options-menu__menu-item-icon">
693
- <i class="fas fa-check" aria-hidden="true"></i>
694
- </div>
695
- </button>
696
- </li>
697
- <li role="none">
698
- <button
699
- class="pf-v6-c-options-menu__menu-item"
700
- type="button"
701
- role="menuitem"
702
- >Option 3</button>
703
- </li>
704
- </ul>
705
- </div>
706
-
707
- ```
708
-
709
- ### With groups
710
-
711
- ```html
712
- <div class="pf-v6-c-options-menu pf-m-expanded">
713
- <button
714
- class="pf-v6-c-options-menu__toggle"
715
- type="button"
716
- id="options-menu-groups-toggle"
717
- aria-haspopup="listbox"
718
- aria-expanded="true"
719
- >
720
- <span class="pf-v6-c-options-menu__toggle-text">Options menu</span>
721
- <div class="pf-v6-c-options-menu__toggle-icon">
722
- <i class="fas fa-caret-down" aria-hidden="true"></i>
723
- </div>
724
- </button>
725
- <div
726
- class="pf-v6-c-options-menu__menu"
727
- role="menu"
728
- aria-labelledby="options-menu-groups-toggle"
729
- >
730
- <section class="pf-v6-c-options-menu__group" role="none">
731
- <ul role="group">
732
- <li role="none">
733
- <button
734
- class="pf-v6-c-options-menu__menu-item"
735
- type="button"
736
- role="menuitem"
737
- >Option 1</button>
738
- </li>
739
- <li role="none">
740
- <button
741
- class="pf-v6-c-options-menu__menu-item"
742
- type="button"
743
- role="menuitem"
744
- >
745
- Option 2
746
- <div class="pf-v6-c-options-menu__menu-item-icon">
747
- <i class="fas fa-check" aria-hidden="true"></i>
748
- </div>
749
- </button>
750
- </li>
751
- </ul>
752
- </section>
753
- <section class="pf-v6-c-options-menu__group" role="none">
754
- <h1 class="pf-v6-c-options-menu__group-title">Group 1</h1>
755
-
756
- <ul role="group">
757
- <li role="none">
758
- <button
759
- class="pf-v6-c-options-menu__menu-item"
760
- type="button"
761
- role="menuitem"
762
- >Option 1</button>
763
- </li>
764
- <li role="none">
765
- <button
766
- class="pf-v6-c-options-menu__menu-item"
767
- type="button"
768
- role="menuitem"
769
- >Option 2</button>
770
- </li>
771
- </ul>
772
- </section>
773
- <section class="pf-v6-c-options-menu__group" role="none">
774
- <h1 class="pf-v6-c-options-menu__group-title">Group 2</h1>
775
-
776
- <ul role="group">
777
- <li role="none">
778
- <button
779
- class="pf-v6-c-options-menu__menu-item"
780
- type="button"
781
- role="menuitem"
782
- >Option 1</button>
783
- </li>
784
- <li role="none">
785
- <button
786
- class="pf-v6-c-options-menu__menu-item"
787
- type="button"
788
- role="menuitem"
789
- >Option 2</button>
790
- </li>
791
- </ul>
792
- </section>
793
- </div>
794
- </div>
795
-
796
- ```
797
-
798
- ### With groups and dividers between groups
799
-
800
- ```html
801
- <div class="pf-v6-c-options-menu pf-m-expanded">
802
- <button
803
- class="pf-v6-c-options-menu__toggle"
804
- type="button"
805
- id="options-menu-groups-and-dividers-between-groups-toggle"
806
- aria-haspopup="listbox"
807
- aria-expanded="true"
808
- >
809
- <span class="pf-v6-c-options-menu__toggle-text">Options menu</span>
810
- <div class="pf-v6-c-options-menu__toggle-icon">
811
- <i class="fas fa-caret-down" aria-hidden="true"></i>
812
- </div>
813
- </button>
814
- <div
815
- class="pf-v6-c-options-menu__menu"
816
- role="menu"
817
- aria-labelledby="options-menu-groups-and-dividers-between-groups-toggle"
818
- >
819
- <section class="pf-v6-c-options-menu__group" role="none">
820
- <ul role="group">
821
- <li role="none">
822
- <button
823
- class="pf-v6-c-options-menu__menu-item"
824
- type="button"
825
- role="menuitem"
826
- >Option 1</button>
827
- </li>
828
- <li role="none">
829
- <button
830
- class="pf-v6-c-options-menu__menu-item"
831
- type="button"
832
- role="menuitem"
833
- >
834
- Option 2
835
- <div class="pf-v6-c-options-menu__menu-item-icon">
836
- <i class="fas fa-check" aria-hidden="true"></i>
837
- </div>
838
- </button>
839
- </li>
840
- </ul>
841
- </section>
842
- <hr class="pf-v6-c-divider" />
843
- <section class="pf-v6-c-options-menu__group" role="none">
844
- <h1 class="pf-v6-c-options-menu__group-title">Group 1</h1>
845
-
846
- <ul role="group">
847
- <li role="none">
848
- <button
849
- class="pf-v6-c-options-menu__menu-item"
850
- type="button"
851
- role="menuitem"
852
- >Option 1</button>
853
- </li>
854
- <li role="none">
855
- <button
856
- class="pf-v6-c-options-menu__menu-item"
857
- type="button"
858
- role="menuitem"
859
- >Option 2</button>
860
- </li>
861
- </ul>
862
- </section>
863
- <hr class="pf-v6-c-divider" />
864
- <section class="pf-v6-c-options-menu__group" role="none">
865
- <h1 class="pf-v6-c-options-menu__group-title">Group 2</h1>
866
-
867
- <ul role="group">
868
- <li role="none">
869
- <button
870
- class="pf-v6-c-options-menu__menu-item"
871
- type="button"
872
- role="menuitem"
873
- >Option 1</button>
874
- </li>
875
- <li role="none">
876
- <button
877
- class="pf-v6-c-options-menu__menu-item"
878
- type="button"
879
- role="menuitem"
880
- >Option 2</button>
881
- </li>
882
- </ul>
883
- </section>
884
- </div>
885
- </div>
886
-
887
- ```
888
-
889
- ### With groups and dividers between items
890
-
891
- ```html
892
- <div class="pf-v6-c-options-menu pf-m-expanded">
893
- <button
894
- class="pf-v6-c-options-menu__toggle"
895
- type="button"
896
- id="options-menu-groups-and-dividers-between-items-toggle"
897
- aria-haspopup="listbox"
898
- aria-expanded="true"
899
- >
900
- <span class="pf-v6-c-options-menu__toggle-text">Options menu</span>
901
- <div class="pf-v6-c-options-menu__toggle-icon">
902
- <i class="fas fa-caret-down" aria-hidden="true"></i>
903
- </div>
904
- </button>
905
- <div
906
- class="pf-v6-c-options-menu__menu"
907
- role="menu"
908
- aria-labelledby="options-menu-groups-and-dividers-between-items-toggle"
909
- >
910
- <section class="pf-v6-c-options-menu__group" role="none">
911
- <ul role="group">
912
- <li role="none">
913
- <button
914
- class="pf-v6-c-options-menu__menu-item"
915
- type="button"
916
- role="menuitem"
917
- >Option 1</button>
918
- </li>
919
- <li role="none">
920
- <button
921
- class="pf-v6-c-options-menu__menu-item"
922
- type="button"
923
- role="menuitem"
924
- >
925
- Option 2
926
- <div class="pf-v6-c-options-menu__menu-item-icon">
927
- <i class="fas fa-check" aria-hidden="true"></i>
928
- </div>
929
- </button>
930
- </li>
931
- <li class="pf-v6-c-divider" role="separator"></li>
932
- </ul>
933
- </section>
934
- <section class="pf-v6-c-options-menu__group" role="none">
935
- <h1 class="pf-v6-c-options-menu__group-title">Group 1</h1>
936
-
937
- <ul role="group">
938
- <li role="none">
939
- <button
940
- class="pf-v6-c-options-menu__menu-item"
941
- type="button"
942
- role="menuitem"
943
- >Option 1</button>
944
- </li>
945
- <li role="none">
946
- <button
947
- class="pf-v6-c-options-menu__menu-item"
948
- type="button"
949
- role="menuitem"
950
- >Option 2</button>
951
- </li>
952
- <li class="pf-v6-c-divider" role="separator"></li>
953
- </ul>
954
- </section>
955
- <section class="pf-v6-c-options-menu__group" role="none">
956
- <h1 class="pf-v6-c-options-menu__group-title">Group 2</h1>
957
-
958
- <ul role="group">
959
- <li role="none">
960
- <button
961
- class="pf-v6-c-options-menu__menu-item"
962
- type="button"
963
- role="menuitem"
964
- >Option 1</button>
965
- </li>
966
- <li role="none">
967
- <button
968
- class="pf-v6-c-options-menu__menu-item"
969
- type="button"
970
- role="menuitem"
971
- >Option 2</button>
972
- </li>
973
- </ul>
974
- </section>
975
- </div>
976
- </div>
977
-
978
- ```
979
-
980
- ## Documentation
981
-
982
- ### Accessibility
983
-
984
- *This section to be updated once the React implementation is complete.*
985
-
986
- | Attribute | Applied to | Outcome |
987
- | -- | -- | -- |
988
- | `role` or `aria` | `pf-v6-c-options-menu` | accessibility notes. |
989
- | `disabled` | `.pf-v6-c-options-menu__toggle`, `.pf-v6-c-options-menu__toggle-button` | Disables the options menu toggle and toggle button and removes it from keyboard focus. |
990
- *Note:* The attribute `aria-selected="true"` should be set programmatically to the selected item(s).
991
-
992
- ### Usage
993
-
994
- | Class | Applied to | Outcome |
995
- | -- | -- | -- |
996
- | `.pf-v6-c-options-menu` | `<div>` | Initiates a custom options menu. |
997
- | `.pf-v6-c-options-menu__toggle` | `<button>` | Initiates a custom toggle. |
998
- | `.pf-v6-c-options-menu__toggle-text` | `<span>` | Initiates a wrapper for toggle text.
999
- | `.pf-v6-c-options-menu__toggle-icon` | `<i>` | Initiates the up/down arrow beside toggle text. |
1000
- | `.pf-v6-c-options-menu__toggle-button` | `<button>` | Initiates a custom toggle button for use when `.pf-v6-c-options-menu__toggle` is a `<div>` or non-interactive element. |
1001
- | `.pf-v6-c-options-menu__menu` | `<ul>` | Initiates the custom options-menu menu. |
1002
- | `.pf-v6-c-options-menu__menu-item` | `<li>` | Initiates the items in the custom options-menu menu. |
1003
- | `.pf-v6-c-options-menu__menu-item-icon` | `<i>` | Initiates the icon to indicate selected menu items. |
1004
- | `.pf-v6-c-options-menu__group` | `<section>` | Defines a group of items in an options menu. **Required when there is more than one group in an options menu**. |
1005
- | `.pf-v6-c-options-menu__group-title` | `<h1>` | Defines the title for a group of items in an options menu. |
1006
- | `.pf-m-top` | `.pf-v6-c-options-menu` | Modifies to display the menu above the toggle. |
1007
- | `.pf-m-align-right` | `.pf-v6-c-options-menu__menu` | Modifies to display the menu aligned to the right edge of the toggle |
1008
- | `.pf-m-expanded` | `.pf-v6-c-options-menu` | Modifies for the expanded state. |
1009
- | `.pf-m-static` | `.pf-v6-c-options-menu__menu` | Modifies the menu to be statically positioned to support custom positioning. |
1010
- | `.pf-m-plain` | `.pf-v6-c-options-menu__toggle` | Modifies to display the toggle with no border. **Note:** Can be combined with `.pf-m-text` to create a normal text toggle with no border. |
1011
- | `.pf-m-disabled` | `.pf-v6-c-options-menu__toggle` | Modifies to display the options menu toggle as disabled. This applies to `pf-v6-c-options-menu__toggle` and should not be used in lieu of the `disabled` attribute on `pf-v6-c-options-menu__toggle`. When this is used, `disabled` should also be added to any form elements in `.pf-v6-c-options-menu__toggle` |
1012
- | `.pf-m-text` | `.pf-v6-c-options-menu__toggle` | For use when the `.pf-v6-c-options-menu__toggle` is a `<div>` or some non-interactive elment, and you're using a custom `.pf-v6-c-options-menu__toggle-button` to toggle the options menu. |
1013
- | `.pf-m-active` | `.pf-v6-c-options-menu__toggle` | Forces display of the active state of the toggle. |
1014
- | `.pf-m-selected` | `.pf-v6-c-options-menu__menu-item` | Modifies the menu item for the selected state. |