@patternfly/patternfly 6.0.0-alpha.82 → 6.0.0-alpha.84

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 (59) hide show
  1. package/components/Breadcrumb/breadcrumb.css +9 -1
  2. package/components/Breadcrumb/breadcrumb.scss +10 -3
  3. package/components/Button/button.css +1 -1
  4. package/components/Button/button.scss +1 -1
  5. package/components/Menu/menu.css +388 -419
  6. package/components/Menu/menu.scss +369 -529
  7. package/components/MenuToggle/menu-toggle.css +229 -265
  8. package/components/MenuToggle/menu-toggle.scss +330 -370
  9. package/components/TextInputGroup/text-input-group.css +0 -14
  10. package/components/TextInputGroup/text-input-group.scss +3 -16
  11. package/docs/components/Button/examples/Button.md +134 -134
  12. package/docs/components/CalendarMonth/examples/CalendarMonth.md +4 -4
  13. package/docs/components/Card/examples/Card.md +8 -8
  14. package/docs/components/DualListSelector/examples/DualListSelector.md +2 -2
  15. package/docs/components/Form/examples/Form.md +11 -11
  16. package/docs/components/Label/examples/Label.md +157 -157
  17. package/docs/components/LogViewer/examples/LogViewer.md +110 -110
  18. package/docs/components/Menu/examples/Menu.css +7 -11
  19. package/docs/components/Menu/examples/Menu.md +637 -944
  20. package/docs/components/MenuToggle/examples/MenuToggle.md +88 -51
  21. package/docs/components/Nav/examples/Navigation.md +113 -140
  22. package/docs/components/Tabs/examples/Tabs.md +24 -24
  23. package/docs/components/TextInputGroup/examples/TextInputGroup.md +9 -9
  24. package/docs/components/Toolbar/examples/Toolbar.md +28 -28
  25. package/docs/demos/AboutModal/examples/AboutModal.md +2 -2
  26. package/docs/demos/Alert/examples/Alert.md +6 -6
  27. package/docs/demos/BackToTop/examples/BackToTop.md +2 -2
  28. package/docs/demos/Banner/examples/Banner.md +4 -4
  29. package/docs/demos/Button/examples/Button.md +1 -1
  30. package/docs/demos/CardView/examples/CardView.md +3 -3
  31. package/docs/demos/ContextSelector/examples/ContextSelector.md +7 -7
  32. package/docs/demos/Dashboard/examples/Dashboard.md +2 -2
  33. package/docs/demos/DataList/examples/DataList.md +13 -13
  34. package/docs/demos/DescriptionList/examples/DescriptionList.md +6 -6
  35. package/docs/demos/Drawer/examples/Drawer.md +10 -10
  36. package/docs/demos/Form/examples/BasicForms.md +12 -12
  37. package/docs/demos/JumpLinks/examples/JumpLinks.md +12 -12
  38. package/docs/demos/Masthead/examples/Masthead.md +9 -9
  39. package/docs/demos/Modal/examples/Modal.md +15 -15
  40. package/docs/demos/Nav/examples/Nav.md +12 -12
  41. package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +10 -10
  42. package/docs/demos/Page/examples/Page.md +18 -18
  43. package/docs/demos/Page/examples/Penta.md +4 -4
  44. package/docs/demos/PasswordGenerator/examples/PasswordGenerator.md +11 -11
  45. package/docs/demos/PasswordStrength/examples/PasswordStrength.md +4 -4
  46. package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +18 -18
  47. package/docs/demos/Skeleton/examples/Skeleton.md +2 -2
  48. package/docs/demos/Table/examples/Table.md +54 -54
  49. package/docs/demos/Tabs/examples/Tabs.md +12 -12
  50. package/docs/demos/Toolbar/examples/Toolbar.md +27 -27
  51. package/docs/demos/Wizard/examples/Wizard.md +18 -18
  52. package/package.json +1 -1
  53. package/patternfly-no-globals.css +746 -711
  54. package/patternfly-theme-dark-unversioned.css +746 -711
  55. package/patternfly.css +746 -711
  56. package/patternfly.min.css +1 -1
  57. package/patternfly.min.css.map +1 -1
  58. package/components/MenuToggle/themes/dark/menu-toggle.scss +0 -27
  59. package/components/TextInputGroup/themes/dark/text-input-group.scss +0 -11
@@ -1,92 +1,109 @@
1
1
  // @debug $menu-toggle; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
2
2
 
