@patternfly/patternfly 4.179.2 → 4.180.1

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 (45) hide show
  1. package/components/Dropdown/dropdown.css +4 -2
  2. package/components/Dropdown/dropdown.scss +4 -2
  3. package/components/FormControl/form-control.scss +3 -0
  4. package/components/MenuToggle/menu-toggle.css +10 -7
  5. package/components/MenuToggle/menu-toggle.scss +11 -9
  6. package/components/SearchInput/search-input.css +1 -0
  7. package/components/SearchInput/search-input.scss +1 -0
  8. package/components/Select/select.css +3 -2
  9. package/components/Select/select.scss +4 -2
  10. package/docs/components/AppLauncher/examples/application-launcher.md +15 -8
  11. package/docs/components/ContextSelector/examples/context-selector.md +84 -102
  12. package/docs/components/DualListSelector/examples/DualListSelector.md +240 -112
  13. package/docs/components/FormControl/examples/FormControl.md +0 -11
  14. package/docs/components/InputGroup/examples/InputGroup.md +6 -22
  15. package/docs/components/LogViewer/examples/LogViewer.md +567 -198
  16. package/docs/components/Menu/examples/Menu.md +1908 -983
  17. package/docs/components/MenuToggle/examples/MenuToggle.md +77 -44
  18. package/docs/components/Nav/examples/Navigation.md +563 -231
  19. package/docs/components/Page/examples/Page.md +11 -2
  20. package/docs/components/Select/examples/Select.md +30 -14
  21. package/docs/components/Table/examples/Table.md +8 -0
  22. package/docs/components/Toolbar/examples/Toolbar.md +300 -180
  23. package/docs/components/TreeView/examples/TreeView.md +15 -7
  24. package/docs/components/Wizard/examples/Wizard.md +6 -6
  25. package/docs/demos/Alert/examples/Alert.md +20 -40
  26. package/docs/demos/BackToTop/examples/BackToTop.md +149 -249
  27. package/docs/demos/ContextSelector/examples/ContextSelector.md +595 -378
  28. package/docs/demos/DataList/examples/DataList.md +159 -114
  29. package/docs/demos/Drawer/examples/Drawer.md +60 -120
  30. package/docs/demos/JumpLinks/examples/JumpLinks.md +80 -31
  31. package/docs/demos/Masthead/examples/Masthead.md +622 -517
  32. package/docs/demos/Nav/examples/Nav.md +203 -343
  33. package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +100 -200
  34. package/docs/demos/Page/examples/Page.md +1522 -1475
  35. package/docs/demos/PasswordGenerator/examples/PasswordGenerator.md +3 -3
  36. package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +207 -126
  37. package/docs/demos/Table/examples/Table.md +2459 -1090
  38. package/docs/demos/Tabs/examples/Tabs.md +11 -19
  39. package/docs/demos/Toolbar/examples/Toolbar.md +55 -55
  40. package/docs/demos/Wizard/examples/Wizard.md +6 -2
  41. package/package.json +1 -1
  42. package/patternfly-no-reset.css +18 -11
  43. package/patternfly.css +18 -11
  44. package/patternfly.min.css +1 -1
  45. package/patternfly.min.css.map +1 -1
@@ -136,7 +136,7 @@ wrapperTag: div
136
136
 
137
137
  ```
138
138
 
139
- ### Centered content
139
+ ### Centered section
140
140
 
141
141
  ```html
142
142
  <div class="pf-c-page">
@@ -149,7 +149,16 @@ wrapperTag: div
149
149
  </header>
150
150
  <main class="pf-c-page__main" tabindex="-1">
151
151
  <section class="pf-c-page__main-section pf-m-limit-width pf-m-align-center">
152
- <div class="pf-c-page__main-body">Page section width limited, centered.</div>
152
+ <div class="pf-c-page__main-body">
153
+ <div class="pf-c-card">
154
+ <div class="pf-c-card__body">
155
+ When a width limited page section is wider than the value of
156
+ <code>--pf-c-page--section--m-limit-width--MaxWidth</code>, the section will be centered in the main section.
157
+ <br />
158
+ <br />The content in this example is placed in a card to better illustrate how the section behaves when it is centered. A card is not required to center a page section.
159
+ </div>
160
+ </div>
161
+ </div>
153
162
  </section>
