@patternfly/patternfly 4.175.0 → 4.176.3

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 (33) hide show
  1. package/components/AlertGroup/alert-group.css +36 -0
  2. package/components/AlertGroup/alert-group.scss +41 -0
  3. package/components/Dropdown/dropdown.css +10 -9
  4. package/components/Dropdown/dropdown.scss +17 -16
  5. package/components/Label/label.css +43 -12
  6. package/components/Label/label.scss +45 -13
  7. package/components/Nav/nav.css +11 -0
  8. package/components/Nav/nav.scss +14 -0
  9. package/docs/components/AlertGroup/examples/AlertGroup.md +8 -3
  10. package/docs/components/Label/examples/Label.md +33 -67
  11. package/docs/components/LabelGroup/examples/LabelGroup.md +64 -107
  12. package/docs/components/LogViewer/examples/LogViewer.md +9 -9
  13. package/docs/components/Menu/examples/Menu.md +43 -42
  14. package/docs/components/Nav/examples/Navigation.md +23 -44
  15. package/docs/demos/Alert/examples/Alert.md +52 -359
  16. package/docs/demos/BackToTop/examples/BackToTop.md +5 -505
  17. package/docs/demos/Card/examples/Card.md +42 -36
  18. package/docs/demos/ContextSelector/examples/ContextSelector.md +46 -1051
  19. package/docs/demos/Drawer/examples/Drawer.md +3 -3
  20. package/docs/demos/JumpLinks/examples/JumpLinks.md +80 -1225
  21. package/docs/demos/Masthead/examples/Masthead.md +14 -6
  22. package/docs/demos/Nav/examples/Nav.md +9 -301
  23. package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +5 -5
  24. package/docs/demos/Page/examples/Page.md +162 -3084
  25. package/docs/demos/Table/examples/Table.md +183 -18031
  26. package/docs/demos/Tabs/examples/Tabs.md +686 -7389
  27. package/docs/demos/Toolbar/examples/Toolbar.md +44 -1027
  28. package/docs/demos/Wizard/examples/Wizard.md +2 -2
  29. package/package.json +1 -1
  30. package/patternfly-no-reset.css +100 -21
  31. package/patternfly.css +100 -21
  32. package/patternfly.min.css +1 -1
  33. package/patternfly.min.css.map +1 -1
@@ -262,7 +262,7 @@ section: components
262
262
  <div class="pf-c-page__main-body">
263
263
  <div class="pf-c-content">
264
264
  <h1>Main title</h1>
265
- <p>This is a demo of the page component.</p>
265
+ <p>This is a full page demo.</p>
266
266
  </div>
267
267
  </div>
268
268
  </section>
@@ -330,1062 +330,57 @@ section: components
330
330
 
331
331
  ### Context selector in sidebar
332
332
 