3
- .#{$menu-toggle} {
4
- --#{$menu-toggle}--BorderRadius: var(--pf-t--global--border--radius--small);
5
- --#{$menu-toggle}--PaddingTop: var(--pf-t--global--spacer--sm); // TODO semantic spacer for form elements?
3
+ // TODO: standardize this layout
4
+ // TODO: add .#{$menu-toggle}__main to house extra elements, like .#{$menu-toggle}__icon, .#{$menu-toggle}__text, .#{$menu-toggle}__count, .#{$menu-toggle}__controls
5
+ // TODO: transition to row/column gap instead of margins
6
+ // TODO: abstract button / control styling to affect any/all variants
7
+ // TODO: move controls to wrap buttons, not the other way around
8
+ // TODO: update text-input-button to use gap
9
+
10
+ :where(:root),
11
+ :where(.#{$menu-toggle}) {
12
+ --#{$menu-toggle}--ColumnGap: var(--pf-t--global--spacer--sm);
13
+ --#{$menu-toggle}--PaddingTop: var(--pf-t--global--spacer--sm);
6
14
  --#{$menu-toggle}--PaddingRight: var(--pf-t--global--spacer--sm);
7
- --#{$menu-toggle}--PaddingBottom: var(--pf-t--global--spacer--sm); // TODO semantic spacer?
15
+ --#{$menu-toggle}--PaddingBottom: var(--pf-t--global--spacer--sm);
8
16
  --#{$menu-toggle}--PaddingLeft: var(--pf-t--global--spacer--sm);
17
+ --#{$menu-toggle}--MinWidth: calc(var(--#{$menu-toggle}--FontSize) * var(--#{$menu-toggle}--LineHeight) + var(--#{$menu-toggle}--PaddingTop) + var(--#{$menu-toggle}--PaddingBottom));
9
18
  --#{$menu-toggle}--FontSize: var(--pf-t--global--font--size--body--default);
10
19
  --#{$menu-toggle}--Color: var(--pf-t--global--text--color--regular);
11
20
  --#{$menu-toggle}--LineHeight: var(--pf-t--global--font--line-height--body);
12
21
  --#{$menu-toggle}--BackgroundColor: var(--pf-t--global--background--color--control--default);
13
- --#{$menu-toggle}--BorderWidth: var(--pf-t--global--border--width--control--default);
22
+ --#{$menu-toggle}--BorderRadius: var(--pf-t--global--border--radius--small);
14
23
  --#{$menu-toggle}--BorderColor: var(--pf-t--global--border--color--default);
15
- --#{$menu-toggle}--hover--BorderWidth: var(--pf-t--global--border--width--control--hover);
24
+ --#{$menu-toggle}--BorderWidth: var(--pf-t--global--border--width--button--default);
25
+ --#{$menu-toggle}--border--ZIndex: var(--pf-t--global--Zindex--xs); // add z-index for toggle border to render above other borders
26
+
27
+ // * Menu toggle hover
28
+ --#{$menu-toggle}--hover--Color: var(--pf-t--global--text--color--regular);
29
+ --#{$menu-toggle}--hover--BackgroundColor: var(--pf-t--global--background--color--control--default);
30
+ --#{$menu-toggle}--hover--BorderWidth: var(--pf-t--global--border--width--button--default);
16
31
  --#{$menu-toggle}--hover--BorderColor: var(--pf-t--global--border--color--hover);
17
- --#{$menu-toggle}--active--BorderWidth: var(--pf-t--global--border--width--control--clicked);
18
- --#{$menu-toggle}--active--BorderColor: var(--pf-t--global--border--color--active);
19
-
20
- // Border base
21
- --#{$menu-toggle}--before--BorderTopWidth: var(--pf-t--global--border--width--control--default);
22
- --#{$menu-toggle}--before--BorderRightWidth: var(--pf-t--global--border--width--control--default);
23
- --#{$menu-toggle}--before--BorderBottomWidth: var(--pf-t--global--border--width--control--default);
24
- --#{$menu-toggle}--before--BorderLeftWidth: var(--pf-t--global--border--width--control--default);
25
- --#{$menu-toggle}--before--BorderTopColor: var(--pf-t--global--border--color--default);
26
- --#{$menu-toggle}--before--BorderRightColor: var(--pf-t--global--border--color--default);
27
- --#{$menu-toggle}--before--BorderBottomColor: var(--pf-t--global--border--color--default);
28
- --#{$menu-toggle}--before--BorderLeftColor: var(--pf-t--global--border--color--default);
29
-
30
- // Hover
31
- --#{$menu-toggle}--hover--BackgroundColor: transparent;
32
- --#{$menu-toggle}--hover--after--BorderBottomWidth: var(--pf-t--global--border--width--control--hover);
33
- --#{$menu-toggle}--hover--after--BorderBottomColor: var(--pf-t--global--border--color--hover);
34
-
35
- // Focus
36
- --#{$menu-toggle}--focus--BackgroundColor: transparent;
37
- --#{$menu-toggle}--focus--after--BorderBottomWidth: var(--pf-t--global--border--width--control--clicked);
38
- --#{$menu-toggle}--focus--after--BorderBottomColor: var(--pf-t--global--border--color--active);
39
-
40
- // Active
41
- --#{$menu-toggle}--active--BackgroundColor: transparent;
42
- --#{$menu-toggle}--active--after--BorderBottomWidth: var(--pf-t--global--border--width--control--clicked);
43
- --#{$menu-toggle}--active--after--BorderBottomColor: var(--pf-t--global--border--color--active);
44
-
45
- // Expanded
46
- --#{$menu-toggle}--m-expanded--Color: var(--#{$pf-global}--Color--100);
47
- --#{$menu-toggle}--m-expanded--BackgroundColor: transparent;
48
- --#{$menu-toggle}--m-expanded--after--BorderBottomWidth: var(--pf-t--global--border--width--control--clicked);
49
- --#{$menu-toggle}--m-expanded--after--BorderBottomColor: var(--pf-t--global--border--color--active);
50
-
51
- // Disabled
52
- --#{$menu-toggle}--disabled--Color: var(--#{$pf-global}--disabled-color--100);
53
- --#{$menu-toggle}--disabled--BackgroundColor: var(--#{$pf-global}--disabled-color--300);
54
-
55
- // Primary
56
- --#{$menu-toggle}--m-primary--Color: var(--#{$pf-global}--Color--light-100);
57
- --#{$menu-toggle}--m-primary--BorderRadius: var(--#{$pf-global}--BorderRadius--sm);
58
- --#{$menu-toggle}--m-primary--BackgroundColor: var(--#{$pf-global}--primary-color--100);
59
- --#{$menu-toggle}--m-primary--hover--BackgroundColor: var(--#{$pf-global}--primary-color--200);
60
- --#{$menu-toggle}--m-primary--focus--BackgroundColor: var(--#{$pf-global}--primary-color--200);
61
- --#{$menu-toggle}--m-primary--active--BackgroundColor: var(--#{$pf-global}--primary-color--200);
62
- --#{$menu-toggle}--m-primary--m-expanded--BackgroundColor: var(--#{$pf-global}--primary-color--200);
63
- --#{$menu-toggle}--m-primary--m-expanded--Color: var(--#{$pf-global}--Color--light-100);
64
-
65
- // Secondary
66
- --#{$menu-toggle}--m-secondary--Color: var(--#{$pf-global}--primary-color--100);
67
- --#{$menu-toggle}--m-secondary--BorderRadius: var(--#{$pf-global}--BorderRadius--sm);
68
- --#{$menu-toggle}--m-secondary--BackgroundColor: transparent;
69
- --#{$menu-toggle}--m-secondary--before--BorderWidth: var(--#{$pf-global}--BorderWidth--sm);
70
- --#{$menu-toggle}--m-secondary--hover--before--BorderWidth: var(--#{$pf-global}--BorderWidth--md);
71
- --#{$menu-toggle}--m-secondary--focus--before--BorderWidth: var(--#{$pf-global}--BorderWidth--md);
72
- --#{$menu-toggle}--m-secondary--active--before--BorderWidth: var(--#{$pf-global}--BorderWidth--md);
73
- --#{$menu-toggle}--m-secondary--before--BorderColor: var(--#{$pf-global}--primary-color--100);
74
- --#{$menu-toggle}--m-secondary--hover--before--BorderColor: var(--#{$pf-global}--primary-color--100);
75
- --#{$menu-toggle}--m-secondary--focus--before--BorderColor: var(--#{$pf-global}--primary-color--100);
76
- --#{$menu-toggle}--m-secondary--active--before--BorderColor: var(--#{$pf-global}--primary-color--100);
77
- --#{$menu-toggle}--m-secondary--m-expanded--Color: var(--#{$pf-global}--primary-color--100);
78
- --#{$menu-toggle}--m-expanded__toggle--m-secondary--before--BorderColor: var(--#{$pf-global}--primary-color--100);
79
- --#{$menu-toggle}--m-expanded__toggle--m-secondary--before--BorderWidth: var(--#{$pf-global}--BorderWidth--md);
80
-
81
- // Plain
82
- --#{$menu-toggle}--m-plain--Color: var(--#{$pf-global}--Color--200);
83
- --#{$menu-toggle}--m-plain--PaddingRight: var(--#{$pf-global}--spacer--md);
84
- --#{$menu-toggle}--m-plain--PaddingLeft: var(--#{$pf-global}--spacer--md);
85
- --#{$menu-toggle}--m-plain--hover--Color: var(--#{$pf-global}--Color--100);
86
- --#{$menu-toggle}--m-plain--focus--Color: var(--#{$pf-global}--Color--100);
87
- --#{$menu-toggle}--m-plain--active--Color: var(--#{$pf-global}--Color--100);
88
- --#{$menu-toggle}--m-plain--disabled--Color: var(--#{$pf-global}--disabled-color--200);
89
- --#{$menu-toggle}--m-plain--m-expanded--Color: var(--#{$pf-global}--Color--100);
32
+ --#{$menu-toggle}--hover__toggle-icon--Color: var(--pf-t--global--icon--color--regular);
33
+
34
+ // * Menu toggle active
35
+ --#{$menu-toggle}--active--BackgroundColor: var(--pf-t--global--background--color--control--default);
36
+ --#{$menu-toggle}--active--BorderWidth: var(--pf-t--global--border--width--button--clicked);
37
+ --#{$menu-toggle}--active--BorderColor: var(--pf-t--global--border--color--clicked);
38
+
39
+ // * Menu toggle expanded
40
+ --#{$menu-toggle}--expanded--Color: var(--pf-t--global--text--color--regular);
41
+ --#{$menu-toggle}--expanded--BackgroundColor: var(--pf-t--global--background--color--control--default);
42
+ --#{$menu-toggle}--expanded--BorderWidth: var(--pf-t--global--border--width--button--clicked);
43
+ --#{$menu-toggle}--expanded--BorderColor: var(--pf-t--global--border--color--clicked);
44
+ --#{$menu-toggle}--expanded__toggle-icon--Color: var(--pf-t--global--icon--color--regular);
45
+
46
+ // * Menu toggle disabled
47
+ --#{$menu-toggle}--disabled--Color: var(--pf-t--global--text--color--on-disabled);
48
+ --#{$menu-toggle}--disabled--BackgroundColor: var(--pf-t--global--background--color--disabled--default);
49
+
50
+ // TODO: add pf-m-button modifier here
51
+ // * Menu toggle button
52
+ --#{$menu-toggle}--m-button--PaddingLeft: var(--pf-t--global--spacer--md);
53
+ --#{$menu-toggle}--m-button--PaddingRight: var(--pf-t--global--spacer--md);
54
+ --#{$menu-toggle}--m-button--BorderRadius: var(--pf-t--global--border--radius--pill);
55
+
56
+ // TODO: add pf-m-button modifier here
57
+ // * Menu toggle control
58
+ --#{$menu-toggle}--m-control--PaddingLeft: var(--pf-t--global--spacer--sm);
59
+ --#{$menu-toggle}--m-control--PaddingRight: var(--pf-t--global--spacer--sm);
60
+ --#{$menu-toggle}--m-control--BorderRadius: var(--pf-t--global--border--radius--pill);
61
+
62
+ // TODO: add pf-m-button modifier here
63
+ // * Menu toggle action
64
+ --#{$menu-toggle}--m-action--PaddingLeft: var(--pf-t--global--spacer--lg);
65
+ --#{$menu-toggle}--m-action--PaddingRight: var(--pf-t--global--spacer--lg);
66
+ --#{$menu-toggle}--m-action--BorderRadius: var(--pf-t--global--border--radius--pill);
67
+
68
+ // * Menu toggle primary
69
+ --#{$menu-toggle}--m-primary--PaddingLeft: var(--#{$menu-toggle}--m-button--PaddingLeft);
70
+ --#{$menu-toggle}--m-primary--PaddingRight: var(--#{$menu-toggle}--m-button--PaddingRight);
71
+ --#{$menu-toggle}--m-primary--Color: var(--pf-t--global--text--color--on-brand--default);
72
+ --#{$menu-toggle}--m-primary--BackgroundColor: var(--pf-t--global--color--brand--default);
73
+ --#{$menu-toggle}--m-primary--BorderRadius: var(--#{$menu-toggle}--m-button--BorderRadius);
74
+ --#{$menu-toggle}--m-primary--BorderColor: transparent;
75
+ --#{$menu-toggle}--m-primary--hover--Color: var(--pf-t--global--text--color--on-brand--hover);
76
+ --#{$menu-toggle}--m-primary--hover--BackgroundColor: var(--pf-t--global--color--brand--hover);
77
+ --#{$menu-toggle}--m-primary--hover--BorderColor: transparent;
78
+ --#{$menu-toggle}--m-primary--active--Color: var(--pf-t--global--text--color--on-brand--clicked);
79
+ --#{$menu-toggle}--m-primary--active--BackgroundColor: var(--pf-t--global--color--brand--clicked);
80
+ --#{$menu-toggle}--m-primary--active--BorderColor: transparent;
81
+ --#{$menu-toggle}--m-primary--expanded--Color: var(--pf-t--global--text--color--on-brand--clicked);
82
+ --#{$menu-toggle}--m-primary--expanded--BackgroundColor: var(--pf-t--global--color--brand--clicked);
83
+ --#{$menu-toggle}--m-primary--expanded--BorderColor: transparent;
84
+ --#{$menu-toggle}--m-primary__toggle-icon--Color: var(--pf-t--global--icon--color--on-brand--default);
85
+ --#{$menu-toggle}--m-primary--hover__toggle-icon--Color: var(--pf-t--global--icon--color--on-brand--hover);
86
+ --#{$menu-toggle}--m-primary--expanded__toggle-icon--Color: var(--pf-t--global--icon--color--on-brand--clicked);
87
+
88
+
89
+ // * Menu toggle secondary
90
+ --#{$menu-toggle}--m-secondary--PaddingLeft: var(--#{$menu-toggle}--m-button--PaddingLeft);
91
+ --#{$menu-toggle}--m-secondary--PaddingRight: var(--#{$menu-toggle}--m-button--PaddingRight);
92
+ --#{$menu-toggle}--m-secondary--Color: var(--pf-t--global--text--color--brand--default);
93
+ --#{$menu-toggle}--m-secondary--BorderColor: var(--pf-t--global--border--color--brand--default);
94
+ --#{$menu-toggle}--m-secondary--BorderRadius: var(--#{$menu-toggle}--m-button--BorderRadius);
95
+ --#{$menu-toggle}--m-secondary--hover--Color: var(--pf-t--global--text--color--brand--hover);
96
+ --#{$menu-toggle}--m-secondary--hover--BorderWidth: var(--pf-t--global--border--width--button--hover);
97
+ --#{$menu-toggle}--m-secondary--hover--BorderColor: var(--pf-t--global--border--color--brand--hover);
98
+ --#{$menu-toggle}--m-secondary--active--Color: var(--pf-t--global--text--color--brand--clicked);
99
+ --#{$menu-toggle}--m-secondary--active--BorderWidth: var(--pf-t--global--border--width--button--clicked);
100
+ --#{$menu-toggle}--m-secondary--active--BorderColor: var(--pf-t--global--border--color--brand--clicked);
101
+ --#{$menu-toggle}--m-secondary--expanded--Color: var(--pf-t--global--text--color--brand--clicked);
102
+ --#{$menu-toggle}--m-secondary--expanded--BorderWidth: var(--pf-t--global--border--width--button--clicked);
103
+ --#{$menu-toggle}--m-secondary--expanded--BorderColor: var(--pf-t--global--border--color--brand--clicked);
104
+ --#{$menu-toggle}--m-secondary__toggle-icon--Color: var(--pf-t--global--icon--color--brand--default);
105
+ --#{$menu-toggle}--m-secondary--hover__toggle-icon--Color: var(--pf-t--global--icon--color--brand--clicked);
106
+ --#{$menu-toggle}--m-secondary--expanded__toggle-icon--Color: var(--pf-t--global--icon--color--brand--clicked);
90
107
 
91
108
  // Icon
92
109
  --#{$menu-toggle}__icon--MarginRight: var(--pf-t--global--spacer--sm);
@@ -94,80 +111,63 @@
94
111
  // Count
95
112
  --#{$menu-toggle}__count--MarginLeft: var(--pf-t--global--spacer--sm);
96
113
 
97
- // Controls -- update element/vars to "control" in breaking change
98
- --#{$menu-toggle}__controls--PaddingLeft: var(--pf-t--global--spacer--sm);
99
- --#{$menu-toggle}__controls--MarginLeft: auto;
100
- --#{$menu-toggle}__controls--MarginRight: 0;
101
-
102
- // Toggle icon
103
- --#{$menu-toggle}__toggle-icon--MarginRight: var(--pf-t--global--spacer--sm);
104
- --#{$menu-toggle}--m-plain__toggle-icon--Color: var(--pf-t--global--icon--color--regular);
105
- --#{$menu-toggle}--m-plain--hover__toggle-icon--Color: var(--#{$pf-global}--Color--100);
106
- --#{$menu-toggle}--m-plain--active__toggle-icon--Color: var(--#{$pf-global}--Color--100);
107
- --#{$menu-toggle}--m-plain--focus__toggle-icon--Color: var(--#{$pf-global}--Color--100);
108
- --#{$menu-toggle}--m-plain--m-expanded__toggle-icon--Color: var(--#{$pf-global}--Color--100);
114
+ // Controls
115
+ --#{$menu-toggle}__controls--MinWidth: calc(var(--#{$menu-toggle}--FontSize) + var(--pf-t--global--spacer--sm) + var(--pf-t--global--spacer--sm));
109
116
 
110
117
  // Full height
111
- --#{$menu-toggle}--m-full-height--PaddingRight: var(--#{$pf-global}--spacer--lg);
112
- --#{$menu-toggle}--m-full-height--PaddingLeft: var(--#{$pf-global}--spacer--lg);
113
- --#{$menu-toggle}--m-full-height__toggle--after--BorderBottomWidth: var(--#{$pf-global}--BorderWidth--sm);
114
- --#{$menu-toggle}--m-full-height--m-expanded--after--BorderBottomWidth: var(--#{$pf-global}--BorderWidth--xl);
115
- --#{$menu-toggle}--m-full-height--hover--after--BorderBottomWidth: var(--#{$pf-global}--BorderWidth--xl);
116
- --#{$menu-toggle}--m-full-height--focus--after--BorderBottomWidth: var(--#{$pf-global}--BorderWidth--xl);
117
- --#{$menu-toggle}--m-full-height--active--after--BorderBottomWidth: var(--#{$pf-global}--BorderWidth--xl);
118
-
119
- // Split button
120
- --#{$menu-toggle}--m-split-button--BackgroundColor: var(--#{$pf-global}--BackgroundColor--100);
118
+ --#{$menu-toggle}--m-full-height--PaddingRight: var(--pf-t--global--spacer--lg);
119
+ --#{$menu-toggle}--m-full-height--PaddingLeft: var(--pf-t--global--spacer--lg);
121
120
 
122
121
  // Split button, child
123
- --#{$menu-toggle}--m-split-button--child--BackgroundColor: var(--#{$pf-global}--BackgroundColor--100);
124
- --#{$menu-toggle}--m-split-button--child--disabled--Color: var(--#{$pf-global}--disabled-color--100);
125
- --#{$menu-toggle}--m-split-button--child--disabled--BackgroundColor: var(--#{$pf-global}--disabled-color--300);
126
- --#{$menu-toggle}--m-split-button--first-child--PaddingRight: var(--pf-t--global--spacer--sm);
127
- --#{$menu-toggle}--m-split-button--last-child--PaddingLeft: 0;
122
+ --#{$menu-toggle}--m-split-button--child--disabled--Color: var(--pf-t--global--text--color--on-disabled);
123
+ --#{$menu-toggle}--m-split-button--child--disabled--BackgroundColor: var(--pf-t--global--background--color--disabled--default);
128
124
 
129
125
  // Split button, action
130
- --#{$menu-toggle}--m-split-button--m-action--child--BorderLeftWidth: var(--#{$pf-global}--BorderWidth--sm);
131
- --#{$menu-toggle}--m-split-button--m-action--child--BorderLeftColor: var(--#{$pf-global}--BorderColor--300);
132
- --#{$menu-toggle}--m-split-button--m-action--child--after--Left: 0;
133
- --#{$menu-toggle}--m-split-button--m-action--child--after--BorderBottomWidth: var(--#{$pf-global}--BorderWidth--sm);
134
- --#{$menu-toggle}--m-split-button--m-action--child--after--BorderBottomColor: var(--#{$pf-global}--BorderColor--200);
135
- --#{$menu-toggle}--m-split-button--m-action--child--hover--after--BorderBottomWidth: var(--#{$pf-global}--BorderWidth--sm);
136
- --#{$menu-toggle}--m-split-button--m-action--child--hover--after--BorderBottomColor: var(--#{$pf-global}--active-color--100);
137
- --#{$menu-toggle}--m-split-button--m-action--child--focus--after--BorderBottomWidth: var(--#{$pf-global}--BorderWidth--md);
138
- --#{$menu-toggle}--m-split-button--m-action--child--focus--after--BorderBottomColor: var(--#{$pf-global}--active-color--100);
139
- --#{$menu-toggle}--m-split-button--m-action--child--active--after--BorderBottomWidth: var(--#{$pf-global}--BorderWidth--md);
140
- --#{$menu-toggle}--m-split-button--m-action--child--active--after--BorderBottomColor: var(--#{$pf-global}--active-color--100);
141
- --#{$menu-toggle}--m-split-button--m-action--child--BorderRadius: var(--#{$pf-global}--BorderRadius--sm);
126
+ --#{$menu-toggle}--m-split-button--m-action--child--BorderLeftWidth: var(--pf-t--global--border--width--button--default);
127
+ --#{$menu-toggle}--m-split-button--m-action--child--BorderLeftColor: var(--pf-t--global--border--color--default);
128
+ --#{$menu-toggle}--m-split-button--m-action--child--BorderRadius: var(--#{$menu-toggle}--m-button--BorderRadius);
129
+ --#{$menu-toggle}--m-split-button--m-action--child--disabled--BorderLeftColor: var(--pf-t--global--icon--color--on-disabled);
142
130
 
143
131
  // Split button action, primary
144
- --#{$menu-toggle}--m-split-button--m-action--m-primary--child--BackgroundColor: var(--#{$pf-global}--primary-color--100);
145
- --#{$menu-toggle}--m-split-button--m-action--m-primary--child--hover--BackgroundColor: var(--#{$pf-global}--primary-color--200);
146
- --#{$menu-toggle}--m-split-button--m-action--m-primary--child--focus--BackgroundColor: var(--#{$pf-global}--primary-color--200);
147
- --#{$menu-toggle}--m-split-button--m-action--m-primary--child--active--BackgroundColor: var(--#{$pf-global}--primary-color--200);
148
- --#{$menu-toggle}--m-split-button--m-action--m-primary--child--BorderLeftColor: var(--#{$pf-global}--primary-color--200);
149
- --#{$menu-toggle}--m-split-button--m-action--m-primary--m-expanded--child--BackgroundColor: var(--#{$pf-global}--primary-color--200);
132
+ --#{$menu-toggle}--m-split-button--m-action--m-primary--child--BackgroundColor: var(--pf-t--global--color--brand--default);
133
+ --#{$menu-toggle}--m-split-button--m-action--m-primary--child--hover--BackgroundColor: var(--pf-t--global--color--brand--hover);
134
+ --#{$menu-toggle}--m-split-button--m-action--m-primary--child--active--BackgroundColor: var(--pf-t--global--color--brand--clicked);
135
+ --#{$menu-toggle}--m-split-button--m-action--m-primary--child--BorderLeftColor: var(--pf-t--global--border--color--default);
136
+ --#{$menu-toggle}--m-split-button--m-action--m-primary--expanded--child--BackgroundColor: var(--pf-t--global--color--brand--clicked);
150
137
 
151
138
  // Split button action, secondary
152
- --#{$menu-toggle}--m-split-button--m-action--m-secondary--child--BorderLeftColor: var(--#{$pf-global}--primary-color--100);
139
+ --#{$menu-toggle}--m-split-button--m-action--m-secondary--child--BorderLeftColor: var(--pf-t--global--color--brand--default);
153
140
 
154
141
  // Split button, controls, check
155
142
  --#{$menu-toggle}__button--BackgroundColor: transparent;
156
143
  --#{$menu-toggle}__button--AlignSelf: baseline;
157
144
  --#{$menu-toggle}__button--PaddingLeft: var(--pf-t--global--spacer--sm);
158
145
  --#{$menu-toggle}__button--PaddingRight: var(--pf-t--global--spacer--sm);
159
- --#{$menu-toggle}__button__controls--MarginRight: var(--pf-t--global--spacer--sm);
160
- --#{$menu-toggle}__button__controls--MarginLeft: var(--pf-t--global--spacer--sm);
146
+ --#{$menu-toggle}__button--MinWidth: calc(var(--#{$menu-toggle}--FontSize) * var(--#{$menu-toggle}--LineHeight) + var(--#{$menu-toggle}--PaddingTop) + var(--#{$menu-toggle}--PaddingBottom));
147
+
148
+ // Menu toggle plain
149
+ --#{$menu-toggle}--m-plain--Color: var(--pf-t--global--icon--color--regular);
150
+ --#{$menu-toggle}--m-plain--BackgroundColor: var(--pf-t--global--background--color--action--plain--default);
151
+ --#{$menu-toggle}--m-plain--BorderColor: transparent;
152
+ --#{$menu-toggle}--m-plain--MixBlendMode: var(--pf-t--global--background--color--action--plain--hover--blend);
153
+ --#{$menu-toggle}--m-plain--hover--BackgroundColor: var(--pf-t--global--background--color--action--plain--hover);
154
+ --#{$menu-toggle}--m-plain--active--BackgroundColor: var(--pf-t--global--background--color--action--plain--clicked);
155
+ --#{$menu-toggle}--m-plain--expanded--BackgroundColor: var(--pf-t--global--background--color--action--plain--clicked);
156
+ --#{$menu-toggle}--m-plain--disabled--Color: var(--pf-t--global--icon--color--on-disabled);
161
157
 
162
158
  // Typeahead
163
159
  --#{$menu-toggle}--m-typeahead__controls--MarginRight: var(--pf-t--global--spacer--sm);
164
160
  --#{$menu-toggle}--m-typeahead__controls--MarginLeft: var(--pf-t--global--spacer--sm);
165
161
  --#{$menu-toggle}--m-typeahead--c-text-input-group__utilities--c-button--PaddingRight: var(--pf-t--global--spacer--sm);
166
- --#{$menu-toggle}--m-typeahead__button--AlignSelf: center;
162
+ --#{$menu-toggle}--m-typeahead__button--AlignSelf: stretch;
163
+ }
167
164
 
