@patternfly/patternfly 6.0.0-alpha.97 → 6.0.0-alpha.99

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 (153) hide show
  1. package/components/Card/card.css +1 -0
  2. package/components/Card/card.scss +1 -0
  3. package/components/Check/check.css +10 -3
  4. package/components/Check/check.scss +17 -4
  5. package/components/Masthead/masthead.css +17 -9
  6. package/components/Masthead/masthead.scss +18 -9
  7. package/components/MenuToggle/menu-toggle.css +20 -6
  8. package/components/MenuToggle/menu-toggle.scss +32 -6
  9. package/components/ModalBox/modal-box.css +11 -7
  10. package/components/ModalBox/modal-box.scss +27 -12
  11. package/components/Nav/nav.css +64 -110
  12. package/components/Nav/nav.scss +70 -143
  13. package/components/Page/page.css +9 -17
  14. package/components/Page/page.scss +10 -23
  15. package/components/Radio/radio.css +12 -5
  16. package/components/Radio/radio.scss +21 -6
  17. package/components/Table/table-grid.css +30 -35
  18. package/components/Table/table-grid.scss +44 -32
  19. package/components/Table/table-scrollable.css +14 -6
  20. package/components/Table/table-scrollable.scss +6 -1
  21. package/components/Table/table-tree-view.css +5 -5
  22. package/components/Table/table-tree-view.scss +14 -8
  23. package/components/Table/table.css +90 -254
  24. package/components/Table/table.scss +158 -347
  25. package/components/Toolbar/toolbar.css +66 -2
  26. package/components/Toolbar/toolbar.scss +21 -2
  27. package/docs/components/AboutModalBox/examples/AboutModalBox.md +12 -12
  28. package/docs/components/Accordion/examples/Accordion.md +19 -19
  29. package/docs/components/ActionList/examples/ActionList.md +5 -5
  30. package/docs/components/Alert/examples/Alert.md +26 -26
  31. package/docs/components/AppLauncher/deprecated/application-launcher.md +31 -31
  32. package/docs/components/Avatar/examples/Avatar.md +8 -8
  33. package/docs/components/BackToTop/examples/BackToTop.md +3 -3
  34. package/docs/components/Backdrop/examples/Backdrop.md +3 -3
  35. package/docs/components/BackgroundImage/examples/BackgroundImage.md +4 -4
  36. package/docs/components/Badge/examples/Badge.md +6 -6
  37. package/docs/components/Banner/examples/Banner.md +17 -17
  38. package/docs/components/Brand/examples/Brand.css +3 -3
  39. package/docs/components/Brand/examples/Brand.md +7 -7
  40. package/docs/components/Breadcrumb/examples/Breadcrumb.md +12 -12
  41. package/docs/components/Button/examples/Button.css +2 -2
  42. package/docs/components/Button/examples/Button.md +35 -35
  43. package/docs/components/CalendarMonth/examples/CalendarMonth.md +29 -29
  44. package/docs/components/Card/examples/Card.md +30 -30
  45. package/docs/components/Check/examples/Check.md +12 -12
  46. package/docs/components/Chip/examples/Chip.md +21 -21
  47. package/docs/components/ClipboardCopy/examples/ClipboardCopy.md +19 -19
  48. package/docs/components/CodeBlock/examples/CodeBlock.md +8 -8
  49. package/docs/components/CodeEditor/examples/CodeEditor.md +14 -14
  50. package/docs/components/Content/examples/Content.md +5 -5
  51. package/docs/components/ContextSelector/deprecated/context-selector.md +23 -23
  52. package/docs/components/DataList/examples/DataList.md +177 -112
  53. package/docs/components/DatePicker/examples/DatePicker.md +10 -10
  54. package/docs/components/DescriptionList/examples/DescriptionList.md +29 -29
  55. package/docs/components/Divider/examples/Divider.md +7 -7
  56. package/docs/components/DragDrop/examples/DragDrop.md +5 -5
  57. package/docs/components/Drawer/examples/Drawer.md +36 -36
  58. package/docs/components/Dropdown/deprecated/Dropdown.css +1 -1
  59. package/docs/components/Dropdown/deprecated/Dropdown.md +47 -47
  60. package/docs/components/DualListSelector/examples/DualListSelector.md +41 -41
  61. package/docs/components/EmptyState/examples/EmptyState.md +21 -21
  62. package/docs/components/ExpandableSection/examples/ExpandableSection.md +18 -18
  63. package/docs/components/FileUpload/examples/FileUpload.md +8 -8
  64. package/docs/components/Form/examples/Form.md +52 -52
  65. package/docs/components/FormControl/examples/FormControl.md +22 -22
  66. package/docs/components/HelperText/examples/HelperText.md +11 -11
  67. package/docs/components/Hint/examples/Hint.md +6 -6
  68. package/docs/components/Icon/examples/Icon.md +13 -13
  69. package/docs/components/InlineEdit/examples/InlineEdit.md +54 -138
  70. package/docs/components/InputGroup/examples/InputGroup.md +10 -10
  71. package/docs/components/JumpLinks/examples/JumpLinks.md +19 -19
  72. package/docs/components/Label/examples/Label.css +4 -4
  73. package/docs/components/Label/examples/Label.md +45 -45
  74. package/docs/components/List/examples/List.md +6 -6
  75. package/docs/components/LogViewer/examples/LogViewer.css +2 -2
  76. package/docs/components/LogViewer/examples/LogViewer.md +35 -35
  77. package/docs/components/Login/examples/Login.md +21 -21
  78. package/docs/components/Masthead/examples/masthead.md +7 -7
  79. package/docs/components/Menu/examples/Menu.md +60 -60
  80. package/docs/components/MenuToggle/examples/MenuToggle.md +106 -22
  81. package/docs/components/ModalBox/examples/ModalBox.md +75 -34
  82. package/docs/components/MultipleFileUpload/examples/MultipleFileUpload.md +21 -21
  83. package/docs/components/Nav/examples/Navigation.css +20 -3
  84. package/docs/components/Nav/examples/Navigation.md +44 -50
  85. package/docs/components/NotificationBadge/examples/NotificationBadge.md +8 -8
  86. package/docs/components/NotificationDrawer/examples/NotificationDrawer.md +36 -36
  87. package/docs/components/NumberInput/examples/NumberInput.md +13 -13
  88. package/docs/components/OptionsMenu/deprecated/options-menu.md +22 -22
  89. package/docs/components/OverflowMenu/examples/overflow-menu.md +20 -20
  90. package/docs/components/Page/deprecated/PageHeader.md +30 -30
  91. package/docs/components/Page/examples/Page.md +55 -54
  92. package/docs/components/Pagination/examples/Pagination.md +25 -25
  93. package/docs/components/Panel/examples/Panel.md +10 -10
  94. package/docs/components/Popover/examples/Popover.md +30 -30
  95. package/docs/components/Progress/examples/Progress.md +31 -31
  96. package/docs/components/ProgressStepper/examples/ProgressStepper.md +17 -17
  97. package/docs/components/Radio/examples/Radio.md +9 -9
  98. package/docs/components/Select/deprecated/Select.md +110 -110
  99. package/docs/components/Sidebar/examples/Sidebar.md +16 -16
  100. package/docs/components/SimpleList/examples/SimpleList.md +9 -9
  101. package/docs/components/Skeleton/examples/Skeleton.md +14 -14
  102. package/docs/components/SkipToContent/examples/SkipToContent.md +4 -4
  103. package/docs/components/Slider/examples/Slider.md +33 -33
  104. package/docs/components/Spinner/examples/Spinner.md +14 -14
  105. package/docs/components/Switch/examples/Switch.md +14 -14
  106. package/docs/components/TabContent/examples/TabContent.md +10 -10
  107. package/docs/components/Table/examples/Table.md +5395 -15077
  108. package/docs/components/Tabs/examples/Tabs.md +39 -39
  109. package/docs/components/TextInputGroup/examples/TextInputGroup.md +1 -1
  110. package/docs/components/Tile/examples/Tile.md +12 -12
  111. package/docs/components/Timestamp/examples/Timestamp.md +4 -4
  112. package/docs/components/Title/examples/Title.md +20 -20
  113. package/docs/components/ToggleGroup/examples/toggle-group.md +10 -10
  114. package/docs/components/Toolbar/examples/Toolbar.md +57 -57
  115. package/docs/components/Tooltip/examples/Tooltip.md +9 -9
  116. package/docs/components/TreeView/examples/TreeView.md +31 -31
  117. package/docs/components/Truncate/examples/Truncate.md +8 -8
  118. package/docs/components/Wizard/examples/Wizard.md +46 -46
  119. package/docs/demos/Banner/examples/Banner.md +1 -1
  120. package/docs/demos/Card/examples/Card.md +12 -19
  121. package/docs/demos/DataList/examples/DataList.md +179 -280
  122. package/docs/demos/DescriptionList/examples/DescriptionList.md +6 -0
  123. package/docs/demos/Masthead/examples/Masthead.md +4 -8
  124. package/docs/demos/Nav/examples/Nav.md +45 -149
  125. package/docs/demos/Page/examples/Page.md +3 -37
  126. package/docs/demos/Page/examples/Penta.md +119 -40
  127. package/docs/demos/Table/examples/Table.md +1531 -4970
  128. package/docs/demos/Tabs/examples/Tabs.md +118 -174
  129. package/docs/demos/Toolbar/examples/Toolbar.md +220 -600
  130. package/docs/layouts/Bullseye/examples/Bullseye.md +3 -3
  131. package/docs/layouts/Flex/examples/Flex.md +76 -76
  132. package/docs/layouts/Gallery/examples/Gallery.md +6 -6
  133. package/docs/layouts/Grid/examples/Grid.md +8 -8
  134. package/docs/layouts/Level/examples/Level.md +4 -4
  135. package/docs/layouts/Split/examples/Split.md +6 -6
  136. package/docs/layouts/Stack/examples/Stack.md +5 -5
  137. package/docs/utilities/Accessibility/examples/Accessibility.md +2 -2
  138. package/docs/utilities/Alignment/examples/Alignment.md +4 -4
  139. package/docs/utilities/BackgroundColor/examples/BackgroundColor.md +10 -10
  140. package/docs/utilities/BoxShadow/examples/box-shadow.md +20 -20
  141. package/docs/utilities/Display/examples/Display.md +9 -9
  142. package/docs/utilities/Flex/examples/Flex.md +32 -32
  143. package/docs/utilities/Float/examples/Float.md +2 -2
  144. package/docs/utilities/Sizing/examples/Sizing.md +41 -41
  145. package/docs/utilities/Spacing/examples/Spacing.md +11 -11
  146. package/docs/utilities/Text/examples/Text.md +28 -28
  147. package/package.json +2 -1
  148. package/patternfly-no-globals.css +363 -465
  149. package/patternfly-theme-dark-unversioned.css +363 -465
  150. package/patternfly.css +363 -465
  151. package/patternfly.min.css +1 -1
  152. package/patternfly.min.css.map +1 -1
  153. package/components/Table/themes/dark/table.scss +0 -16