333
- ```html isFullscreen
334
- <div class="pf-c-page" id="context-selector-in-sidebar">
335
- <header class="pf-c-page__header">
336
- <a
337
- class="pf-c-skip-to-content pf-c-button pf-m-primary"
338
- href="#main-content-context-selector-in-sidebar"
339
- >Skip to content</a>
340
- <header class="pf-c-masthead" id="context-selector-in-sidebar-masthead">
341
- <span class="pf-c-masthead__toggle">
342
- <button
343
- class="pf-c-button pf-m-plain"
344
- type="button"
345
- aria-label="Global navigation"
346
- >
347
- <i class="fas fa-bars" aria-hidden="true"></i>
348
- </button>
349
- </span>
350
- <div class="pf-c-masthead__main">
351
- <a class="pf-c-masthead__brand" href="#">
352
- <img
353
- class="pf-c-brand"
354
- src="/assets/images/PF-Masthead-Logo.svg"
355
- alt="PatternFly logo"
356
- />
357
- </a>
358
- </div>
359
- <div class="pf-c-masthead__content">test</div>
360
- </header>
361
- </header>
362
- <div class="pf-c-page__sidebar">
363
- <div class="pf-c-page__sidebar-body pf-m-menu">
364
- <div class="pf-c-context-selector pf-m-page-insets pf-m-large">
365
- <span
366
- id="context-selector-collapsed-example-label"
367
- hidden
368
- >Selected project:</span>
369
- <button
370
- class="pf-c-context-selector__toggle"
371
- aria-expanded="false"
372
- id="context-selector-collapsed-example-toggle"
373
- aria-labelledby="context-selector-collapsed-example-label context-selector-collapsed-example-toggle"
374
- >
375
- <span class="pf-c-context-selector__toggle-text">My project</span>
376
- <span class="pf-c-context-selector__toggle-icon">
377
- <i class="fas fa-caret-down" aria-hidden="true"></i>
378
- </span>
379
- </button>
380
- <div class="pf-c-context-selector__menu" hidden>
381
- <div class="pf-c-context-selector__menu-search">
382
- <div class="pf-c-input-group">
383
- <input
384
- class="pf-c-form-control"
385
- type="search"
386
- placeholder="Search"
387
- id="textInput1"
388
- name="textInput1"
389
- aria-labelledby="context-selector-collapsed-example-search-button"
390
- />
391
- <button
392
- class="pf-c-button pf-m-control"
393
- type="button"
394
- id="context-selector-collapsed-example-search-button"
395
- aria-label="Search menu items"
396
- >
397
- <i class="fas fa-search" aria-hidden="true"></i>
398
- </button>
399
- </div>
400
- </div>
401
- <ul class="pf-c-context-selector__menu-list">
402
- <li>
403
- <a class="pf-c-context-selector__menu-list-item" href="#">Link</a>
404
- </li>
405
- <li>
406
- <button
407
- class="pf-c-context-selector__menu-list-item"
408
- type="button"
409
- >Action</button>
410
- </li>
411
- <li>
412
- <a
413
- class="pf-c-context-selector__menu-list-item pf-m-disabled"
414
- href="#"
415
- aria-disabled="true"
416
- tabindex="-1"
417
- >Disabled link</a>
418
- </li>
419
- <li>
420
- <button
421
- class="pf-c-context-selector__menu-list-item"
422
- type="button"
423
- disabled
424
- >Disabled action</button>
425
- </li>
426
- <li>
427
- <button
428
- class="pf-c-context-selector__menu-list-item"
429
- type="button"
430
- >My project</button>
431
- </li>
432
- <li>
433
- <button
434
- class="pf-c-context-selector__menu-list-item"
435
- type="button"
436
- >OpenShift cluster</button>
437
- </li>
438
- <li>
439
- <button
440
- class="pf-c-context-selector__menu-list-item"
441
- type="button"
442
- >Production Ansible</button>
443
- </li>
444
- <li>
445
- <button
446
- class="pf-c-context-selector__menu-list-item"
447
- type="button"
448
- >AWS</button>
449
- </li>
450
- <li>
451
- <button
452
- class="pf-c-context-selector__menu-list-item"
453
- type="button"
454
- >Azure</button>
455
- </li>
456
- <li>
457
- <button
458
- class="pf-c-context-selector__menu-list-item"
459
- type="button"
460
- >My project</button>
461
- </li>
462
- <li>
463
- <button
464
- class="pf-c-context-selector__menu-list-item"
465
- type="button"
466
- >OpenShift cluster</button>
467
- </li>
468
- <li>
469
- <button
470
- class="pf-c-context-selector__menu-list-item"
471
- type="button"
472
- >Production Ansible</button>
473
- </li>
474
- <li>
475
- <button
476
- class="pf-c-context-selector__menu-list-item"
477
- type="button"
478
- >AWS</button>
479
- </li>
480
- <li>
481
- <button
482
- class="pf-c-context-selector__menu-list-item"
483
- type="button"
484
- >Azure</button>
485
- </li>
486
- </ul>
487
- </div>
488
- </div>
489
- </div>
490
- <div class="pf-c-page__sidebar-body">
491
- <nav
492
- class="pf-c-nav"
493
- id="context-selector-in-sidebar-primary-nav"
494
- aria-label="Global"
495
- >
496
- <ul class="pf-c-nav__list">
497
- <li class="pf-c-nav__item">
498
- <a href="#" class="pf-c-nav__link">System panel</a>
499
- </li>
500
- <li class="pf-c-nav__item">
501
- <a
502
- href="#"
503
- class="pf-c-nav__link pf-m-current"
504
- aria-current="page"
505
- >Policy</a>
506
- </li>
507
- <li class="pf-c-nav__item">
508
- <a href="#" class="pf-c-nav__link">Authentication</a>
509
- </li>
510
- <li class="pf-c-nav__item">
511
- <a href="#" class="pf-c-nav__link">Network services</a>
512
- </li>
513
- <li class="pf-c-nav__item">
514
- <a href="#" class="pf-c-nav__link">Server</a>
515
- </li>
516
- </ul>
517
- </nav>
518
- </div>
519
- </div>
520
- <main
521
- class="pf-c-page__main"
522
- tabindex="-1"
523
- id="main-content-context-selector-in-sidebar"
524
- >
525
- <section
526
- class="pf-c-page__main-section pf-m-limit-width pf-m-light pf-m-shadow-bottom"
527
- >
528
- <div class="pf-c-page__main-body">
529
- <div class="pf-c-content">
530
- <h1>Main title</h1>
531
- <p>This is a demo of the page component.</p>
532
- </div>
533
- </div>
534
- </section>
535
- <section
536
- class="pf-c-page__main-section pf-m-limit-width pf-m-overflow-scroll"
537
- >
538
- <div class="pf-c-page__main-body">
539
- <div class="pf-l-gallery pf-m-gutter">
540
- <div class="pf-l-gallery__item">
541
- <div class="pf-c-card">
542
- <div class="pf-c-card__body">This is a card</div>
543
- </div>
544
- </div>
545
- <div class="pf-l-gallery__item">
546
- <div class="pf-c-card">
547
- <div class="pf-c-card__body">This is a card</div>
548
- </div>
549
- </div>
550
- <div class="pf-l-gallery__item">
551
- <div class="pf-c-card">
552
- <div class="pf-c-card__body">This is a card</div>
553
- </div>
554
- </div>
555
- <div class="pf-l-gallery__item">
556
- <div class="pf-c-card">
557
- <div class="pf-c-card__body">This is a card</div>
558
- </div>
559
- </div>
560
- <div class="pf-l-gallery__item">
561
- <div class="pf-c-card">
562
- <div class="pf-c-card__body">This is a card</div>
563
- </div>
564
- </div>
565
- <div class="pf-l-gallery__item">
566
- <div class="pf-c-card">
567
- <div class="pf-c-card__body">This is a card</div>
568
- </div>
569
- </div>
570
- <div class="pf-l-gallery__item">
571
- <div class="pf-c-card">
572
- <div class="pf-c-card__body">This is a card</div>
573
- </div>
574
- </div>
575
- <div class="pf-l-gallery__item">
576
- <div class="pf-c-card">
577
- <div class="pf-c-card__body">This is a card</div>
578
- </div>
579
- </div>
580
- <div class="pf-l-gallery__item">
581
- <div class="pf-c-card">
582
- <div class="pf-c-card__body">This is a card</div>
583
- </div>
584
- </div>
585
- <div class="pf-l-gallery__item">
586
- <div class="pf-c-card">
587
- <div class="pf-c-card__body">This is a card</div>
588
- </div>
589
- </div>
590
- </div>
591
- </div>
592
- </section>
593
- <section
594
- class="pf-c-page__main-section pf-m-limit-width pf-m-no-fill pf-m-light pf-m-shadow-top"
595
- >
596
- <div class="pf-c-page__main-body">
597
- <p>PatternFly is an open source design system built to drive consistency and unify teams. From documentation and components to code examples and tutorials, PatternFly is a place where design and development can thrive. We’re on a mission to help teams build consistent, accessible, and scalable enterprise product experiences—the open source way.</p>
598
- </div>
599
- </section>
600
- </main>
601
- </div>
602
-
333
+ ```hbs isFullscreen
334
+ {{> page-demo-masthead-component page-demo-default--id="context-selector-in-sidebar" page-demo-masthead-component--HasMenu="true"}}
603
335
  ```
604
336
 
605
337
  ### Context selector in sidebar expanded
606
338
 
607
- ```html isFullscreen
608
- <div class="pf-c-page" id="context-selector-in-sidebar-expanded">
609
- <header class="pf-c-page__header">
610
- <a
611
- class="pf-c-skip-to-content pf-c-button pf-m-primary"
612
- href="#main-content-context-selector-in-sidebar-expanded"
613
- >Skip to content</a>
614
- <header
615
- class="pf-c-masthead"
616
- id="context-selector-in-sidebar-expanded-masthead"
617
- >
618
- <span class="pf-c-masthead__toggle">
619
- <button
620
- class="pf-c-button pf-m-plain"
621
- type="button"
622
- aria-label="Global navigation"
623
- >
624
- <i class="fas fa-bars" aria-hidden="true"></i>
625
- </button>
626
- </span>
627
- <div class="pf-c-masthead__main">
628
- <a class="pf-c-masthead__brand" href="#">
629
- <img
630
- class="pf-c-brand"
631
- src="/assets/images/PF-Masthead-Logo.svg"
632
- alt="PatternFly logo"
633
- />
634
- </a>
635
- </div>
636
- <div class="pf-c-masthead__content">test</div>
637
- </header>
638
- </header>
639
- <div class="pf-c-page__sidebar">
640
- <div class="pf-c-page__sidebar-body pf-m-menu">
641
- <div
642
- class="pf-c-context-selector pf-m-expanded pf-m-page-insets pf-m-large"
643
- >
644
- <span
645
- id="context-selector-collapsed-example-label"
646
- hidden
647
- >Selected project:</span>
648
- <button
649
- class="pf-c-context-selector__toggle"
650
- aria-expanded="true"
651
- id="context-selector-collapsed-example-toggle"
652
- aria-labelledby="context-selector-collapsed-example-label context-selector-collapsed-example-toggle"
653
- >
654
- <span class="pf-c-context-selector__toggle-text">My project</span>
655
- <span class="pf-c-context-selector__toggle-icon">
656
- <i class="fas fa-caret-down" aria-hidden="true"></i>
657
- </span>
658
- </button>
659
- <div class="pf-c-context-selector__menu">
660
- <div class="pf-c-context-selector__menu-search">
661
- <div class="pf-c-input-group">
662
- <input
663
- class="pf-c-form-control"
664
- type="search"
665
- placeholder="Search"
666
- id="textInput1"
667
- name="textInput1"
668
- aria-labelledby="context-selector-collapsed-example-search-button"
669
- />
670
- <button
671
- class="pf-c-button pf-m-control"
672
- type="button"
673
- id="context-selector-collapsed-example-search-button"
674
- aria-label="Search menu items"
675
- >
676
- <i class="fas fa-search" aria-hidden="true"></i>
677
- </button>
678
- </div>
679
- </div>
680
- <ul class="pf-c-context-selector__menu-list">
681
- <li>
682
- <a class="pf-c-context-selector__menu-list-item" href="#">Link</a>
683
- </li>
684
- <li>
685
- <button
686
- class="pf-c-context-selector__menu-list-item"
687
- type="button"
688
- >Action</button>
689
- </li>
690
- <li>
691
- <a
692
- class="pf-c-context-selector__menu-list-item pf-m-disabled"
693
- href="#"
694
- aria-disabled="true"
695
- tabindex="-1"
696
- >Disabled link</a>
697
- </li>
698
- <li>
699
- <button
700
- class="pf-c-context-selector__menu-list-item"
701
- type="button"
702
- disabled
703
- >Disabled action</button>
704
- </li>
705
- <li>
706
- <button
707
- class="pf-c-context-selector__menu-list-item"
708
- type="button"
709
- >My project</button>
710
- </li>
711
- <li>
712
- <button
713
- class="pf-c-context-selector__menu-list-item"
714
- type="button"
715
- >OpenShift cluster</button>
716
- </li>
717
- <li>
718
- <button
719
- class="pf-c-context-selector__menu-list-item"
720
- type="button"
721
- >Production Ansible</button>
722
- </li>
723
- <li>
724
- <button
725
- class="pf-c-context-selector__menu-list-item"
726
- type="button"
727
- >AWS</button>
728
- </li>
729
- <li>
730
- <button
731
- class="pf-c-context-selector__menu-list-item"
732
- type="button"
733
- >Azure</button>
734
- </li>
735
- <li>
736
- <button
737
- class="pf-c-context-selector__menu-list-item"
738
- type="button"
739
- >My project</button>
740
- </li>
741
- <li>
742
- <button
743
- class="pf-c-context-selector__menu-list-item"
744
- type="button"
745
- >OpenShift cluster</button>
746
- </li>
747
- <li>
748
- <button
749
- class="pf-c-context-selector__menu-list-item"
750
- type="button"
751
- >Production Ansible</button>
752
- </li>
753
- <li>
754
- <button
755
- class="pf-c-context-selector__menu-list-item"
756
- type="button"
757
- >AWS</button>
758
- </li>
759
- <li>
760
- <button
761
- class="pf-c-context-selector__menu-list-item"
762
- type="button"
763
- >Azure</button>
764
- </li>
765
- </ul>
766
- </div>
767
- </div>
768
- </div>
769
- <div class="pf-c-page__sidebar-body">
770
- <nav
771
- class="pf-c-nav"
772
- id="context-selector-in-sidebar-expanded-primary-nav"
773
- aria-label="Global"
774
- >
775
- <ul class="pf-c-nav__list">
776
- <li class="pf-c-nav__item">
777
- <a href="#" class="pf-c-nav__link">System panel</a>
778
- </li>
779
- <li class="pf-c-nav__item">
780
- <a
781
- href="#"
782
- class="pf-c-nav__link pf-m-current"
783
- aria-current="page"
784
- >Policy</a>
785
- </li>
786
- <li class="pf-c-nav__item">
787
- <a href="#" class="pf-c-nav__link">Authentication</a>
788
- </li>
789
- <li class="pf-c-nav__item">
790
- <a href="#" class="pf-c-nav__link">Network services</a>
791
- </li>
792
- <li class="pf-c-nav__item">
793
- <a href="#" class="pf-c-nav__link">Server</a>
794
- </li>
795
- </ul>
796
- </nav>
797
- </div>
798
- </div>
799
- <main
800
- class="pf-c-page__main"
801
- tabindex="-1"
802
- id="main-content-context-selector-in-sidebar-expanded"
803
- >
804
- <section
805
- class="pf-c-page__main-section pf-m-limit-width pf-m-light pf-m-shadow-bottom"
806
- >
807
- <div class="pf-c-page__main-body">
808
- <div class="pf-c-content">
809
- <h1>Main title</h1>
810
- <p>This is a demo of the page component.</p>
811
- </div>
812
- </div>
813
- </section>
814
- <section
815
- class="pf-c-page__main-section pf-m-limit-width pf-m-overflow-scroll"
816
- >
817
- <div class="pf-c-page__main-body">
818
- <div class="pf-l-gallery pf-m-gutter">
819
- <div class="pf-l-gallery__item">
820
- <div class="pf-c-card">
821
- <div class="pf-c-card__body">This is a card</div>
822
- </div>
823
- </div>
824
- <div class="pf-l-gallery__item">
825
- <div class="pf-c-card">
826
- <div class="pf-c-card__body">This is a card</div>
827
- </div>
828
- </div>
829
- <div class="pf-l-gallery__item">
830
- <div class="pf-c-card">
831
- <div class="pf-c-card__body">This is a card</div>
832
- </div>
833
- </div>
834
- <div class="pf-l-gallery__item">
835
- <div class="pf-c-card">
836
- <div class="pf-c-card__body">This is a card</div>
837
- </div>
838
- </div>
839
- <div class="pf-l-gallery__item">
840
- <div class="pf-c-card">
841
- <div class="pf-c-card__body">This is a card</div>
842
- </div>
843
- </div>
844
- <div class="pf-l-gallery__item">
845
- <div class="pf-c-card">
846
- <div class="pf-c-card__body">This is a card</div>
847
- </div>
848
- </div>
849
- <div class="pf-l-gallery__item">
850
- <div class="pf-c-card">
851
- <div class="pf-c-card__body">This is a card</div>
852
- </div>
853
- </div>
854
- <div class="pf-l-gallery__item">
855
- <div class="pf-c-card">
856
- <div class="pf-c-card__body">This is a card</div>
857
- </div>
858
- </div>
859
- <div class="pf-l-gallery__item">
860
- <div class="pf-c-card">
861
- <div class="pf-c-card__body">This is a card</div>
862
- </div>
863
- </div>
864
- <div class="pf-l-gallery__item">
865
- <div class="pf-c-card">
866
- <div class="pf-c-card__body">This is a card</div>
867
- </div>
868
- </div>
869
- </div>
870
- </div>
871
- </section>
872
- <section
873
- class="pf-c-page__main-section pf-m-limit-width pf-m-no-fill pf-m-light pf-m-shadow-top"
874
- >
875
- <div class="pf-c-page__main-body">
876
- <p>PatternFly is an open source design system built to drive consistency and unify teams. From documentation and components to code examples and tutorials, PatternFly is a place where design and development can thrive. We’re on a mission to help teams build consistent, accessible, and scalable enterprise product experiences—the open source way.</p>
877
- </div>
878
- </section>
879
- </main>
880
- </div>
881
-
339
+ ```hbs isFullscreen
340
+ {{> page-demo-masthead-component page-demo-default--id="context-selector-in-sidebar-expanded" page-demo-masthead-component--HasMenu="true" page-demo-masthead-component--MenuIsExpanded="true"}}
882
341
  ```