154
163
  </main>
155
164
  </div>
@@ -1849,13 +1849,21 @@ The multiselect should be used when the user is selecting multiple items from a
1849
1849
 
1850
1850
  <div class="pf-c-select__menu">
1851
1851
  <div class="pf-c-select__menu-search">
1852
- <input
1853
- class="pf-c-form-control pf-m-search"
1854
- type="search"
1855
- id="select-checkbox-expanded-selected-filter-example-search-input"
1856
- name="select-checkbox-expanded-selected-filter-example-search-input"
1857
- aria-label="Search"
1858
- />
1852
+ <div class="pf-c-search-input">
1853
+ <div class="pf-c-search-input__bar">
1854
+ <span class="pf-c-search-input__text">
1855
+ <span class="pf-c-search-input__icon">
1856
+ <i class="fas fa-search fa-fw" aria-hidden="true"></i>
1857
+ </span>
1858
+ <input
1859
+ class="pf-c-search-input__text-input"
1860
+ type="text"
1861
+ placeholder="Search"
1862
+ aria-label="Search"
1863
+ />
1864
+ </span>
1865
+ </div>
1866
+ </div>
1859
1867
  </div>
1860
1868
  <hr class="pf-c-divider" />
1861
1869
  <div class="pf-c-select__menu-group">
@@ -2730,13 +2738,21 @@ The plain select variation should be used when you do not want a border applied
2730
2738
 
2731
2739
  <div class="pf-c-select__menu" aria-labelledby="select-favorites-label">
2732
2740
  <div class="pf-c-select__menu-search">
2733
- <input
2734
- class="pf-c-form-control pf-m-search"
2735
- type="search"
2736
- id="select-favorites-search-input"
2737
- name="select-favorites-search-input"
2738
- aria-label="Search"
2739
- />
2741
+ <div class="pf-c-search-input">
2742
+ <div class="pf-c-search-input__bar">
2743
+ <span class="pf-c-search-input__text">
2744
+ <span class="pf-c-search-input__icon">
2745
+ <i class="fas fa-search fa-fw" aria-hidden="true"></i>
2746
+ </span>
2747
+ <input
2748
+ class="pf-c-search-input__text-input"
2749
+ type="text"
2750
+ placeholder="Search"
2751
+ aria-label="Search"
2752
+ />
2753
+ </span>
2754
+ </div>
2755
+ </div>
2740
2756
  </div>
2741
2757
  <hr class="pf-c-divider" />
2742
2758
  <div class="pf-c-select__menu-group">
@@ -19965,6 +19965,14 @@ Add a [width modifier](#width-modifiers) to `thead th` to limit string length or
19965
19965
 
19966
19966
  ## Sticky table modifiers
19967
19967
 
19968
+ **Note:** Sticky table headers and columns have a higher `z-index` than the `z-index` used for menus (dropdown, select, etc). The intent is that the contents of a scrollable table will scroll under the sticky header/column, including any expanded menus. However, there may be use cases where a menu needs to appear on top of a sticky header/column, such as an expanded menu in a toolbar above a table with a sticky header.
19969
+
19970
+ There are a few ways this can be handled:
19971
+
19972
+ - Manipulate the `z-index` of the menu and/or table headers/columns manually.
19973
+ - Use the `menuAppendTo` prop in non-composable react components with menus to append the menu to an element outside of the table (e.g., the `<body>` element) so that the menu has a higher stacking context than - and can appear on top of - sticky headers/columns as well as appear outside of any scrollable content in the table.
19974
+ - In the case where the menu is outside of the table (e.g., above the table in a toolbar, or below the table and the menu expands up), assign the entire table a lower `z-index` than the `z-index` of the menu. This creates a lower stacking context for the entire table compared to the menu, while preserving the stacking context of the elements inside of the table.
19975
+
19968
19976
  ### Sticky header
19969
19977
 
19970
19978
  ```html