165
+ .#{$menu-toggle} {
168
166
  position: relative;
169
167
  display: inline-flex;
170
168
  align-items: center;
169
+ justify-content: center;
170
+ min-width: var(--#{$menu-toggle}--MinWidth);
171
171
  max-width: 100%;
172
172
  padding-block-start: var(--#{$menu-toggle}--PaddingTop);
173
173
  padding-block-end: var(--#{$menu-toggle}--PaddingBottom);
@@ -191,321 +191,287 @@
191
191
  inset-block-end: 0;
192
192
  inset-inline-start: 0;
193
193
  inset-inline-end: 0;
194
+ z-index: var(--#{$menu-toggle}--border--ZIndex);
194
195
  pointer-events: none;
195
196
  content: "";
196
197
  border: var(--#{$menu-toggle}--BorderWidth) solid var(--#{$menu-toggle}--BorderColor);
197
198
  }
198
199
 
199
- &::after {
200
- border-block-end: var(--#{$menu-toggle}--after--BorderWidth) solid var(--#{$menu-toggle}--after--BorderColor);
201
- }
202
-
203
200
  &.pf-m-primary {
204
- --#{$menu-toggle}--BorderRadius: var(--#{$menu-toggle}--m-primary--BorderRadius);
201
+ // TODO: abstract padding updates to control/button variant
202
+ --#{$menu-toggle}--PaddingLeft: var(--#{$menu-toggle}--m-primary--PaddingLeft);
203
+ --#{$menu-toggle}--PaddingRight: var(--#{$menu-toggle}--m-primary--PaddingRight);
205
204
  --#{$menu-toggle}--Color: var(--#{$menu-toggle}--m-primary--Color);
206
205
  --#{$menu-toggle}--BackgroundColor: var(--#{$menu-toggle}--m-primary--BackgroundColor);
206
+ --#{$menu-toggle}--BorderRadius: var(--#{$menu-toggle}--m-primary--BorderRadius);
207
+ --#{$menu-toggle}--BorderColor: var(--#{$menu-toggle}--m-primary--BorderColor);
208
+ --#{$menu-toggle}--hover--Color: var(--#{$menu-toggle}--m-primary--hover--Color);
207
209
  --#{$menu-toggle}--hover--BackgroundColor: var(--#{$menu-toggle}--m-primary--hover--BackgroundColor);
208
- --#{$menu-toggle}--focus--BackgroundColor: var(--#{$menu-toggle}--m-primary--focus--BackgroundColor);
210
+ --#{$menu-toggle}--hover--BorderColor: var(--#{$menu-toggle}--m-primary--hover--BorderColor);
211
+ --#{$menu-toggle}--active--Color: var(--#{$menu-toggle}--m-primary--active--Color);
209
212
  --#{$menu-toggle}--active--BackgroundColor: var(--#{$menu-toggle}--m-primary--active--BackgroundColor);
210
- --#{$menu-toggle}--m-expanded--Color: var(--#{$menu-toggle}--m-primary--m-expanded--Color);
211
- --#{$menu-toggle}--m-expanded--BackgroundColor: var(--#{$menu-toggle}--m-primary--m-expanded--BackgroundColor);
212
-
213
- &,
214
- &::before {
215
- border-radius: var(--#{$menu-toggle}--m-primary--BorderRadius);
216
- }
213
+ --#{$menu-toggle}--active--BorderColor: var(--#{$menu-toggle}--m-primary--active--BorderColor);
214
+ --#{$menu-toggle}--expanded--Color: var(--#{$menu-toggle}--m-primary--expanded--Color);
215
+ --#{$menu-toggle}--expanded--BackgroundColor: var(--#{$menu-toggle}--m-primary--expanded--BackgroundColor);
216
+ --#{$menu-toggle}--expanded--BorderColor: var(--#{$menu-toggle}--m-primary--expanded--BorderColor);
217
+ --#{$menu-toggle}--hover__toggle-icon--Color: var(--#{$menu-toggle}--m-primary--hover__toggle-icon--Color);
218
+ --#{$menu-toggle}--expanded__toggle-icon--Color: var(--#{$menu-toggle}--m-primary--expanded__toggle-icon--Color);
217
219
  }
218
220
 
219
221
  &.pf-m-secondary {
222
+ // TODO: abstract padding updates to control/button variant
223
+ --#{$menu-toggle}--PaddingLeft: var(--#{$menu-toggle}--m-secondary--PaddingLeft);
224
+ --#{$menu-toggle}--PaddingRight: var(--#{$menu-toggle}--m-secondary--PaddingRight);
220
225
  --#{$menu-toggle}--Color: var(--#{$menu-toggle}--m-secondary--Color);
221
- --#{$menu-toggle}--m-expanded--Color: var(--#{$menu-toggle}--m-secondary--m-expanded--Color);
222
-
223
- &,
224
- &::before {
225
- border-radius: var(--#{$menu-toggle}--m-secondary--BorderRadius);
226
- }
226
+ --#{$menu-toggle}--BorderColor: var(--#{$menu-toggle}--m-secondary--BorderColor);
227
+ --#{$menu-toggle}--BorderRadius: var(--#{$menu-toggle}--m-secondary--BorderRadius);
228
+ --#{$menu-toggle}--hover--Color: var(--#{$menu-toggle}--m-secondary--hover--Color);
229
+ --#{$menu-toggle}--hover--BorderWidth: var(--#{$menu-toggle}--m-secondary--hover--BorderWidth);
230
+ --#{$menu-toggle}--hover--BorderColor: var(--#{$menu-toggle}--m-secondary--hover--BorderColor);
231
+ --#{$menu-toggle}--active--Color: var(--#{$menu-toggle}--m-secondary--active--Color);
232
+ --#{$menu-toggle}--active--BorderWidth: var(--#{$menu-toggle}--m-secondary--active--BorderWidth);
233
+ --#{$menu-toggle}--active--BorderColor: var(--#{$menu-toggle}--m-secondary--active--BorderColor);
234
+ --#{$menu-toggle}--expanded--Color: var(--#{$menu-toggle}--m-secondary--expanded--Color);
235
+ --#{$menu-toggle}--expanded--BorderWidth: var(--#{$menu-toggle}--m-secondary--expanded--BorderWidth);
236
+ --#{$menu-toggle}--hover__toggle-icon--Color: var(--#{$menu-toggle}--m-secondary--hover__toggle-icon--Color);
237
+ --#{$menu-toggle}--expanded__toggle-icon--Color: var(--#{$menu-toggle}--m-secondary--expanded__toggle-icon--Color);
238
+ }
227
239
 
228
- &::before {
229
- border-color: var(--#{$menu-toggle}--m-secondary--before--BorderColor);
230
- border-width: var(--#{$menu-toggle}--m-secondary--before--BorderWidth);
231
- }
240
+ &.pf-m-full-height {
241
+ --#{$menu-toggle}--PaddingRight: var(--#{$menu-toggle}--m-full-height--PaddingRight);
242
+ --#{$menu-toggle}--PaddingLeft: var(--#{$menu-toggle}--m-full-height--PaddingLeft);
243
+ --#{$menu-toggle}--BorderTopWidth: var(--#{$menu-toggle}--m-full-height__toggle--BorderTopWidth);
232
244
 
233
- &::after {
234
- border: 0;
235
- }
245
+ align-items: center;
246
+ height: 100%;
247
+ }
236
248
 
237
- &:hover {
238
- --#{$menu-toggle}--m-secondary--before--BorderColor: var(--#{$menu-toggle}--m-secondary--hover--before--BorderColor);
239
- --#{$menu-toggle}--m-secondary--before--BorderWidth: var(--#{$menu-toggle}--m-secondary--hover--before--BorderWidth);
240
- }
249
+ &.pf-m-full-width {
250
+ width: 100%;
251
+ }
241
252
 
242
- &:focus {
243
- --#{$menu-toggle}--m-secondary--before--BorderColor: var(--#{$menu-toggle}--m-secondary--focus--before--BorderColor);
244
- --#{$menu-toggle}--m-secondary--before--BorderWidth: var(--#{$menu-toggle}--m-secondary--focus--before--BorderWidth);
245
- }
253
+ &.pf-m-plain {
254
+ --#{$menu-toggle}--Color: var(--#{$menu-toggle}--m-plain--Color);
255
+ --#{$menu-toggle}--BackgroundColor: var(--#{$menu-toggle}--m-plain--BackgroundColor);
256
+ --#{$menu-toggle}--BorderColor: var(--#{$menu-toggle}--m-plain--BorderColor);
257
+ --#{$menu-toggle}--BackgroundColor: var(--#{$menu-toggle}--m-plain--BackgroundColor);
258
+ --#{$menu-toggle}--hover--BackgroundColor: var(--#{$menu-toggle}--m-plain--hover--BackgroundColor);
259
+ --#{$menu-toggle}--active--BackgroundColor: var(--#{$menu-toggle}--m-plain--active--BackgroundColor);
260
+ --#{$menu-toggle}--expanded--BackgroundColor: var(--#{$menu-toggle}--m-plain--expanded--BackgroundColor);
261
+ --#{$menu-toggle}--disabled--Color: var(--#{$menu-toggle}--m-plain--disabled--Color);
246
262
 
247
- &:active {
248
- --#{$menu-toggle}--m-secondary--before--BorderColor: var(--#{$menu-toggle}--m-secondary--active--before--BorderColor);
249
- --#{$menu-toggle}--m-secondary--before--BorderWidth: var(--#{$menu-toggle}--m-secondary--active--before--BorderWidth);
250
- }
263
+ mix-blend-mode: var(--#{$menu-toggle}--m-plain--MixBlendMode);
251
264
 
252
- &.pf-m-expanded {
253
- --#{$menu-toggle}--m-secondary--before--BorderColor: var(--#{$menu-toggle}--m-expanded__toggle--m-secondary--before--BorderColor);
254
- --#{$menu-toggle}--m-secondary--before--BorderWidth: var(--#{$menu-toggle}--m-expanded__toggle--m-secondary--before--BorderWidth);
265
+ &::before {
266
+ border: none;
255
267
  }
256
268
  }
257
269
 
258
- &.pf-m-plain:not(.pf-m-text) {
259
- --#{$menu-toggle}--PaddingRight: var(--#{$menu-toggle}--m-plain--PaddingRight);
260
- --#{$menu-toggle}--PaddingLeft: var(--#{$menu-toggle}--m-plain--PaddingLeft);
261
- --#{$menu-toggle}--disabled--BackgroundColor: transparent;
262
-
263
- display: inline-block;
270
+ // TODO: wrap all toggle icons with .menu-toggle__button to eliminate the need for this
271
+ &:has(.#{$button}:only-child) {
272
+ padding: revert;
264
273
  }
265
274
 
266
- &.pf-m-full-height {
267
- --#{$menu-toggle}--PaddingRight: var(--#{$menu-toggle}--m-full-height--PaddingRight);
268
- --#{$menu-toggle}--PaddingLeft: var(--#{$menu-toggle}--m-full-height--PaddingLeft);
269
- --#{$menu-toggle}--before--BorderTopWidth: var(--#{$menu-toggle}--m-full-height__toggle--before--BorderTopWidth);
270
- --#{$menu-toggle}--after--BorderBottomWidth: var(--#{$menu-toggle}--m-full-height__toggle--after--BorderBottomWidth);
271
- --#{$menu-toggle}--m-expanded--after--BorderBottomWidth: var(--#{$menu-toggle}--m-full-height--m-expanded--after--BorderBottomWidth);
272
- --#{$menu-toggle}--hover--after--BorderBottomWidth: var(--#{$menu-toggle}--m-full-height--hover--after--BorderBottomWidth);
273
- --#{$menu-toggle}--focus--after--BorderBottomWidth: var(--#{$menu-toggle}--m-full-height--focus--after--BorderBottomWidth);
274
- --#{$menu-toggle}--active--after--BorderBottomWidth: var(--#{$menu-toggle}--m-full-height--active--after--BorderBottomWidth);
275
+ // TODO: wrap all toggle icons with .menu-toggle__button to eliminate the need for this
276
+ // TODO: update menu toggle to consume .pf-v5-c-button
277
+ &:is(button),
278
+ .#{$button} {
279
+ background-color: var(--#{$menu-toggle}--BackgroundColor);
275
280
 
276
- align-items: center;
277
- height: 100%;
281
+ &:has(> i:only-child) {
282
+ aspect-ratio: 1 / 1;
283
+ }
278
284
  }
279
285
 
280
- &:hover {
281
- --#{$menu-toggle}--BorderColor: var(--#{$menu-toggle}--hover--BorderColor);
286
+ &:is(:hover, :focus) {
287
+ --#{$menu-toggle}--Color: var(--#{$menu-toggle}--hover--Color);
288
+ --#{$menu-toggle}--BackgroundColor: var(--#{$menu-toggle}--hover--BackgroundColor);
282
289
  --#{$menu-toggle}--BorderWidth: var(--#{$menu-toggle}--hover--BorderWidth);
283
- }
290
+ --#{$menu-toggle}--BorderColor: var(--#{$menu-toggle}--hover--BorderColor);
291
+ --#{$menu-toggle}__toggle-icon--Color: var(--#{$menu-toggle}--hover__toggle-icon--Color);
292
+ }
284
293
 
285
- &:focus,
286
- &:active {
287
- --#{$menu-toggle}--BorderColor: var(--#{$menu-toggle}--active--BorderColor);
288
- --#{$menu-toggle}--BorderWidth: var(--#{$menu-toggle}--active--BorderWidth);
289
- }
294
+ &:is(.pf-m-expanded, [aria-expanded="true"]) {
295
+ --#{$menu-toggle}--Color: var(--#{$menu-toggle}--expanded--Color);
296
+ --#{$menu-toggle}--BackgroundColor: var(--#{$menu-toggle}--expanded--BackgroundColor);
297
+ --#{$menu-toggle}--BorderWidth: var(--#{$menu-toggle}--expanded--BorderWidth);
298
+ --#{$menu-toggle}--BorderColor: var(--#{$menu-toggle}--expanded--BorderColor);
299
+ --#{$menu-toggle}__toggle-icon--Color: var(--#{$menu-toggle}--expanded__toggle-icon--Color);
300
+ }
290
301
 
291
- &.pf-m-expanded {
292
- --#{$menu-toggle}--Color: var(--#{$menu-toggle}--m-expanded--Color);
293
- --#{$menu-toggle}--BackgroundColor: var(--#{$menu-toggle}--m-expanded--BackgroundColor);
294
- --#{$menu-toggle}--after--BorderBottomWidth: var(--#{$menu-toggle}--m-expanded--after--BorderBottomWidth);
295
- --#{$menu-toggle}--after--BorderBottomColor: var(--#{$menu-toggle}--m-expanded--after--BorderBottomColor);
296
- --#{$menu-toggle}--m-plain__toggle-icon--Color: var(--#{$menu-toggle}--m-plain--m-expanded__toggle-icon--Color);
297
- --#{$menu-toggle}--m-plain--Color: var(--#{$menu-toggle}--m-plain--m-expanded--Color);
302
+ &:is(:active, .pf-m-active) {
303
+ --#{$menu-toggle}--Color: var(--#{$menu-toggle}--active--Color);
304
+ --#{$menu-toggle}--BackgroundColor: var(--#{$menu-toggle}--active--BackgroundColor);
305
+ --#{$menu-toggle}--BorderWidth: var(--#{$menu-toggle}--active--BorderWidth);
306
+ --#{$menu-toggle}--BorderColor: var(--#{$menu-toggle}--active--BorderColor);
307
+ --#{$menu-toggle}__toggle-icon--Color: var(--#{$menu-toggle}--active__toggle-icon--Color);
298
308
  }
299
309
 
300
- &:disabled,
301
- &.pf-m-disabled {
310
+ &:is(:disabled, .pf-m-disabled) {
302
311
  --#{$menu-toggle}--Color: var(--#{$menu-toggle}--disabled--Color);
303
312
  --#{$menu-toggle}--BackgroundColor: var(--#{$menu-toggle}--disabled--BackgroundColor);
304
- --#{$menu-toggle}--m-plain--Color: var(--#{$menu-toggle}--m-plain--disabled--Color);
305
313
 
306
- pointer-events: none;
314
+ &,
315
+ .#{$button} {
316
+ pointer-events: none;
317
+ }
307
318
  }
308
319
 
309
320
  &.pf-m-primary,
310
- &:disabled {
311
- &::before,
312
- &::after {
321
+ &:is(:disabled, .pf-m-disabled) {
322
+ &::before {
313
323
  border: 0;
314
324
  }
315
325
  }
316
326
 
317
- &.pf-m-typeahead {
318
- --#{$menu-toggle}__button__controls--MarginRight: var(--#{$menu-toggle}--m-typeahead__controls--MarginRight);
319
- --#{$menu-toggle}__button__controls--MarginLeft: var(--#{$menu-toggle}--m-typeahead__controls--MarginLeft);
320
- --#{$menu-toggle}__button--AlignSelf: var(--#{$menu-toggle}--m-typeahead__button--AlignSelf);
327
+ &:has(.#{$button}) {
328
+ background-color: transparent;
329
+ }
330
+ }
321
331
 
322
- align-items: stretch;
323
- padding: 0;
332
+ // - Menu toggle split button
333
+ .#{$menu-toggle}.pf-m-split-button {
334
+ padding: 0; // pass padding to children
335
+
336
+ > * {
337
+ position: relative;
338
+ padding-block-start: var(--#{$menu-toggle}--PaddingTop);
339
+ padding-block-end: var(--#{$menu-toggle}--PaddingBottom);
340
+ padding-inline-start: var(--#{$menu-toggle}--PaddingLeft);
341
+ padding-inline-end: var(--#{$menu-toggle}--PaddingRight);
342
+ }
324
343
 
325
- .#{$text-input-group} {
326
- --#{$text-input-group}__utilities--c-button--PaddingRight: var(--#{$menu-toggle}--m-typeahead--c-text-input-group__utilities--c-button--PaddingRight);
327
- --#{$text-input-group}__utilities--MarginRight: 0;
344
+ > :first-child {
345
+ border-start-start-radius: var(--#{$menu-toggle}--BorderRadius);
346
+ border-end-start-radius: var(--#{$menu-toggle}--BorderRadius);
347
+ }
328
348
 
329
- flex: 1;
330
- }
349
+ > :last-child {
350
+ border-start-end-radius: var(--#{$menu-toggle}--BorderRadius);
351
+ border-end-end-radius: var(--#{$menu-toggle}--BorderRadius);
331
352
  }
332
353
 
333
- &.pf-m-split-button {
334
- padding: 0; // pass padding to children
354
+ > .#{$check} {
355
+ --#{$menu-toggle}--PaddingRight: 0;
356
+ --#{$check}__label--Color: currentcolor;
357
+ --#{$check}__label--disabled--Color: currentcolor;
335
358
 
336
- > * {
337
- position: relative;
338
- padding-block-start: var(--#{$menu-toggle}--PaddingTop);
339
- padding-block-end: var(--#{$menu-toggle}--PaddingBottom);
340
- padding-inline-start: var(--#{$menu-toggle}--PaddingLeft);
341
- padding-inline-end: var(--#{$menu-toggle}--PaddingRight);
359
+ align-items: center;
360
+ align-self: stretch;
342
361
 
343
- &:first-child {
344
- padding-inline-end: var(--#{$menu-toggle}--m-split-button--first-child--PaddingRight);
345
- }
346
- }
362
+ .#{$check}__input {
363
+ --#{$check}__input--TranslateY: 0;
347
364
 
348
- &:where(:not(.pf-m-action)) {
349
- > :last-child {
350
- padding-inline-start: var(--#{$menu-toggle}--m-split-button--last-child--PaddingLeft);
351
- }
365
+ align-self: center;
352
366
  }
367
+ }
353
368
 
354
- > .#{$check} {
355
- --#{$menu-toggle}--PaddingRight: 0;
356
- --#{$check}__label--Color: currentcolor;
357
- --#{$check}__label--disabled--Color: currentcolor;
369
+ &.pf-m-plain {
370
+ --#{$menu-toggle}--BorderColor: transparent;
371
+ }
372
+ }
358
373
 
359
- align-items: center;
360
- align-self: stretch;
374
+ // - Menu toggle split button action
375
+ .#{$menu-toggle}.pf-m-split-button.pf-m-action {
376
+ --#{$menu-toggle}--ColumnGap: 0;
377
+ --#{$menu-toggle}--m-split-button--m-action--child--BorderLeftColor: var(--#{$menu-toggle}--BorderColor);
361
378
 
362
- .#{$check}__input {
363
- --#{$check}__input--TranslateY: 0;
379
+ // all subsequent buttons
380
+ > :not(:first-child) {
381
+ border-inline-start: var(--#{$menu-toggle}--m-split-button--m-action--child--BorderLeftWidth) solid var(--#{$menu-toggle}--m-split-button--m-action--child--BorderLeftColor);
382
+ }
364
383
 
365
- align-self: center;
366
- }
367
- }
384
+ > :has(.#{$menu-toggle}__controls) {
385
+ padding-inline-end: 0;
386
+ }
368
387
 
369
- // Split button, active
370
- &.pf-m-action {
371
- // stylelint-disable max-nesting-depth
372
- &:where(:not(.pf-m-primary, .pf-m-secondary, .pf-m-disabled)) > * {
373
- &::after {
374
- position: absolute;
375
- inset-block-start: 0;
376
- inset-block-end: 0;
377
- inset-inline-start: var(--#{$menu-toggle}--m-split-button--m-action--child--after--Left);
378
- inset-inline-end: 0;
379
- pointer-events: none;
380
- content: "";
381
- border-block-end: var(--#{$menu-toggle}--m-split-button--m-action--child--after--BorderBottomWidth) solid var(--#{$menu-toggle}--m-split-button--m-action--child--after--BorderBottomColor);
382
- }
383
-
384
- &:hover {
385
- --#{$menu-toggle}--m-split-button--m-action--child--after--BorderBottomWidth: var(--#{$menu-toggle}--m-split-button--m-action--child--hover--after--BorderBottomWidth);
386
- --#{$menu-toggle}--m-split-button--m-action--child--after--BorderBottomColor: var(--#{$menu-toggle}--m-split-button--m-action--child--hover--after--BorderBottomColor);
387
- }
388
-
389
- &:focus {
390
- --#{$menu-toggle}--m-split-button--m-action--child--after--BorderBottomWidth: var(--#{$menu-toggle}--m-split-button--m-action--child--focus--after--BorderBottomWidth);
391
- --#{$menu-toggle}--m-split-button--m-action--child--after--BorderBottomColor: var(--#{$menu-toggle}--m-split-button--m-action--child--focus--after--BorderBottomColor);
392
- }
393
-
394
- &:active,
395
- &.pf-m-active {
396
- --#{$menu-toggle}--m-split-button--m-action--child--after--BorderBottomWidth: var(--#{$menu-toggle}--m-split-button--m-action--child--active--after--BorderBottomWidth);
397
- --#{$menu-toggle}--m-split-button--m-action--child--after--BorderBottomColor: var(--#{$menu-toggle}--m-split-button--m-action--child--active--after--BorderBottomColor);
398
- }
399
- }
400
- // stylelint-enable
401
-
402
- // Split button, primary
403
- &.pf-m-primary {
404
- --#{$menu-toggle}--m-split-button--m-action--child--BorderLeftColor: var(--#{$menu-toggle}--m-split-button--m-action--m-primary--child--BorderLeftColor);
405
- --#{$menu-toggle}--m-split-button--m-action--child--after--BorderBottomWidth: 0;
406
-
407
- // stylelint-disable max-nesting-depth, selector-max-class, selector-not-notation
408
- // update to single :not() in breaking change
409
- > :where(:not(.pf-m-disabled):not([disabled])) {
410
- background-color: var(--#{$menu-toggle}--m-split-button--m-action--m-primary--child--BackgroundColor);
411
-
412
- &:hover {
413
- --#{$menu-toggle}--m-split-button--m-action--m-primary--child--BackgroundColor: var(--#{$menu-toggle}--m-split-button--m-action--m-primary--child--hover--BackgroundColor);
414
- }
415
-
416
- &:focus {
417
- --#{$menu-toggle}--m-split-button--m-action--m-primary--child--BackgroundColor: var(--#{$menu-toggle}--m-split-button--m-action--m-primary--child--focus--BackgroundColor);
418
- }
419
-
420
- &:active,
421
- &.pf-m-active {
422
- --#{$menu-toggle}--m-split-button--m-action--m-primary--child--BackgroundColor: var(--#{$menu-toggle}--m-split-button--m-action--m-primary--child--active--BackgroundColor);
423
- }
424
- }
425
-
426
- &.pf-m-expanded {
427
- --#{$menu-toggle}--m-split-button--m-action--m-primary--child--BackgroundColor: var(--#{$menu-toggle}--m-split-button--m-action--m-primary--m-expanded--child--BackgroundColor);
428
- }
429
- // stylelint-enable
388
+ // Split button, primary
389
+ &.pf-m-primary {
390
+ --#{$menu-toggle}--m-split-button--m-action--child--BorderLeftColor: var(--#{$menu-toggle}--m-split-button--m-action--m-primary--child--BorderLeftColor);
391
+
392
+ // stylelint-disable max-nesting-depth, selector-max-class, selector-not-notation
393
+ // update to single :not() in breaking change
394
+ > :where(:not(.pf-m-disabled):not([disabled])) {
395
+ background-color: var(--#{$menu-toggle}--m-split-button--m-action--m-primary--child--BackgroundColor);
396
+
397
+ &:is(:hover, :focus) {
398
+ --#{$menu-toggle}--m-split-button--m-action--m-primary--child--BackgroundColor: var(--#{$menu-toggle}--m-split-button--m-action--m-primary--child--hover--BackgroundColor);
430
399
  }
431
400
 
432
- // Split button, secondary
433
- &.pf-m-secondary {
434
- --#{$menu-toggle}--m-split-button--m-action--child--BorderLeftColor: var(--#{$menu-toggle}--m-split-button--m-action--m-secondary--child--BorderLeftColor);
401
+ &:is(:active, .pf-m-active) {
402
+ --#{$menu-toggle}--m-split-button--m-action--m-primary--child--BackgroundColor: var(--#{$menu-toggle}--m-split-button--m-action--m-primary--child--active--BackgroundColor);
435
403
  }
404
+ }
436
405
 
437
- &.pf-m-primary,
438
- &.pf-m-secondary {
439
- --#{$menu-toggle}--m-split-button--m-action--child--after--BorderBottomWidth: 0;
406
+ &.pf-m-expanded {
407
+ --#{$menu-toggle}--m-split-button--m-action--m-primary--child--BackgroundColor: var(--#{$menu-toggle}--m-split-button--m-action--m-primary--expanded--child--BackgroundColor);
408
+ }
409
+ // stylelint-enable
410
+ }
440
411
 
441
- // stylelint-disable max-nesting-depth
442
- > :first-child {
443
- border-start-start-radius: var(--#{$menu-toggle}--m-split-button--m-action--child--BorderRadius);
444
- border-end-start-radius: var(--#{$menu-toggle}--m-split-button--m-action--child--BorderRadius);
445
- }
412
+ // Split button, secondary
413
+ &.pf-m-secondary {
414
+ --#{$menu-toggle}--m-split-button--m-action--child--BorderLeftColor: var(--#{$menu-toggle}--m-split-button--m-action--m-secondary--child--BorderLeftColor);
415
+ }
446
416
 
447
- > :last-child {
448
- border-start-end-radius: var(--#{$menu-toggle}--m-split-button--m-action--child--BorderRadius);
449
- border-end-end-radius: var(--#{$menu-toggle}--m-split-button--m-action--child--BorderRadius);
450
- }
417
+ // disable accent border
418
+ &:is(.pf-m-disabled, :disabled) {
419
+ --#{$menu-toggle}--m-split-button--m-action--child--BorderLeftColor: var(--#{$menu-toggle}--m-split-button--m-action--child--disabled--BorderLeftColor);
451
420
 
452
- // enable-disable
453
- }
421
+ &::before {
422
+ content: none;
423
+ }
424
+ }
454
425
 
455
- // all subsequent buttons
456
- > :not(:first-child) {
457
- --#{$menu-toggle}--m-split-button--m-action--child--after--Left: calc(var(--#{$menu-toggle}--m-split-button--m-action--child--BorderLeftWidth) * -1);
426
+ // disabled styles for children
427
+ > :is(.pf-m-disabled, :disabled) {
428
+ --#{$menu-toggle}--m-split-button--m-action--child--BorderLeftColor: var(--#{$menu-toggle}--m-split-button--m-action--child--disabled--BorderLeftColor);
458
429
 
459
- border-inline-start: var(--#{$menu-toggle}--m-split-button--m-action--child--BorderLeftWidth) solid var(--#{$menu-toggle}--m-split-button--m-action--child--BorderLeftColor);
460
- }
430
+ color: var(--#{$menu-toggle}--m-split-button--child--disabled--Color);
431
+ background-color: var(--#{$menu-toggle}--m-split-button--child--disabled--BackgroundColor);
432
+ }
433
+ }
461
434
 
462
- &:not(.pf-m-expanded) {
463
- --#{$menu-toggle}--after--BorderBottomColor: transparent; // leave bottom border unchanged for expanded state
464
- }
465
- }
435
+ // - Menu toggle typeahead
436
+ .#{$menu-toggle}.pf-m-typeahead {
437
+ --#{$menu-toggle}__button--AlignSelf: var(--#{$menu-toggle}--m-typeahead__button--AlignSelf);
466
438
 
467
- // disable accent border
468
- &.pf-m-disabled,
469
- &:disabled {
470
- --#{$menu-toggle}--m-split-button--m-action--child--BorderLeftColor: transparent;
439
+ align-items: stretch;
440
+ padding: 0;
471
441
 
472
- &::before,
473
- &::after {
474
- content: none;
475
- }
476
- }
442
+ .#{$menu-toggle}__button {
443
+ --#{$menu-toggle}__button--PaddingRight: 0;
444
+ }
477
445
 
478
- // disabled styles for children
479
- > .pf-m-disabled,
480
- > :disabled {
481
- --#{$menu-toggle}--m-split-button--m-action--child--BorderLeftColor: transparent;
446
+ .#{$menu-toggle}__controls {
447
+ --#{$menu-toggle}--ColumnGap: 0;
448
+ --#{$menu-toggle}__button--PaddingRight: 0;
482
449
 
483
- color: var(--#{$menu-toggle}--m-split-button--child--disabled--Color);
484
- background-color: var(--#{$menu-toggle}--m-split-button--child--disabled--BackgroundColor);
485
- }
450
+ display: flex;
451
+ align-items: stretch;
486
452
  }
487
453
 
488
- &.pf-m-typeahead,
489
- &.pf-m-split-button {
490
- --#{$menu-toggle}__toggle-icon--MarginRight: 0;
491
- }
454
+ .#{$text-input-group} {
455
+ --#{$text-input-group}__utilities--c-button--PaddingRight: var(--#{$menu-toggle}--m-typeahead--c-text-input-group__utilities--c-button--PaddingRight);
456
+ --#{$text-input-group}__utilities--MarginRight: 0;
492
457
 
493
- &.pf-m-full-width {
494
- width: 100%;
458
+ flex: 1;
495
459
  }
496
460
  }
497
461
 
462
+ // - Menu toggle button
498
463
  .#{$menu-toggle}__button {
499
- --#{$menu-toggle}__controls--PaddingLeft: 0;
500
- --#{$menu-toggle}__controls--MarginRight: var(--#{$menu-toggle}__button__controls--MarginRight);
501
- --#{$menu-toggle}__controls--MarginLeft: var(--#{$menu-toggle}__button__controls--MarginLeft);
502
-
503
464
  align-self: var(--#{$menu-toggle}__button--AlignSelf);
465
+ min-width: var(--#{$menu-toggle}__button--MinWidth);
504
466
  padding-inline-start: var(--#{$menu-toggle}__button--PaddingLeft);
505
467
  padding-inline-end: var(--#{$menu-toggle}__button--PaddingRight);
506
468
  color: inherit;
507
469
  background-color: var(--#{$menu-toggle}__button--BackgroundColor);
508
470
  border: 0;
471
+
472
+ &:has(.#{$menu-toggle}__controls) {
473
+ padding-inline-start: 0;
474
+ }
509
475
  }
510
476
 
511
477
  .#{$menu-toggle}__icon {
@@ -528,19 +494,13 @@
528
494
  }
529
495
 
530
496
  .#{$menu-toggle}__controls {
531
- padding-inline-start: var(--#{$menu-toggle}__controls--PaddingLeft);
532
- margin-inline-start: var(--#{$menu-toggle}__controls--MarginLeft);
533
- margin-inline-end: var(--#{$menu-toggle}__controls--MarginRight);
497
+ display: flex;
498
+ align-items: center;
499
+ justify-content: center;
500
+ min-width: var(--#{$menu-toggle}__controls--MinWidth);
501
+ margin-inline-start: var(--#{$menu-toggle}--ColumnGap);
534
502
  }
535
503
 
536
504
  .#{$menu-toggle}__toggle-icon {
537
- margin-inline-end: var(--#{$menu-toggle}__toggle-icon--MarginRight);
538
505
  color: var(--#{$menu-toggle}__toggle-icon--Color, inherit);
539
506
  }
540
-
541
- // stylelint-disable no-invalid-position-at-import-rule
542
- @import "themes/dark/menu-toggle";
543
-
544
- @include pf-v5-theme-dark {
545
- @include pf-v5-theme-dark-menu-toggle;
546
- }