883
342
 
884
343
  ### Context selector in page content
885
344
 
886
- ```html isFullscreen
887
- <div class="pf-c-page" id="context-selector-in-page-content">
888
- <a
889
- class="pf-c-skip-to-content pf-c-button pf-m-primary"
890
- href="#main-content-context-selector-in-page-content"
891
- >Skip to content</a>
892
- <header class="pf-c-page__header">
893
- <div class="pf-c-page__header-brand">
894
- <div class="pf-c-page__header-brand-toggle">
895
- <button
896
- class="pf-c-button pf-m-plain"
897
- type="button"
898
- id="context-selector-in-page-content-nav-toggle"
899
- aria-label="Global navigation"
900
- aria-expanded="true"
901
- aria-controls="context-selector-in-page-content-primary-nav"
902
- >
903
- <i class="fas fa-bars" aria-hidden="true"></i>
904
- </button>
905
- </div>
906
- <a href="#" class="pf-c-page__header-brand-link">
907
- <img
908
- class="pf-c-brand"
909
- src="/assets/images/PF-Masthead-Logo.svg"
910
- alt="PatternFly logo"
911
- />
912
- </a>
913
- </div>
914
-
915
- <div class="pf-c-page__header-tools">
916
- <div class="pf-c-page__header-tools-group">
917
- <div
918
- class="pf-c-page__header-tools-item pf-m-hidden pf-m-visible-on-lg"
919
- >
920
- <button
921
- class="pf-c-button pf-m-plain"
922
- type="button"
923
- aria-label="Settings"
924
- >
925
- <i class="fas fa-cog" aria-hidden="true"></i>
926
- </button>
927
- </div>
928
- <div
929
- class="pf-c-page__header-tools-item pf-m-hidden pf-m-visible-on-lg"
930
- >
931
- <button
932
- class="pf-c-button pf-m-plain"
933
- type="button"
934
- aria-label="Help"
935
- >
936
- <i class="pf-icon pf-icon-help" aria-hidden="true"></i>
937
- </button>
938
- </div>
939
- </div>
940
- <div class="pf-c-page__header-tools-group">
941
- <div class="pf-c-page__header-tools-item pf-m-hidden-on-lg">
942
- <div class="pf-c-dropdown">
943
- <button
944
- class="pf-c-dropdown__toggle pf-m-plain"
945
- id="context-selector-in-page-content-dropdown-kebab-1-button"
946
- aria-expanded="false"
947
- type="button"
948
- aria-label="Actions"
949
- >
950
- <i class="fas fa-ellipsis-v" aria-hidden="true"></i>
951
- </button>
952
- <ul
953
- class="pf-c-dropdown__menu pf-m-align-right"
954
- aria-labelledby="context-selector-in-page-content-dropdown-kebab-1-button"
955
- hidden
956
- >
957
- <li>
958
- <a class="pf-c-dropdown__menu-item" href="#">Link</a>
959
- </li>
960
- <li>
961
- <button class="pf-c-dropdown__menu-item" type="button">Action</button>
962
- </li>
963
- <li>
964
- <a
965
- class="pf-c-dropdown__menu-item pf-m-disabled"
966
- href="#"
967
- aria-disabled="true"
968
- tabindex="-1"
969
- >Disabled link</a>
970
- </li>
971
- <li>
972
- <button
973
- class="pf-c-dropdown__menu-item"
974
- type="button"
975
- disabled
976
- >Disabled action</button>
977
- </li>
978
- <li class="pf-c-divider" role="separator"></li>
979
- <li>
980
- <a class="pf-c-dropdown__menu-item" href="#">Separated link</a>
981
- </li>
982
- </ul>
983
- </div>
984
- </div>
985
- <div
986
- class="pf-c-page__header-tools-item pf-m-hidden pf-m-visible-on-md"
987
- >
988
- <div class="pf-c-dropdown">
989
- <button
990
- class="pf-c-dropdown__toggle pf-m-plain"
991
- id="context-selector-in-page-content-dropdown-kebab-2-button"
992
- aria-expanded="false"
993
- type="button"
994
- >
995
- <span class="pf-c-dropdown__toggle-text">John Smith</span>
996
- <span class="pf-c-dropdown__toggle-icon">
997
- <i class="fas fa-caret-down" aria-hidden="true"></i>
998
- </span>
999
- </button>
1000
- <ul
1001
- class="pf-c-dropdown__menu"
1002
- aria-labelledby="context-selector-in-page-content-dropdown-kebab-2-button"
1003
- hidden
1004
- >
1005
- <li>
1006
- <a class="pf-c-dropdown__menu-item" href="#">Link</a>
1007
- </li>
1008
- <li>
1009
- <button class="pf-c-dropdown__menu-item" type="button">Action</button>
1010
- </li>
1011
- <li>
1012
- <a
1013
- class="pf-c-dropdown__menu-item pf-m-disabled"
1014
- href="#"
1015
- aria-disabled="true"
1016
- tabindex="-1"
1017
- >Disabled link</a>
1018
- </li>
1019
- <li>
1020
- <button
1021
- class="pf-c-dropdown__menu-item"
1022
- type="button"
1023
- disabled
1024
- >Disabled action</button>
1025
- </li>
1026
- <li class="pf-c-divider" role="separator"></li>
1027
- <li>
1028
- <a class="pf-c-dropdown__menu-item" href="#">Separated link</a>
1029
- </li>
1030
- </ul>
1031
- </div>
1032
- </div>
1033
- </div>
1034
- <img
1035
- class="pf-c-avatar"
1036
- src="/assets/images/img_avatar.svg"
1037
- alt="Avatar image"
1038
- />
1039
- </div>
1040
- </header>
1041
- <div class="pf-c-page__sidebar">
1042
- <div class="pf-c-page__sidebar-body">
1043
- <nav
1044
- class="pf-c-nav"
1045
- id="context-selector-in-page-content-primary-nav"
1046
- aria-label="Global"
1047
- >
1048
- <ul class="pf-c-nav__list">
1049
- <li class="pf-c-nav__item">
1050
- <a href="#" class="pf-c-nav__link">System panel</a>
1051
- </li>
1052
- <li class="pf-c-nav__item">
1053
- <a
1054
- href="#"
1055
- class="pf-c-nav__link pf-m-current"
1056
- aria-current="page"
1057
- >Policy</a>
1058
- </li>
1059
- <li class="pf-c-nav__item">
1060
- <a href="#" class="pf-c-nav__link">Authentication</a>
1061
- </li>
1062
- <li class="pf-c-nav__item">
1063
- <a href="#" class="pf-c-nav__link">Network services</a>
1064
- </li>
1065
- <li class="pf-c-nav__item">
1066
- <a href="#" class="pf-c-nav__link">Server</a>
1067
- </li>
1068
- </ul>
1069
- </nav>
1070
- </div>
1071
- </div>
1072
- <main
1073
- class="pf-c-page__main"
1074
- tabindex="-1"
1075
- id="main-content-context-selector-in-page-content"
1076
- >
1077
- <section class="pf-c-page__main-section pf-m-limit-width pf-m-no-padding">
1078
- <div class="pf-c-page__main-body">
1079
- <div class="pf-c-toolbar pf-m-inset-none" id="toolbar-simple-example">
1080
- <div class="pf-c-toolbar__content">
1081
- <div class="pf-c-toolbar__content-section">
1082
- <div class="pf-c-toolbar__item">
1083
- <div
1084
- class="pf-c-context-selector pf-m-page-insets pf-m-width-auto"
1085
- style="--pf-c-context-selector--Width: 270px;"
1086
- >
1087
- <span
1088
- id="context-selector-in-page-content-context-selector-label"
1089
- hidden
1090
- >Selected project:</span>
1091
- <button
1092
- class="pf-c-context-selector__toggle pf-m-text pf-m-plain"
1093
- aria-expanded="false"
1094
- id="context-selector-in-page-content-context-selector-toggle"
1095
- aria-labelledby="context-selector-in-page-content-context-selector-label context-selector-in-page-content-context-selector-toggle"
1096
- >
1097
- <span
1098
- class="pf-c-context-selector__toggle-text"
1099
- >Project: openshift-apple1</span>
1100
- <span class="pf-c-context-selector__toggle-icon">
1101
- <i class="fas fa-caret-down" aria-hidden="true"></i>
1102
- </span>
1103
- </button>
1104
- <div class="pf-c-context-selector__menu" hidden>
1105
- <div class="pf-c-context-selector__menu-search">
1106
- <div class="pf-c-input-group">
1107
- <input
1108
- class="pf-c-form-control"
1109
- type="search"
1110
- placeholder="Search"
1111
- id="textInput1"
1112
- name="textInput1"
1113
- aria-labelledby="context-selector-in-page-content-context-selector-search-button"
1114
- />
1115
- <button
1116
- class="pf-c-button pf-m-control"
1117
- type="button"
1118
- id="context-selector-in-page-content-context-selector-search-button"
1119
- aria-label="Search menu items"
1120
- >
1121
- <i class="fas fa-search" aria-hidden="true"></i>
1122
- </button>
1123
- </div>
1124
- </div>
1125
- <ul class="pf-c-context-selector__menu-list">
1126
- <li>
1127
- <a
1128
- class="pf-c-context-selector__menu-list-item"
1129
- href="#"
1130
- >Link</a>
1131
- </li>
1132
- <li>
1133
- <button
1134
- class="pf-c-context-selector__menu-list-item"
1135
- type="button"
1136
- >Action</button>
1137
- </li>
1138
- <li>
1139
- <a
1140
- class="pf-c-context-selector__menu-list-item pf-m-disabled"
1141
- href="#"
1142
- aria-disabled="true"
1143
- tabindex="-1"
1144
- >Disabled link</a>
1145
- </li>
1146
- <li>
1147
- <button
1148
- class="pf-c-context-selector__menu-list-item"
1149
- type="button"
1150
- disabled
1151
- >Disabled action</button>
1152
- </li>
1153
- <li>
1154
- <button
1155
- class="pf-c-context-selector__menu-list-item"
1156
- type="button"
1157
- >My project</button>
1158
- </li>
1159
- <li>
1160
- <button
1161
- class="pf-c-context-selector__menu-list-item"
1162
- type="button"
1163
- >OpenShift cluster</button>
1164
- </li>
1165
- <li>
1166
- <button
1167
- class="pf-c-context-selector__menu-list-item"
1168
- type="button"
1169
- >Production Ansible</button>
1170
- </li>
1171
- <li>
1172
- <button
1173
- class="pf-c-context-selector__menu-list-item"
1174
- type="button"
1175
- >AWS</button>
1176
- </li>
1177
- <li>
1178
- <button
1179
- class="pf-c-context-selector__menu-list-item"
1180
- type="button"
1181
- >Azure</button>
1182
- </li>
1183
- <li>
1184
- <button
1185
- class="pf-c-context-selector__menu-list-item"
1186
- type="button"
1187
- >My project</button>
1188
- </li>
1189
- <li>
1190
- <button
1191
- class="pf-c-context-selector__menu-list-item"
1192
- type="button"
1193
- >OpenShift cluster</button>
1194
- </li>
1195
- <li>
1196
- <button
1197
- class="pf-c-context-selector__menu-list-item"
1198
- type="button"
1199
- >Production Ansible</button>
1200
- </li>
1201
- <li>
1202
- <button
1203
- class="pf-c-context-selector__menu-list-item"
1204
- type="button"
1205
- >AWS</button>
1206
- </li>
1207
- <li>
1208
- <button
1209
- class="pf-c-context-selector__menu-list-item"
1210
- type="button"
1211
- >Azure</button>
1212
- </li>
1213
- </ul>
1214
- </div>
1215
- </div>
1216
- </div>
1217
- <div class="pf-c-toolbar__item">
1218
- <div class="pf-c-select">
1219
- <span
1220
- id="context-selector-in-page-content-select-label"
1221
- hidden
1222
- >Choose one</span>
1223
-
1224
- <button
1225
- class="pf-c-select__toggle pf-m-plain"
1226
- type="button"
1227
- id="context-selector-in-page-content-select-toggle"
1228
- aria-haspopup="true"
1229
- aria-expanded="false"
1230
- aria-labelledby="context-selector-in-page-content-select-label context-selector-in-page-content-select-toggle"
1231
- >
1232
- <div class="pf-c-select__toggle-wrapper">
1233
- <span class="pf-c-select__toggle-text">All applications</span>
1234
- </div>
1235
- <span class="pf-c-select__toggle-arrow">
1236
- <i class="fas fa-caret-down" aria-hidden="true"></i>
1237
- </span>
1238
- </button>
1239
-
1240
- <ul
1241
- class="pf-c-select__menu"
1242
- role="listbox"
1243
- aria-labelledby="context-selector-in-page-content-select-label"
1244
- hidden
1245
- >
1246
- <li role="presentation">
1247
- <button
1248
- class="pf-c-select__menu-item"
1249
- role="option"
1250
- >Running</button>
1251
- </li>
1252
- <li role="presentation">
1253
- <button
1254
- class="pf-c-select__menu-item pf-m-selected"
1255
- role="option"
1256
- aria-selected="true"
1257
- >
1258
- Stopped
1259
- <span class="pf-c-select__menu-item-icon">
1260
- <i class="fas fa-check" aria-hidden="true"></i>
1261
- </span>
1262
- </button>
1263
- </li>
1264
- <li role="presentation">
1265
- <button class="pf-c-select__menu-item" role="option">Down</button>
1266
- </li>
1267
- <li role="presentation">
1268
- <button
1269
- class="pf-c-select__menu-item"
1270
- role="option"
1271
- >Degraded</button>
1272
- </li>
1273
- <li role="presentation">
1274
- <button
1275
- class="pf-c-select__menu-item"
1276
- role="option"
1277
- >Needs maintenance</button>
1278
- </li>
1279
- </ul>
1280
- </div>
1281
- </div>
1282
- </div>
1283
- </div>
1284
- </div>
1285
- </div>
1286
- </section>
1287
- <hr class="pf-c-divider" />
1288
- <section class="pf-c-page__main-breadcrumb pf-m-limit-width">
1289
- <div class="pf-c-page__main-body">
1290
- <nav class="pf-c-breadcrumb" aria-label="breadcrumb">
1291
- <ol class="pf-c-breadcrumb__list">
1292
- <li class="pf-c-breadcrumb__item">
1293
- <a href="#" class="pf-c-breadcrumb__link">Section home</a>
1294
- </li>
1295
- <li class="pf-c-breadcrumb__item">
1296
- <span class="pf-c-breadcrumb__item-divider">
1297
- <i class="fas fa-angle-right" aria-hidden="true"></i>
1298
- </span>
1299
-
1300
- <a href="#" class="pf-c-breadcrumb__link">Section title</a>
1301
- </li>
1302
- <li class="pf-c-breadcrumb__item">
1303
- <span class="pf-c-breadcrumb__item-divider">
1304
- <i class="fas fa-angle-right" aria-hidden="true"></i>
1305
- </span>
1306
-
1307
- <a href="#" class="pf-c-breadcrumb__link">Section title</a>
1308
- </li>
1309
- <li class="pf-c-breadcrumb__item">
1310
- <span class="pf-c-breadcrumb__item-divider">
1311
- <i class="fas fa-angle-right" aria-hidden="true"></i>
1312
- </span>
1313
-
1314
- <a
1315
- href="#"
1316
- class="pf-c-breadcrumb__link pf-m-current"
1317
- aria-current="page"
1318
- >Section landing</a>
1319
- </li>
1320
- </ol>
1321
- </nav>
1322
- </div>
1323
- </section>
1324
- <section class="pf-c-page__main-section pf-m-limit-width pf-m-light">
1325
- <div class="pf-c-page__main-body">
1326
- <div class="pf-c-content">
1327
- <h1>Main title</h1>
1328
- <p>This is a demo of the page component.</p>
1329
- </div>
1330
- </div>
1331
- </section>
1332
- <section class="pf-c-page__main-section pf-m-limit-width">
1333
- <div class="pf-c-page__main-body">
1334
- <div class="pf-l-gallery pf-m-gutter">
1335
- <div class="pf-l-gallery__item">
1336
- <div class="pf-c-card">
1337
- <div class="pf-c-card__body">This is a card</div>
1338
- </div>
1339
- </div>
1340
- <div class="pf-l-gallery__item">
1341
- <div class="pf-c-card">
1342
- <div class="pf-c-card__body">This is a card</div>
1343
- </div>
1344
- </div>
1345
- <div class="pf-l-gallery__item">
1346
- <div class="pf-c-card">
1347
- <div class="pf-c-card__body">This is a card</div>
1348
- </div>
1349
- </div>
1350
- <div class="pf-l-gallery__item">
1351
- <div class="pf-c-card">
1352
- <div class="pf-c-card__body">This is a card</div>
1353
- </div>
1354
- </div>
1355
- <div class="pf-l-gallery__item">
1356
- <div class="pf-c-card">
1357
- <div class="pf-c-card__body">This is a card</div>
1358
- </div>
1359
- </div>
1360
- <div class="pf-l-gallery__item">
1361
- <div class="pf-c-card">
1362
- <div class="pf-c-card__body">This is a card</div>
1363
- </div>
1364
- </div>
1365
- <div class="pf-l-gallery__item">
1366
- <div class="pf-c-card">
1367
- <div class="pf-c-card__body">This is a card</div>
1368
- </div>
1369
- </div>
1370
- <div class="pf-l-gallery__item">
1371
- <div class="pf-c-card">
1372
- <div class="pf-c-card__body">This is a card</div>
1373
- </div>
1374
- </div>
1375
- <div class="pf-l-gallery__item">
1376
- <div class="pf-c-card">
1377
- <div class="pf-c-card__body">This is a card</div>
1378
- </div>
1379
- </div>
1380
- <div class="pf-l-gallery__item">
1381
- <div class="pf-c-card">
1382
- <div class="pf-c-card__body">This is a card</div>
1383
- </div>
1384
- </div>
1385
- </div>
1386
- </div>
1387
- </section>
1388
- </main>
1389
- </div>
1390
-
345
+ ```hbs isFullscreen
346
+ {{#> page-demo-default page-demo-default--id="context-selector-in-page-content" page-demo-default--HasNoContent="true"}}
347
+ {{#> page-main-section page-main-section--modifier="pf-m-no-padding" page-main-section--IsLimitWidth="true"}}
348
+ {{#> toolbar toolbar--id="toolbar-simple-example" toolbar--modifier="pf-m-inset-none"}}
349
+ {{#> toolbar-content}}
350
+ {{#> toolbar-content-section}}
351
+ {{#> toolbar-item}}
352
+ {{#> context-selector context-selector--id=(concat page-demo-default--id '-context-selector') context-selector--label-text="Selected project" context-selector-toggle--IsPlain="true" context-selector-toggle--IsText="true" context-selector--modifier="pf-m-page-insets pf-m-width-auto" context-selector--attribute='style="--pf-c-context-selector--Width: 270px;"'}}
353
+ {{#> context-selector-toggle context-selector-toggle--attribute=(concat 'id="' context-selector--id '-toggle"' 'aria-labelledby="' context-selector--id '-label ' context-selector--id '-toggle"')}}
354
+ {{#> context-selector-toggle-text}}
355
+ Project: openshift-apple1
356
+ {{/context-selector-toggle-text}}
357
+ {{#> context-selector-toggle-icon}}
358
+ {{/context-selector-toggle-icon}}
359
+ {{/context-selector-toggle}}
360
+ {{#> context-selector-menu}}
361
+ {{#> context-selector-menu-search}}
362
+ {{#> input-group}}
363
+ {{#> form-control controlType="input" input="true" form-control--attribute=(concat 'type="search"' 'placeholder="Search"' 'id="textInput1"' 'name="textInput1"' 'aria-labelledby="' context-selector--id '-search-button"')}}
364
+ {{/form-control}}
365
+ {{#> button button--modifier="pf-m-control" button--attribute=(concat 'id="' context-selector--id '-search-button"' 'aria-label="Search menu items"')}}
366
+ <i class="fas fa-search" aria-hidden="true"></i>
367
+ {{/button}}
368
+ {{/input-group}}
369
+ {{/context-selector-menu-search}}
370
+ {{> __context-selector-menu-menu}}
371
+ {{/context-selector-menu}}
372
+ {{/context-selector}}
373
+ {{/toolbar-item}}
374
+ {{#> toolbar-item}}
375
+ {{#> select id=(concat page-demo-default--id '-select') select-toggle--modifier="pf-m-plain"}}All applications{{/select}}
376
+ {{/toolbar-item}}
377
+ {{/toolbar-content-section}}
378
+ {{/toolbar-content}}
379
+ {{/toolbar}}
380
+ {{/page-main-section}}
381
+ {{> divider}}
382
+ {{> page-template-breadcrumb}}
383
+ {{> page-template-title}}
384
+ {{> page-template-gallery}}
385
+ {{/page-demo-default}}
1391
386
  ```