@@ -227,6 +227,7 @@
227
227
  .pf-v6-c-card__selectable-actions .pf-v6-c-radio__label {
228
228
  position: absolute;
229
229
  inset: 0;
230
+ justify-self: auto;
230
231
  cursor: pointer;
231
232
  }
232
233
  .pf-v6-c-card__selectable-actions .pf-v6-c-check__label::before,
@@ -303,6 +303,7 @@
303
303
  .#{$card}__selectable-actions .#{$radio}__label {
304
304
  position: absolute;
305
305
  inset: 0;
306
+ justify-self: auto;
306
307
  cursor: pointer;
307
308
 
308
309
  &::before {
@@ -2,17 +2,18 @@
2
2
  .pf-v6-c-check {
3
3
  --pf-v6-c-check--GridGap: var(--pf-t--global--spacer--sm) var(--pf-t--global--spacer--sm);
4
4
  --pf-v6-c-check--AccentColor: var(--pf-t--global--color--brand--default);
5
+ --pf-v6-c-check--Height: calc(var(--pf-v6-c-check__label--FontSize) * var(--pf-v6-c-check__label--LineHeight));
5
6
  --pf-v6-c-check__label--disabled--Color: var(--pf-t--global--text--color--disabled);
6
7
  --pf-v6-c-check__label--Color: var(--pf-t--global--text--color--regular);
7
8
  --pf-v6-c-check__label--FontWeight: var(--pf-t--global--font--weight--body);
8
9
  --pf-v6-c-check__label--FontSize: var(--pf-t--global--font--size--body--default);
9
10
  --pf-v6-c-check__label--LineHeight: var(--pf-t--global--font--line-height--body);
10
- --pf-v6-c-check__input--TranslateY: calc((var(--pf-v6-c-check__label--LineHeight) * var(--pf-v6-c-check__label--FontSize) / 2 ) - 50%);
11
11
  --pf-v6-c-check__description--FontSize: var(--pf-t--global--font--size--body--sm);
12
12
  --pf-v6-c-check__description--Color: var(--pf-t--global--text--color--subtle);
13
13
  --pf-v6-c-check__label-required--MarginLeft: var(--pf-t--global--spacer--xs);
14
14
  --pf-v6-c-check__label-required--FontSize: var(--pf-t--global--font--size--body--sm);
15
15
  --pf-v6-c-check__label-required--Color: var(--pf-t--global--color--status--danger--default);
16
+ --pf-v6-c-check__input--TranslateY: calc((var(--pf-v6-c-check__label--LineHeight) * var(--pf-v6-c-check__label--FontSize) / 2 ) - 50%);
16
17
  }
17
18
 
18
19
  .pf-v6-c-check {
@@ -22,13 +23,19 @@
22
23
  accent-color: var(--pf-v6-c-check--AccentColor);
23
24
  }
24
25
  .pf-v6-c-check.pf-m-standalone {
25
- --pf-v6-c-check--GridGap: 0;
26
- --pf-v6-c-check__input--TranslateY: none;
27
26
  display: inline-grid;
27
+ grid-template-columns: auto;
28
+ height: var(--pf-v6-c-check--Height);
29
+ }
30
+ .pf-v6-c-check.pf-m-standalone .pf-v6-c-check__input {
31
+ align-self: center;
32
+ transform: none;
28
33
  }
29
34
 
30
35
  .pf-v6-c-check__input {
31
36
  align-self: start;
37
+ font-size: var(--pf-v6-c-check__label--FontSize);
38
+ line-height: var(--pf-v6-c-check__label--LineHeight);
32
39
  transform: translateY(var(--pf-v6-c-check__input--TranslateY));
33
40
  }
34
41
 
@@ -4,12 +4,14 @@
4
4
  .#{$check} {
5
5
  --#{$check}--GridGap: var(--pf-t--global--spacer--sm) var(--pf-t--global--spacer--sm);
6
6
  --#{$check}--AccentColor: var(--pf-t--global--color--brand--default);
7
+ --#{$check}--Height: calc(var(--#{$check}__label--FontSize) * var(--#{$check}__label--LineHeight));
8
+
9
+ // TODO: update to `--#{$check}--FontSize` `--#{$check}--LineHeight`
7
10
  --#{$check}__label--disabled--Color: var(--pf-t--global--text--color--disabled);
8
11
  --#{$check}__label--Color: var(--pf-t--global--text--color--regular);
9
12
  --#{$check}__label--FontWeight: var(--pf-t--global--font--weight--body);
10
13
  --#{$check}__label--FontSize: var(--pf-t--global--font--size--body--default);
11
14
  --#{$check}__label--LineHeight: var(--pf-t--global--font--line-height--body);
12
- --#{$check}__input--TranslateY: calc((var(--#{$check}__label--LineHeight) * var(--#{$check}__label--FontSize) / 2 ) - 50%); // find height of single label, divide by two, offset by 50% of own height
13
15
  --#{$check}__description--FontSize: var(--pf-t--global--font--size--body--sm);
14
16
  --#{$check}__description--Color: var(--pf-t--global--text--color--subtle);
15
17
 
@@ -17,8 +19,12 @@
17
19
  --#{$check}__label-required--MarginLeft: var(--pf-t--global--spacer--xs);
18
20
  --#{$check}__label-required--FontSize: var(--pf-t--global--font--size--body--sm);
19
21
  --#{$check}__label-required--Color: var(--pf-t--global--color--status--danger--default);
22
+
23
+ // TODO: due to subpixel rendering and this value resolving to 21px, the checkbox vertical centering is off by 1px. Mozilla rounds subpixels up while chrome rounds down. This is a temporary fix until we can find a better solution.
24
+ --#{$check}__input--TranslateY: calc((var(--#{$check}__label--LineHeight) * var(--#{$check}__label--FontSize) / 2 ) - 50%); // find height of single label, divide by two, offset by 50% of own height
20
25
  }
