@patternfly/patternfly 6.0.0-alpha.207 → 6.0.0-alpha.208
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.
|
@@ -312,21 +312,20 @@ cssPrefix: pf-v6-c-menu-toggle
|
|
|
312
312
|
|
|
313
313
|
```
|
|
314
314
|
|
|
315
|
-
### Split
|
|
315
|
+
### Split toggle with checkbox
|
|
316
316
|
|
|
317
317
|
```html
|
|
318
318
|
<div
|
|
319
319
|
class="pf-v6-c-menu-toggle pf-m-split-button"
|
|
320
320
|
id="split-button-checkbox-example"
|
|
321
321
|
>
|
|
322
|
-
<label
|
|
323
|
-
class="pf-v6-c-check pf-m-standalone"
|
|
324
|
-
for="split-button-checkbox-example-input"
|
|
325
|
-
>
|
|
322
|
+
<label class="pf-v6-c-check pf-m-standalone">
|
|
326
323
|
<input
|
|
327
324
|
class="pf-v6-c-check__input"
|
|
328
325
|
type="checkbox"
|
|
329
|
-
|
|
326
|
+
id="split-button-checkbox-example-input"
|
|
327
|
+
name="split-button-checkbox-example-input"
|
|
328
|
+
aria-label="Select all items"
|
|
330
329
|
/>
|
|
331
330
|
</label>
|
|
332
331
|
<button
|
|
@@ -348,14 +347,13 @@ cssPrefix: pf-v6-c-menu-toggle
|
|
|
348
347
|
class="pf-v6-c-menu-toggle pf-m-expanded pf-m-split-button"
|
|
349
348
|
id="split-button-checkbox-expanded-example"
|
|
350
349
|
>
|
|
351
|
-
<label
|
|
352
|
-
class="pf-v6-c-check pf-m-standalone"
|
|
353
|
-
for="split-button-checkbox-expanded-example-input"
|
|
354
|
-
>
|
|
350
|
+
<label class="pf-v6-c-check pf-m-standalone">
|
|
355
351
|
<input
|
|
356
352
|
class="pf-v6-c-check__input"
|
|
357
353
|
type="checkbox"
|
|
358
|
-
|
|
354
|
+
id="split-button-checkbox-expanded-example-input"
|
|
355
|
+
name="split-button-checkbox-expanded-example-input"
|
|
356
|
+
aria-label="Select all items"
|
|
359
357
|
/>
|
|
360
358
|
</label>
|
|
361
359
|
<button
|
|
@@ -377,15 +375,14 @@ cssPrefix: pf-v6-c-menu-toggle
|
|
|
377
375
|
class="pf-v6-c-menu-toggle pf-m-split-button pf-m-disabled"
|
|
378
376
|
id="split-button-checkbox-disabled-example"
|
|
379
377
|
>
|
|
380
|
-
<label
|
|
381
|
-
class="pf-v6-c-check pf-m-standalone"
|
|
382
|
-
for="split-button-checkbox-disabled-example-input"
|
|
383
|
-
>
|
|
378
|
+
<label class="pf-v6-c-check pf-m-standalone">
|
|
384
379
|
<input
|
|
385
380
|
class="pf-v6-c-check__input"
|
|
386
381
|
type="checkbox"
|
|
387
|
-
aria-label="Standalone check"
|
|
388
382
|
disabled
|
|
383
|
+
id="split-button-checkbox-disabled-example-input"
|
|
384
|
+
name="split-button-checkbox-disabled-example-input"
|
|
385
|
+
aria-label="Select all items"
|
|
389
386
|
/>
|
|
390
387
|
</label>
|
|
391
388
|
<button
|
|
@@ -406,7 +403,9 @@ cssPrefix: pf-v6-c-menu-toggle
|
|
|
406
403
|
|
|
407
404
|
```
|
|
408
405
|
|
|
409
|
-
### Split
|
|
406
|
+
### Split toggle with labeled checkbox
|
|
407
|
+
|
|
408
|
+
To add a label to a split toggle that will be linked to the checkbox, pass the text wrapped in `span.pf-v6-c-check__label` as a child to `label.pf-v6-c-check`. Clicking the text will update the checked state of the split toggle's checkbox.
|
|
410
409
|
|
|
411
410
|
```html
|
|
412
411
|
<div
|
|
@@ -417,8 +416,13 @@ cssPrefix: pf-v6-c-menu-toggle
|
|
|
417
416
|
class="pf-v6-c-check"
|
|
418
417
|
for="split-button-checkbox-with-toggle-text-example-input"
|
|
419
418
|
>
|
|
420
|
-
<input
|
|
421
|
-
|
|
419
|
+
<input
|
|
420
|
+
class="pf-v6-c-check__input"
|
|
421
|
+
type="checkbox"
|
|
422
|
+
id="split-button-checkbox-with-toggle-text-example-input"
|
|
423
|
+
name="split-button-checkbox-with-toggle-text-example-input"
|
|
424
|
+
/>
|
|
425
|
+
<span class="pf-v6-c-check__label">Select all items</span>
|
|
422
426
|
</label>
|
|
423
427
|
<button
|
|
424
428
|
class="pf-v6-c-menu-toggle__button"
|
|
@@ -443,8 +447,13 @@ cssPrefix: pf-v6-c-menu-toggle
|
|
|
443
447
|
class="pf-v6-c-check"
|
|
444
448
|
for="split-button-checkbox-with-toggle-text-expanded-example-input"
|
|
445
449
|
>
|
|
446
|
-
<input
|
|
447
|
-
|
|
450
|
+
<input
|
|
451
|
+
class="pf-v6-c-check__input"
|
|
452
|
+
type="checkbox"
|
|
453
|
+
id="split-button-checkbox-with-toggle-text-expanded-example-input"
|
|
454
|
+
name="split-button-checkbox-with-toggle-text-expanded-example-input"
|
|
455
|
+
/>
|
|
456
|
+
<span class="pf-v6-c-check__label">Select all items</span>
|
|
448
457
|
</label>
|
|
449
458
|
<button
|
|
450
459
|
class="pf-v6-c-menu-toggle__button"
|
|
@@ -469,8 +478,14 @@ cssPrefix: pf-v6-c-menu-toggle
|
|
|
469
478
|
class="pf-v6-c-check"
|
|
470
479
|
for="split-button-checkbox-with-toggle-text-disabled-example-input"
|
|
471
480
|
>
|
|
472
|
-
<input
|
|
473
|
-
|
|
481
|
+
<input
|
|
482
|
+
class="pf-v6-c-check__input"
|
|
483
|
+
type="checkbox"
|
|
484
|
+
disabled
|
|
485
|
+
id="split-button-checkbox-with-toggle-text-disabled-example-input"
|
|
486
|
+
name="split-button-checkbox-with-toggle-text-disabled-example-input"
|
|
487
|
+
/>
|
|
488
|
+
<span class="pf-v6-c-check__label pf-m-disabled">Select all items</span>
|
|
474
489
|
</label>
|
|
475
490
|
<button
|
|
476
491
|
class="pf-v6-c-menu-toggle__button"
|
|
@@ -490,30 +505,30 @@ cssPrefix: pf-v6-c-menu-toggle
|
|
|
490
505
|
|
|
491
506
|
```
|
|
492
507
|
|
|
493
|
-
### Split
|
|
508
|
+
### Split toggle with checkbox and toggle text
|
|
509
|
+
|
|
510
|
+
To add a label to a split toggle that will be linked to the toggle button, pass the text wrapped in `span.pf-v6-c-menu-toggle__text` as a child to `button.pf-v6-c-menu-toggle__button.pf-m-text`. Clicking the text should trigger any click action on the toggle.
|
|
494
511
|
|
|
495
512
|
```html
|
|
496
513
|
<div
|
|
497
|
-
class="pf-v6-c-menu-toggle pf-m-split-button
|
|
498
|
-
id="split-button-checkbox-with-toggle-button-text-
|
|
514
|
+
class="pf-v6-c-menu-toggle pf-m-split-button"
|
|
515
|
+
id="split-button-checkbox-with-toggle-button-text-example"
|
|
499
516
|
>
|
|
500
517
|
<label class="pf-v6-c-check pf-m-standalone">
|
|
501
518
|
<input
|
|
502
519
|
class="pf-v6-c-check__input"
|
|
503
520
|
type="checkbox"
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
aria-label="Standalone input"
|
|
521
|
+
id="split-button-checkbox-with-toggle-button-text-example-input"
|
|
522
|
+
name="split-button-checkbox-with-toggle-button-text-example-input"
|
|
523
|
+
aria-label="Select all items"
|
|
508
524
|
/>
|
|
509
525
|
</label>
|
|
510
526
|
<button
|
|
511
527
|
class="pf-v6-c-menu-toggle__button pf-m-text"
|
|
512
528
|
type="button"
|
|
513
529
|
aria-expanded="false"
|
|
514
|
-
id="split-button-checkbox-with-toggle-button-text-
|
|
530
|
+
id="split-button-checkbox-with-toggle-button-text-example-toggle-button"
|
|
515
531
|
aria-label="Menu toggle"
|
|
516
|
-
disabled
|
|
517
532
|
>
|
|
518
533
|
<span class="pf-v6-c-menu-toggle__text">Toggle button text</span>
|
|
519
534
|
<span class="pf-v6-c-menu-toggle__controls">
|
|
@@ -524,23 +539,23 @@ cssPrefix: pf-v6-c-menu-toggle
|
|
|
524
539
|
</button>
|
|
525
540
|
</div>
|
|
526
541
|
<div
|
|
527
|
-
class="pf-v6-c-menu-toggle pf-m-split-button"
|
|
528
|
-
id="split-button-checkbox-with-toggle-button-text-example"
|
|
542
|
+
class="pf-v6-c-menu-toggle pf-m-expanded pf-m-split-button"
|
|
543
|
+
id="split-button-checkbox-with-toggle-button-text-expanded-example"
|
|
529
544
|
>
|
|
530
545
|
<label class="pf-v6-c-check pf-m-standalone">
|
|
531
546
|
<input
|
|
532
547
|
class="pf-v6-c-check__input"
|
|
533
548
|
type="checkbox"
|
|
534
|
-
id="split-button-checkbox-with-toggle-button-text-example-input"
|
|
535
|
-
name="split-button-checkbox-with-toggle-button-text-example-input"
|
|
536
|
-
aria-label="
|
|
549
|
+
id="split-button-checkbox-with-toggle-button-text-expanded-example-input"
|
|
550
|
+
name="split-button-checkbox-with-toggle-button-text-expanded-example-input"
|
|
551
|
+
aria-label="Select all items"
|
|
537
552
|
/>
|
|
538
553
|
</label>
|
|
539
554
|
<button
|
|
540
555
|
class="pf-v6-c-menu-toggle__button pf-m-text"
|
|
541
556
|
type="button"
|
|
542
|
-
aria-expanded="
|
|
543
|
-
id="split-button-checkbox-with-toggle-button-text-example-toggle-button"
|
|
557
|
+
aria-expanded="true"
|
|
558
|
+
id="split-button-checkbox-with-toggle-button-text-expanded-example-toggle-button"
|
|
544
559
|
aria-label="Menu toggle"
|
|
545
560
|
>
|
|
546
561
|
<span class="pf-v6-c-menu-toggle__text">Toggle button text</span>
|
|
@@ -552,24 +567,26 @@ cssPrefix: pf-v6-c-menu-toggle
|
|
|
552
567
|
</button>
|
|
553
568
|
</div>
|
|
554
569
|
<div
|
|
555
|
-
class="pf-v6-c-menu-toggle pf-m-
|
|
556
|
-
id="split-button-checkbox-with-toggle-button-text-
|
|
570
|
+
class="pf-v6-c-menu-toggle pf-m-split-button pf-m-disabled"
|
|
571
|
+
id="split-button-checkbox-with-toggle-button-text-disabled-example"
|
|
557
572
|
>
|
|
558
573
|
<label class="pf-v6-c-check pf-m-standalone">
|
|
559
574
|
<input
|
|
560
575
|
class="pf-v6-c-check__input"
|
|
561
576
|
type="checkbox"
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
577
|
+
disabled
|
|
578
|
+
id="split-button-checkbox-with-toggle-button-text-disabled-example-input"
|
|
579
|
+
name="split-button-checkbox-with-toggle-button-text-disabled-example-input"
|
|
580
|
+
aria-label="Select all items"
|
|
565
581
|
/>
|
|
566
582
|
</label>
|
|
567
583
|
<button
|
|
568
584
|
class="pf-v6-c-menu-toggle__button pf-m-text"
|
|
569
585
|
type="button"
|
|
570
|
-
aria-expanded="
|
|
571
|
-
id="split-button-checkbox-with-toggle-button-text-
|
|
586
|
+
aria-expanded="false"
|
|
587
|
+
id="split-button-checkbox-with-toggle-button-text-disabled-example-toggle-button"
|
|
572
588
|
aria-label="Menu toggle"
|
|
589
|
+
disabled
|
|
573
590
|
>
|
|
574
591
|
<span class="pf-v6-c-menu-toggle__text">Toggle button text</span>
|
|
575
592
|
<span class="pf-v6-c-menu-toggle__controls">
|
|
@@ -677,8 +694,13 @@ cssPrefix: pf-v6-c-menu-toggle
|
|
|
677
694
|
class="pf-v6-c-check"
|
|
678
695
|
for="split-button-checkbox-primary-example-input"
|
|
679
696
|
>
|
|
680
|
-
<input
|
|
681
|
-
|
|
697
|
+
<input
|
|
698
|
+
class="pf-v6-c-check__input"
|
|
699
|
+
type="checkbox"
|
|
700
|
+
id="split-button-checkbox-primary-example-input"
|
|
701
|
+
name="split-button-checkbox-primary-example-input"
|
|
702
|
+
/>
|
|
703
|
+
<span class="pf-v6-c-check__label">Select all items</span>
|
|
682
704
|
</label>
|
|
683
705
|
<button
|
|
684
706
|
class="pf-v6-c-menu-toggle__button"
|
|
@@ -703,8 +725,13 @@ cssPrefix: pf-v6-c-menu-toggle
|
|
|
703
725
|
class="pf-v6-c-check"
|
|
704
726
|
for="split-button-checkbox-primary-expanded-example-input"
|
|
705
727
|
>
|
|
706
|
-
<input
|
|
707
|
-
|
|
728
|
+
<input
|
|
729
|
+
class="pf-v6-c-check__input"
|
|
730
|
+
type="checkbox"
|
|
731
|
+
id="split-button-checkbox-primary-expanded-example-input"
|
|
732
|
+
name="split-button-checkbox-primary-expanded-example-input"
|
|
733
|
+
/>
|
|
734
|
+
<span class="pf-v6-c-check__label">Select all items</span>
|
|
708
735
|
</label>
|
|
709
736
|
<button
|
|
710
737
|
class="pf-v6-c-menu-toggle__button"
|
|
@@ -729,8 +756,14 @@ cssPrefix: pf-v6-c-menu-toggle
|
|
|
729
756
|
class="pf-v6-c-check"
|
|
730
757
|
for="split-button-checkbox-primary-disabled-example-input"
|
|
731
758
|
>
|
|
732
|
-
<input
|
|
733
|
-
|
|
759
|
+
<input
|
|
760
|
+
class="pf-v6-c-check__input"
|
|
761
|
+
type="checkbox"
|
|
762
|
+
disabled
|
|
763
|
+
id="split-button-checkbox-primary-disabled-example-input"
|
|
764
|
+
name="split-button-checkbox-primary-disabled-example-input"
|
|
765
|
+
/>
|
|
766
|
+
<span class="pf-v6-c-check__label pf-m-disabled">Select all items</span>
|
|
734
767
|
</label>
|
|
735
768
|
<button
|
|
736
769
|
class="pf-v6-c-menu-toggle__button"
|
|
@@ -761,8 +794,13 @@ cssPrefix: pf-v6-c-menu-toggle
|
|
|
761
794
|
class="pf-v6-c-check"
|
|
762
795
|
for="split-button-checkbox-secondary-example-input"
|
|
763
796
|
>
|
|
764
|
-
<input
|
|
765
|
-
|
|
797
|
+
<input
|
|
798
|
+
class="pf-v6-c-check__input"
|
|
799
|
+
type="checkbox"
|
|
800
|
+
id="split-button-checkbox-secondary-example-input"
|
|
801
|
+
name="split-button-checkbox-secondary-example-input"
|
|
802
|
+
/>
|
|
803
|
+
<span class="pf-v6-c-check__label">Select all items</span>
|
|
766
804
|
</label>
|
|
767
805
|
<button
|
|
768
806
|
class="pf-v6-c-menu-toggle__button"
|
|
@@ -787,8 +825,13 @@ cssPrefix: pf-v6-c-menu-toggle
|
|
|
787
825
|
class="pf-v6-c-check"
|
|
788
826
|
for="split-button-checkbox-secondary-expanded-example-input"
|
|
789
827
|
>
|
|
790
|
-
<input
|
|
791
|
-
|
|
828
|
+
<input
|
|
829
|
+
class="pf-v6-c-check__input"
|
|
830
|
+
type="checkbox"
|
|
831
|
+
id="split-button-checkbox-secondary-expanded-example-input"
|
|
832
|
+
name="split-button-checkbox-secondary-expanded-example-input"
|
|
833
|
+
/>
|
|
834
|
+
<span class="pf-v6-c-check__label">Select all items</span>
|
|
792
835
|
</label>
|
|
793
836
|
<button
|
|
794
837
|
class="pf-v6-c-menu-toggle__button"
|
|
@@ -813,8 +856,14 @@ cssPrefix: pf-v6-c-menu-toggle
|
|
|
813
856
|
class="pf-v6-c-check"
|
|
814
857
|
for="split-button-checkbox-secondary-disabled-example-input"
|
|
815
858
|
>
|
|
816
|
-
<input
|
|
817
|
-
|
|
859
|
+
<input
|
|
860
|
+
class="pf-v6-c-check__input"
|
|
861
|
+
type="checkbox"
|
|
862
|
+
disabled
|
|
863
|
+
id="split-button-checkbox-secondary-disabled-example-input"
|
|
864
|
+
name="split-button-checkbox-secondary-disabled-example-input"
|
|
865
|
+
/>
|
|
866
|
+
<span class="pf-v6-c-check__label pf-m-disabled">Select all items</span>
|
|
818
867
|
</label>
|
|
819
868
|
<button
|
|
820
869
|
class="pf-v6-c-menu-toggle__button"
|