21
26
 
27
+ // - Check
22
28
  .#{$check} {
23
29
  display: grid;
24
30
  grid-template-columns: auto 1fr;
@@ -26,15 +32,22 @@
26
32
  accent-color: var(--#{$check}--AccentColor);
27
33
 
28
34
  &.pf-m-standalone {
29
- --#{$check}--GridGap: 0;
30
- --#{$check}__input--TranslateY: none;
31
-
32
35
  display: inline-grid;
36
+ grid-template-columns: auto;
37
+ height: var(--#{$check}--Height);
38
+
39
+ .#{$check}__input {
40
+ align-self: center;
41
+ transform: none;
42
+ }
33
43
  }
34
44
  }
35
45
 
46
+ // - Check input
36
47
  .#{$check}__input {
37
48
  align-self: start;
49
+ font-size: var(--#{$check}__label--FontSize);
50
+ line-height: var(--#{$check}__label--LineHeight);
38
51
 
39
52
  // find height of single label, divide by two, offset by 50% of own height
40
53
  transform: translateY(var(--#{$check}__input--TranslateY));
@@ -1,11 +1,12 @@
1
- :root,
2
- [data-theme=pf-v6-c-masthead] {
1
+ :where(:root),
2
+ :where(.pf-v6-c-masthead) {
3
3
  --pf-v6-c-masthead--RowGap: var(--pf-t--global--spacer--sm);
4
4
  --pf-v6-c-masthead--ColumnGap: var(--pf-t--global--spacer--md);
5
5
  --pf-v6-c-masthead--BorderWidth: var(--pf-t--global--border--width--divider--default);
6
6
  --pf-v6-c-masthead--PaddingBlock: var(--pf-t--global--spacer--md);
7
7
  --pf-v6-c-masthead--PaddingInline: var(--pf-t--global--spacer--lg);
8
8
  --pf-v6-c-masthead--BorderColor: var(--pf-t--global--border--color--default);
9
+ --pf-v6-c-masthead--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
9
10
  --pf-v6-c-masthead__brand--MarginInlineEnd: var(--pf-t--global--spacer--md);
10
11
  --pf-v6-c-masthead__brand--MaxHeight: 2.375rem;
11
12
  --pf-v6-c-masthead__toggle--Size: var(--pf-t--global--icon--size--xl);
@@ -25,15 +26,12 @@
25
26
  --pf-v6-c-masthead--m-display-inline__content--Order: 0;
26
27
  --pf-v6-c-masthead__expandable-content--BoxShadow: var(--pf-t--global--box-shadow--md--bottom);
27
28
  --pf-v6-c-masthead__expandable-content--BorderBlockStart: var(--pf-v6-c-masthead--BorderWidth) solid var(--pf-v6-c-masthead--BorderColor);
28
- --pf-v6-c-masthead--pf-v6-c-toolbar--Width: 100%;
29
- --pf-v6-c-masthead--pf-v6-c-toolbar--PaddingBlock: 0;
30
- --pf-v6-c-masthead--pf-v6-c-toolbar--PaddingInline: 0;
29
+ --pf-v6-c-masthead--c-toolbar--Width: 100%;
30
+ --pf-v6-c-masthead--c-toolbar--PaddingBlock: 0;
31
+ --pf-v6-c-masthead--c-toolbar--PaddingInline: 0;
31
32
  }
32
33
 
33
34
  .pf-v6-c-masthead {
34
- --pf-v6-c-toolbar--Width: var(--pf-v6-c-masthead--pf-v6-c-toolbar--Width);
35
- --pf-v6-c-toolbar__content--PaddingBlock: var(--pf-v6-c-masthead--pf-v6-c-toolbar--PaddingBlock);
36
- --pf-v6-c-toolbar__content--PaddingInline: var(--pf-v6-c-masthead--pf-v6-c-toolbar--PaddingInline);
37
35
  --pf-v6-c-masthead--GridTemplateColumns: var(--pf-v6-c-masthead--m-display-stack--GridTemplateColumns);
38
36
  --pf-v6-c-masthead__main--GridColumn: var(--pf-v6-c-masthead--m-display-stack__main--GridColumn);
39
37
  --pf-v6-c-masthead__main--Order: var(--pf-v6-c-masthead--m-display-stack__main--Order);
@@ -51,7 +49,13 @@
51
49
  padding-block-end: var(--pf-v6-c-masthead--PaddingBlockEnd, var(--pf-v6-c-masthead--PaddingBlock));
52
50
  padding-inline-start: var(--pf-v6-c-masthead--PaddingInlineStart, var(--pf-v6-c-masthead--PaddingInline));
53
51
  padding-inline-end: var(--pf-v6-c-masthead--PaddingInlineEnd, var(--pf-v6-c-masthead--PaddingInline));
54
- background-color: var(--pf-v6-c-masthead--BackgroundColor, var(--pf-t--global--background--color--secondary--default));
52
+ background-color: var(--pf-v6-c-masthead--BackgroundColor);
53
+ }
54
+ .pf-v6-c-masthead .pf-v6-c-toolbar {
55
+ --pf-v6-c-toolbar--Width: var(--pf-v6-c-masthead--c-toolbar--Width);
56
+ --pf-v6-c-toolbar__content--PaddingBlock: var(--pf-v6-c-masthead--c-toolbar--PaddingBlock);
57
+ --pf-v6-c-toolbar__content--PaddingInline: var(--pf-v6-c-masthead--c-toolbar--PaddingInline);
58
+ --pf-v6-c-toolbar__content--MinWidth: 0;
55
59
  }
56
60
  @media screen and (min-width: 768px) {
57
61
  :where(:not(.pf-m-resize-observer)) .pf-v6-c-masthead {
@@ -64,6 +68,10 @@
64
68
  --pf-v6-c-masthead__content--Order: var(--pf-v6-c-masthead--m-display-inline__content--Order);
65
69
  }
66
70
  }
71
+ .pf-v6-c-masthead .pf-v6-c-toolbar__content-section {
72
+ flex-wrap: nowrap;
73
+ min-width: 0;
74
+ }
67
75
  .pf-v6-c-masthead .pf-v6-c-toolbar__expandable-content {
68
76
  inset-block-start: 100%;
69
77
  border-block-start: var(--pf-v6-c-masthead__expandable-content--BorderBlockStart);
@@ -1,8 +1,8 @@
1
1
  $pf-v5-c-masthead--breakpoint-map: build-breakpoint-map();
2
2
  $pf-v5-c-masthead--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl");
3
3
 
4
- :root,
5
- [data-theme="#{$masthead}"] {
4
+ :where(:root),
5
+ :where(.#{$masthead}) {
6
6
  // * Masthead
7
7
  --#{$masthead}--RowGap: var(--pf-t--global--spacer--sm);
8
8
  --#{$masthead}--ColumnGap: var(--pf-t--global--spacer--md);
@@ -10,6 +10,7 @@ $pf-v5-c-masthead--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "
10
10
  --#{$masthead}--PaddingBlock: var(--pf-t--global--spacer--md);
11
11
  --#{$masthead}--PaddingInline: var(--pf-t--global--spacer--lg);
12
12
  --#{$masthead}--BorderColor: var(--pf-t--global--border--color--default);
13
+ --#{$masthead}--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
13
14
 
14
15
  // * Masthead brand
15
16
  --#{$masthead}__brand--MarginInlineEnd: var(--pf-t--global--spacer--md);
@@ -41,9 +42,9 @@ $pf-v5-c-masthead--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "
41
42
  --#{$masthead}__expandable-content--BorderBlockStart: var(--#{$masthead}--BorderWidth) solid var(--#{$masthead}--BorderColor);
42
43
 
43
44
  // * Masthead toolbar
44
- --#{$masthead}--#{$toolbar}--Width: 100%;
45
- --#{$masthead}--#{$toolbar}--PaddingBlock: 0;
46
- --#{$masthead}--#{$toolbar}--PaddingInline: 0;
45
+ --#{$masthead}--c-toolbar--Width: 100%;
46
+ --#{$masthead}--c-toolbar--PaddingBlock: 0;
47
+ --#{$masthead}--c-toolbar--PaddingInline: 0;
47
48
  }
48
49
 
49
50
  // * Masthead display stack
@@ -70,9 +71,12 @@ $pf-v5-c-masthead--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "
70
71
 
71
72
  // - Masthead
72
73
  .#{$masthead} {
73
- --#{$toolbar}--Width: var(--#{$masthead}--#{$toolbar}--Width);
74
- --#{$toolbar}__content--PaddingBlock: var(--#{$masthead}--#{$toolbar}--PaddingBlock);
75
- --#{$toolbar}__content--PaddingInline: var(--#{$masthead}--#{$toolbar}--PaddingInline);
74
+ .#{$toolbar} {
75
+ --#{$toolbar}--Width: var(--#{$masthead}--c-toolbar--Width);
76
+ --#{$toolbar}__content--PaddingBlock: var(--#{$masthead}--c-toolbar--PaddingBlock);
77
+ --#{$toolbar}__content--PaddingInline: var(--#{$masthead}--c-toolbar--PaddingInline);
78
+ --#{$toolbar}__content--MinWidth: 0;
79
+ }
76
80
 
77
81
  // Set layout to stack by default
78
82
  @include pf-v5-c-masthead--m-display-stack;
@@ -97,7 +101,12 @@ $pf-v5-c-masthead--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "
97
101
  padding-block-end: var(--#{$masthead}--PaddingBlockEnd, var(--#{$masthead}--PaddingBlock));
98
102
  padding-inline-start: var(--#{$masthead}--PaddingInlineStart, var(--#{$masthead}--PaddingInline));
99
103
  padding-inline-end: var(--#{$masthead}--PaddingInlineEnd, var(--#{$masthead}--PaddingInline));
100
- background-color: var(--#{$masthead}--BackgroundColor, var(--pf-t--global--background--color--secondary--default));
104
+ background-color: var(--#{$masthead}--BackgroundColor);
105
+
106
+ .#{$toolbar}__content-section {
107
+ flex-wrap: nowrap;
108
+ min-width: 0;
109
+ }
101
110
 
102
111
  // - Masthead toolbar expandable content
103
112
  .#{$toolbar}__expandable-content {
@@ -29,6 +29,8 @@
29
29
  --pf-v6-c-menu-toggle--expanded__toggle-icon--Color: var(--pf-t--global--icon--color--regular);
30
30
  --pf-v6-c-menu-toggle--disabled--Color: var(--pf-t--global--text--color--on-disabled);
31
31
  --pf-v6-c-menu-toggle--disabled--BackgroundColor: var(--pf-t--global--background--color--disabled--default);
32
+ --pf-v6-c-menu-toggle__icon--MinHeight: calc(var(--pf-v6-c-menu__item--FontSize) * var(--pf-v6-c-menu__item--LineHeight));
33
+ --pf-v6-c-menu-toggle__toggle-icon--MinHeight: calc(var(--pf-v6-c-menu__item--FontSize) * var(--pf-v6-c-menu__item--LineHeight));
32
34
  --pf-v6-c-menu-toggle--m-button--PaddingLeft: var(--pf-t--global--spacer--md);
33
35
  --pf-v6-c-menu-toggle--m-button--PaddingRight: var(--pf-t--global--spacer--md);
34
36
  --pf-v6-c-menu-toggle--m-button--BorderRadius: var(--pf-t--global--border--radius--pill);
@@ -103,6 +105,8 @@
103
105
  --pf-v6-c-menu-toggle--m-plain--disabled--BackgroundColor: transparent;
104
106
  --pf-v6-c-menu-toggle--m-typeahead--c-text-input-group__utilities--c-button--PaddingRight: var(--pf-t--global--spacer--sm);
105
107
  --pf-v6-c-menu-toggle--m-typeahead__button--AlignSelf: stretch;
108
+ --pf-v6-c-menu-toggle--m-small--PaddingTop: var(--pf-t--global--spacer--xs);
109
+ --pf-v6-c-menu-toggle--m-small--PaddingBottom: var(--pf-t--global--spacer--xs);
106
110
  }
107
111
 
108
112
  .pf-v6-c-menu-toggle {
@@ -230,6 +234,10 @@
230
234
  .pf-v6-c-menu-toggle.pf-m-primary::before, .pf-v6-c-menu-toggle:is(:disabled, .pf-m-disabled)::before {
231
235
  border: 0;
232
236
  }
237
+ .pf-v6-c-menu-toggle.pf-m-small {
238
+ --pf-v6-c-menu-toggle--PaddingTop: var(--pf-v6-c-menu-toggle--m-small--PaddingTop);
239
+ --pf-v6-c-menu-toggle--PaddingBottom: var(--pf-v6-c-menu-toggle--m-small--PaddingBottom);
240
+ }
233
241
  .pf-v6-c-menu-toggle:has(.pf-v6-c-button) {
234
242
  background-color: transparent;
235
243
  }
@@ -340,11 +348,6 @@
340
348
  padding-inline-start: 0;
341
349
  }
342
350
 
343
- .pf-v6-c-menu-toggle__icon {
344
- flex-shrink: 0;
345
- align-self: center;
346
- }
347
-
348
351
  .pf-v6-c-menu-toggle__text {
349
352
  overflow: hidden;
350
353
  text-overflow: ellipsis;
@@ -357,14 +360,25 @@
357
360
  flex-wrap: nowrap;
358
361
  }
359
362
 
360
- .pf-v6-c-menu-toggle__controls {
363
+ .pf-v6-c-menu-toggle__icon,
364
+ .pf-v6-c-menu-toggle__controls,
365
+ .pf-v6-c-menu-toggle__toggle-icon {
361
366
  display: flex;
362
367
  align-items: center;
363
368
  justify-content: center;
369
+ }
370
+
371
+ .pf-v6-c-menu-toggle__icon {
372
+ flex-shrink: 0;
373
+ min-height: var(--pf-v6-c-menu-toggle__icon--MinHeight);
374
+ }
375
+
376
+ .pf-v6-c-menu-toggle__controls {
364
377
  min-width: var(--pf-v6-c-menu-toggle__controls--MinWidth);
365
378
  margin-inline-start: auto;
366
379
  }
367
380
 
368
381
  .pf-v6-c-menu-toggle__toggle-icon {
382
+ min-height: var(--pf-v6-c-menu-toggle__toggle-icon--MinHeight);
369
383
  color: var(--pf-v6-c-menu-toggle__toggle-icon--Color, inherit);
370
384
  }
@@ -6,6 +6,7 @@
6
6
  // TODO: abstract button / control styling to affect any/all variants
7
7
  // TODO: move controls to wrap buttons, not the other way around
8
8
  // TODO: update text-input-button to use gap
9
+ // TODO: label all variables group - // * Menu toggle (vars) // - Menu toggle (selectors)
9
10
 
10
11
  :where(:root),
11
12
  :where(.#{$menu-toggle}) {
@@ -47,6 +48,12 @@
47
48
  --#{$menu-toggle}--disabled--Color: var(--pf-t--global--text--color--on-disabled);
48
49
  --#{$menu-toggle}--disabled--BackgroundColor: var(--pf-t--global--background--color--disabled--default);
49
50
 
51
+ // * Menu toggle icon
52
+ --#{$menu-toggle}__icon--MinHeight: calc(var(--#{$menu}__item--FontSize) * var(--#{$menu}__item--LineHeight));
53
+
54
+ // * Menu toggle toggle icon
55
+ --#{$menu-toggle}__toggle-icon--MinHeight: calc(var(--#{$menu}__item--FontSize) * var(--#{$menu}__item--LineHeight));
56
+
50
57
  // TODO: add pf-m-button modifier here
51
58
  // * Menu toggle button
52
59
  --#{$menu-toggle}--m-button--PaddingLeft: var(--pf-t--global--spacer--md);
@@ -152,6 +159,10 @@
152
159
  // Typeahead
153
160
  --#{$menu-toggle}--m-typeahead--c-text-input-group__utilities--c-button--PaddingRight: var(--pf-t--global--spacer--sm);
154
161
  --#{$menu-toggle}--m-typeahead__button--AlignSelf: stretch;
162
+
163
+ // * Menu toggle small
164
+ --#{$menu-toggle}--m-small--PaddingTop: var(--pf-t--global--spacer--xs);
165
+ --#{$menu-toggle}--m-small--PaddingBottom: var(--pf-t--global--spacer--xs);
155
166
  }
156
167
 
157
168
  .#{$menu-toggle} {
@@ -300,6 +311,12 @@
300
311
  }
301
312
  }
302
313
 
314
+ // - Menu item small
315
+ &.pf-m-small {
316
+ --#{$menu-toggle}--PaddingTop: var(--#{$menu-toggle}--m-small--PaddingTop);
317
+ --#{$menu-toggle}--PaddingBottom: var(--#{$menu-toggle}--m-small--PaddingBottom);
318
+ }
319
+
303
320
  &:has(.#{$button}) {
304
321
  background-color: transparent;
305
322
  }
@@ -451,11 +468,6 @@
451
468
  }
452
469
  }
453
470
 
454
- .#{$menu-toggle}__icon {
455
- flex-shrink: 0;
456
- align-self: center;
457
- }
458
-
459
471
  .#{$menu-toggle}__text {
460
472
  @include pf-v5-text-overflow;
461
473
 
@@ -467,14 +479,28 @@
467
479
  flex-wrap: nowrap;
468
480
  }
469
481
 
470
- .#{$menu-toggle}__controls {
482
+ // - Menu toggle controls - Menu toggle icon
483
+ .#{$menu-toggle}__icon,
484
+ .#{$menu-toggle}__controls,
485
+ .#{$menu-toggle}__toggle-icon {
471
486
  display: flex;
472
487
  align-items: center;
473
488
  justify-content: center;
489
+ }
490
+
491
+ .#{$menu-toggle}__icon {
492
+ flex-shrink: 0;
493
+ min-height: var(--#{$menu-toggle}__icon--MinHeight);
494
+ }
495
+
496
+ // - Menu toggle controls
497
+ .#{$menu-toggle}__controls {
474
498
  min-width: var(--#{$menu-toggle}__controls--MinWidth);
475
499
  margin-inline-start: auto; // TODO: possibly replace as part of one of the other TODOs at top of file
476
500
  }
477
501
 
502
+ // - Menu toggle icon
478
503
  .#{$menu-toggle}__toggle-icon {
504
+ min-height: var(--#{$menu-toggle}__toggle-icon--MinHeight);
479
505
  color: var(--#{$menu-toggle}__toggle-icon--Color, inherit);
480
506
  }
@@ -37,8 +37,8 @@
37
37
  --pf-v6-c-modal-box__body--PaddingLeft: var(--pf-t--global--spacer--lg);
38
38
  --pf-v6-c-modal-box__body--last-child--PaddingBottom: var(--pf-t--global--spacer--lg);
39
39
  --pf-v6-c-modal-box__header--body--PaddingTop: var(--pf-t--global--spacer--md);
40
- --pf-v6-c-modal-box__close--Top: var(--pf-v5-c-modal-box__header--PaddingTop);
41
- --pf-v6-c-modal-box__close--Right: var(--pf-v5-c-modal-box__header--PaddingRight);
40
+ --pf-v6-c-modal-box__close--Top: var(--pf-v6-c-modal-box__header--PaddingTop);
41
+ --pf-v6-c-modal-box__close--Right: var(--pf-v6-c-modal-box__header--PaddingRight);
42
42
  --pf-v6-c-modal-box__close--sibling--MarginRight: calc(var(--pf-t--global--spacer--xl) + var(--pf-t--global--spacer--sm));
43
43
  --pf-v6-c-modal-box__footer--PaddingTop: var(--pf-t--global--spacer--lg);
44
44
  --pf-v6-c-modal-box__footer--PaddingRight: var(--pf-t--global--spacer--lg);
@@ -81,19 +81,23 @@
81
81
  max-width: var(--pf-v6-c-modal-box--m-align-top--MaxWidth);
82
82
  max-height: var(--pf-v6-c-modal-box--m-align-top--MaxHeight);
83
83
  }
84
- .pf-v6-c-modal-box.pf-m-danger {
84
+ .pf-v6-c-modal-box__title.pf-m-danger, .pf-v6-c-modal-box.pf-m-danger {
85
85
  --pf-v6-c-modal-box__title-icon--Color: var(--pf-v6-c-modal-box--m-danger__title-icon--Color);
86
86
  }
87
- .pf-v6-c-modal-box.pf-m-warning {
87
+
88
+ .pf-v6-c-modal-box__title.pf-m-warning, .pf-v6-c-modal-box.pf-m-warning {
88
89
  --pf-v6-c-modal-box__title-icon--Color: var(--pf-v6-c-modal-box--m-warning__title-icon--Color);
89
90
  }
90
- .pf-v6-c-modal-box.pf-m-success {
91
+
92
+ .pf-v6-c-modal-box__title.pf-m-success, .pf-v6-c-modal-box.pf-m-success {
91
93
  --pf-v6-c-modal-box__title-icon--Color: var(--pf-v6-c-modal-box--m-success__title-icon--Color);
92
94
  }
93
- .pf-v6-c-modal-box.pf-m-custom {
95
+
96
+ .pf-v6-c-modal-box__title.pf-m-custom, .pf-v6-c-modal-box.pf-m-custom {
94
97
  --pf-v6-c-modal-box__title-icon--Color: var(--pf-v6-c-modal-box--m-custom__title-icon--Color);
95
98
  }
96
- .pf-v6-c-modal-box.pf-m-info {
99
+
100
+ .pf-v6-c-modal-box__title.pf-m-info, .pf-v6-c-modal-box.pf-m-info {
97
101
  --pf-v6-c-modal-box__title-icon--Color: var(--pf-v6-c-modal-box--m-info__title-icon--Color);
98
102
  }
99
103
 
@@ -59,8 +59,8 @@
59
59
  --#{$modal-box}__header--body--PaddingTop: var(--pf-t--global--spacer--md);
60
60
 
61
61
  // Close
62
- --#{$modal-box}__close--Top: var(--pf-v5-c-modal-box__header--PaddingTop); // calc(var(--pf-t--global--spacer--md));
63
- --#{$modal-box}__close--Right: var(--pf-v5-c-modal-box__header--PaddingRight); // var(--pf-t--global--spacer--lg);
62
+ --#{$modal-box}__close--Top: var(--#{$modal-box}__header--PaddingTop);
63
+ --#{$modal-box}__close--Right: var(--#{$modal-box}__header--PaddingRight);
64
64
  --#{$modal-box}__close--sibling--MarginRight: calc(var(--pf-t--global--spacer--xl) + var(--pf-t--global--spacer--sm));
65
65
 
66
66
  // Footer
@@ -106,24 +106,39 @@
106
106
  max-height: var(--#{$modal-box}--m-align-top--MaxHeight);
107
107
  }
108
108
 
109
- &.pf-m-danger {
110
- --#{$modal-box}__title-icon--Color: var(--#{$modal-box}--m-danger__title-icon--Color);
109
+ @at-root .#{$modal-box}__title,
110
+ & {
111
+ &.pf-m-danger {
112
+ --#{$modal-box}__title-icon--Color: var(--#{$modal-box}--m-danger__title-icon--Color);
113
+ }
111
114
  }
112
115
 
113
- &.pf-m-warning {
114
- --#{$modal-box}__title-icon--Color: var(--#{$modal-box}--m-warning__title-icon--Color);
116
+ @at-root .#{$modal-box}__title,
117
+ & {
118
+ &.pf-m-warning {
119
+ --#{$modal-box}__title-icon--Color: var(--#{$modal-box}--m-warning__title-icon--Color);
120
+ }
115
121
  }
116
122
 
117
- &.pf-m-success {
118
- --#{$modal-box}__title-icon--Color: var(--#{$modal-box}--m-success__title-icon--Color);
123
+ @at-root .#{$modal-box}__title,
124
+ & {
125
+ &.pf-m-success {
126
+ --#{$modal-box}__title-icon--Color: var(--#{$modal-box}--m-success__title-icon--Color);
127
+ }
119
128
  }
120
129
 
121
- &.pf-m-custom {
122
- --#{$modal-box}__title-icon--Color: var(--#{$modal-box}--m-custom__title-icon--Color);
130
+ @at-root .#{$modal-box}__title,
131
+ & {
132
+ &.pf-m-custom {
133
+ --#{$modal-box}__title-icon--Color: var(--#{$modal-box}--m-custom__title-icon--Color);
134
+ }
123
135
  }
124
136
 
125
- &.pf-m-info {
126
- --#{$modal-box}__title-icon--Color: var(--#{$modal-box}--m-info__title-icon--Color);
137
+ @at-root .#{$modal-box}__title,
138
+ & {
139
+ &.pf-m-info {
140
+ --#{$modal-box}__title-icon--Color: var(--#{$modal-box}--m-info__title-icon--Color);
141
+ }
127
142
  }
128
143
  }
129
144