@patternfly/patternfly 4.156.1 → 4.157.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.
@@ -48,6 +48,14 @@
48
48
  --pf-c-dropdown__toggle--m-split-button--m-action__toggle-button--MarginRight: calc(-1 * var(--pf-global--BorderWidth--sm));
49
49
  --pf-c-dropdown__toggle--m-split-button__toggle-check__input--TranslateY: -0.0625rem;
50
50
  --pf-c-dropdown__toggle--m-split-button__toggle-text--MarginLeft: var(--pf-global--spacer--sm);
51
+ --pf-c-dropdown__toggle--m-split-button--m-primary--child--BorderRadius: var(--pf-global--BorderRadius--sm);
52
+ --pf-c-dropdown__toggle--m-split-button--m-primary--child--BackgroundColor: var(--pf-global--primary-color--100);
53
+ --pf-c-dropdown__toggle--m-split-button--m-primary--child--hover--BackgroundColor: var(--pf-global--primary-color--200);
54
+ --pf-c-dropdown__toggle--m-split-button--m-primary--child--focus--BackgroundColor: var(--pf-global--primary-color--200);
55
+ --pf-c-dropdown__toggle--m-split-button--m-primary--child--active--BackgroundColor: var(--pf-global--primary-color--200);
56
+ --pf-c-dropdown__toggle--m-split-button--m-primary--child--m-expanded--BackgroundColor: var(--pf-global--primary-color--200);
57
+ --pf-c-dropdown__toggle--m-split-button--m-primary--m-action--child--BorderLeftColor: var(--pf-global--primary-color--200);
58
+ --pf-c-dropdown__toggle--m-split-button--m-primary--m-action--child--BorderLeftWidth: var(--pf-global--BorderWidth--sm);
51
59
  --pf-c-dropdown__toggle-icon--LineHeight: var(--pf-global--LineHeight--md);
52
60
  --pf-c-dropdown__toggle-icon--MarginRight: var(--pf-global--spacer--sm);
53
61
  --pf-c-dropdown__toggle-icon--MarginLeft: var(--pf-global--spacer--md);
@@ -140,6 +148,9 @@
140
148
  .pf-c-dropdown.pf-m-full-height:hover .pf-c-dropdown__toggle::before {
141
149
  border-bottom-width: var(--pf-c-dropdown--m-full-height__toggle--hover--before--BorderBottomWidth);
142
150
  }
151
+ .pf-c-dropdown.pf-m-expanded {
152
+ --pf-c-dropdown__toggle--m-split-button--m-primary--child--BackgroundColor: var(--pf-c-dropdown__toggle--m-split-button--m-primary--child--m-expanded--BackgroundColor);
153
+ }
143
154
 
144
155
  .pf-c-dropdown__toggle {
145
156
  position: relative;
@@ -205,6 +216,9 @@
205
216
  .pf-c-dropdown__toggle.pf-m-split-button.pf-m-action .pf-c-dropdown__toggle-button:last-child {
206
217
  --pf-c-dropdown__toggle--m-split-button--m-action__toggle-button--MarginRight: 0;
207
218
  }
219
+ .pf-c-dropdown__toggle.pf-m-split-button.pf-m-action.pf-m-primary > :not(:first-child) {
220
+ border-left: var(--pf-c-dropdown__toggle--m-split-button--m-primary--m-action--child--BorderLeftWidth) solid var(--pf-c-dropdown__toggle--m-split-button--m-primary--m-action--child--BorderLeftColor);
221
+ }
208
222
  .pf-c-dropdown__toggle.pf-m-split-button .pf-c-dropdown__toggle-check {
209
223
  display: flex;
210
224
  align-items: center;
@@ -222,6 +236,31 @@
222
236
  .pf-c-dropdown__toggle.pf-m-split-button .pf-c-dropdown__toggle-text {
223
237
  margin-left: var(--pf-c-dropdown__toggle--m-split-button__toggle-text--MarginLeft);
224
238
  }
239
+ .pf-c-dropdown__toggle.pf-m-primary.pf-m-split-button:not(.pf-m-disabled) {
240
+ --pf-c-dropdown__toggle--before--BorderWidth: 0;
241
+ --pf-c-dropdown--m-expanded__toggle--before--BorderBottomWidth: 0;
242
+ }
243
+ .pf-c-dropdown__toggle.pf-m-primary.pf-m-split-button:not(.pf-m-disabled) > * {
244
+ background-color: var(--pf-c-dropdown__toggle--m-split-button--m-primary--child--BackgroundColor);
245
+ border: 0;
246
+ }
247
+ .pf-c-dropdown__toggle.pf-m-primary.pf-m-split-button:not(.pf-m-disabled) > *:hover {
248
+ --pf-c-dropdown__toggle--m-split-button--m-primary--child--BackgroundColor: var(--pf-c-dropdown__toggle--m-split-button--m-primary--child--hover--BackgroundColor);
249
+ }
250
+ .pf-c-dropdown__toggle.pf-m-primary.pf-m-split-button:not(.pf-m-disabled) > *:focus {
251
+ --pf-c-dropdown__toggle--m-split-button--m-primary--child--BackgroundColor: var(--pf-c-dropdown__toggle--m-split-button--m-primary--child--focus--BackgroundColor);
252
+ }
253
+ .pf-c-dropdown__toggle.pf-m-primary.pf-m-split-button:not(.pf-m-disabled) > *:active, .pf-c-dropdown__toggle.pf-m-primary.pf-m-split-button:not(.pf-m-disabled) > *.pf-m-active {
254
+ --pf-c-dropdown__toggle--m-split-button--m-primary--child--BackgroundColor: var(--pf-c-dropdown__toggle--m-split-button--m-primary--child--focus--BackgroundColor);
255
+ }
256
+ .pf-c-dropdown__toggle.pf-m-primary.pf-m-split-button:not(.pf-m-disabled) > :first-child {
257
+ border-top-left-radius: var(--pf-c-dropdown__toggle--m-split-button--m-primary--child--BorderRadius);
258
+ border-bottom-left-radius: var(--pf-c-dropdown__toggle--m-split-button--m-primary--child--BorderRadius);
259
+ }
260
+ .pf-c-dropdown__toggle.pf-m-primary.pf-m-split-button:not(.pf-m-disabled) > :last-child {
261
+ border-top-right-radius: var(--pf-c-dropdown__toggle--m-split-button--m-primary--child--BorderRadius);
262
+ border-bottom-right-radius: var(--pf-c-dropdown__toggle--m-split-button--m-primary--child--BorderRadius);
263
+ }
225
264
  .pf-c-dropdown__toggle:not(.pf-m-action):hover::before, .pf-c-dropdown__toggle.pf-m-action .pf-c-dropdown__toggle-button:hover::before {
226
265
  --pf-c-dropdown__toggle--before--BorderBottomColor: var(--pf-c-dropdown__toggle--hover--before--BorderBottomColor);
227
266
  }
@@ -256,10 +295,13 @@
256
295
  --pf-c-dropdown__toggle--m-plain--Color: var(--pf-c-dropdown__toggle--m-plain--disabled--Color);
257
296
  }
258
297
  .pf-c-dropdown__toggle.pf-m-primary {
259
- --pf-c-dropdown__toggle--Color: var(--pf-c-dropdown__toggle--m-primary--Color);
260
298
  --pf-c-dropdown__toggle--BackgroundColor: var(--pf-c-dropdown__toggle--m-primary--BackgroundColor);
299
+ --pf-c-dropdown__toggle-button--Color: var(--pf-c-dropdown__toggle--m-primary--Color);
261
300
  border-radius: var(--pf-c-dropdown__toggle--m-primary--BorderRadius);
262
301
  }
302
+ .pf-c-dropdown__toggle.pf-m-primary:not(.pf-m-disabled) {
303
+ --pf-c-dropdown__toggle--Color: var(--pf-c-dropdown__toggle--m-primary--Color);
304
+ }
263
305
  .pf-c-dropdown__toggle.pf-m-primary::before {
264
306
  border: 0;
265
307
  }
@@ -56,6 +56,18 @@ $pf-c-dropdown--breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "
56
56
  --pf-c-dropdown__toggle--m-split-button__toggle-check__input--TranslateY: #{pf-size-prem(-1px)};
57
57
  --pf-c-dropdown__toggle--m-split-button__toggle-text--MarginLeft: var(--pf-global--spacer--sm);
58
58
 
59
+ // Split button
60
+ --pf-c-dropdown__toggle--m-split-button--m-primary--child--BorderRadius: var(--pf-global--BorderRadius--sm);
61
+ --pf-c-dropdown__toggle--m-split-button--m-primary--child--BackgroundColor: var(--pf-global--primary-color--100);
62
+ --pf-c-dropdown__toggle--m-split-button--m-primary--child--hover--BackgroundColor: var(--pf-global--primary-color--200);
63
+ --pf-c-dropdown__toggle--m-split-button--m-primary--child--focus--BackgroundColor: var(--pf-global--primary-color--200);
64
+ --pf-c-dropdown__toggle--m-split-button--m-primary--child--active--BackgroundColor: var(--pf-global--primary-color--200);
65
+ --pf-c-dropdown__toggle--m-split-button--m-primary--child--m-expanded--BackgroundColor: var(--pf-global--primary-color--200);
66
+
67
+ // Split button, action, primary
68
+ --pf-c-dropdown__toggle--m-split-button--m-primary--m-action--child--BorderLeftColor: var(--pf-global--primary-color--200);
69
+ --pf-c-dropdown__toggle--m-split-button--m-primary--m-action--child--BorderLeftWidth: var(--pf-global--BorderWidth--sm);
70
+
59
71
  // Toggle Arrow
60
72
  --pf-c-dropdown__toggle-icon--LineHeight: var(--pf-global--LineHeight--md);
61
73
  --pf-c-dropdown__toggle-icon--MarginRight: var(--pf-global--spacer--sm);
@@ -181,6 +193,10 @@ $pf-c-dropdown--breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "
181
193
  }
182
194
  }
183
195
  }
196
+
197
+ &.pf-m-expanded {
198
+ --pf-c-dropdown__toggle--m-split-button--m-primary--child--BackgroundColor: var(--pf-c-dropdown__toggle--m-split-button--m-primary--child--m-expanded--BackgroundColor);
199
+ }
184
200
  }
185
201
 
186
202
  .pf-c-dropdown__toggle {
@@ -260,6 +276,14 @@ $pf-c-dropdown--breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "
260
276
  }
261
277
  // stylelint-enable
262
278
  }
279
+
280
+ &.pf-m-primary {
281
+ // stylelint-disable max-nesting-depth
282
+ > :not(:first-child) {
283
+ border-left: var(--pf-c-dropdown__toggle--m-split-button--m-primary--m-action--child--BorderLeftWidth) solid var(--pf-c-dropdown__toggle--m-split-button--m-primary--m-action--child--BorderLeftColor);
284
+ }
285
+ // stylelint-enable
286
+ }
263
287
  }
264
288
 
265
289
  .pf-c-dropdown__toggle-check {
@@ -284,6 +308,39 @@ $pf-c-dropdown--breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "
284
308
  }
285
309
  }
286
310
 
311
+ &.pf-m-primary.pf-m-split-button:not(.pf-m-disabled) {
312
+ --pf-c-dropdown__toggle--before--BorderWidth: 0;
313
+ --pf-c-dropdown--m-expanded__toggle--before--BorderBottomWidth: 0;
314
+
315
+ > * {
316
+ background-color: var(--pf-c-dropdown__toggle--m-split-button--m-primary--child--BackgroundColor);
317
+ border: 0;
318
+
319
+ &:hover {
320
+ --pf-c-dropdown__toggle--m-split-button--m-primary--child--BackgroundColor: var(--pf-c-dropdown__toggle--m-split-button--m-primary--child--hover--BackgroundColor);
321
+ }
322
+
323
+ &:focus {
324
+ --pf-c-dropdown__toggle--m-split-button--m-primary--child--BackgroundColor: var(--pf-c-dropdown__toggle--m-split-button--m-primary--child--focus--BackgroundColor);
325
+ }
326
+
327
+ &:active,
328
+ &.pf-m-active {
329
+ --pf-c-dropdown__toggle--m-split-button--m-primary--child--BackgroundColor: var(--pf-c-dropdown__toggle--m-split-button--m-primary--child--focus--BackgroundColor);
330
+ }
331
+ }
332
+
333
+ > :first-child {
334
+ border-top-left-radius: var(--pf-c-dropdown__toggle--m-split-button--m-primary--child--BorderRadius);
335
+ border-bottom-left-radius: var(--pf-c-dropdown__toggle--m-split-button--m-primary--child--BorderRadius);
336
+ }
337
+
338
+ > :last-child {
339
+ border-top-right-radius: var(--pf-c-dropdown__toggle--m-split-button--m-primary--child--BorderRadius);
340
+ border-bottom-right-radius: var(--pf-c-dropdown__toggle--m-split-button--m-primary--child--BorderRadius);
341
+ }
342
+ }
343
+
287
344
  &:not(.pf-m-action):hover,
288
345
  &.pf-m-action .pf-c-dropdown__toggle-button:hover {
289
346
  &::before {
@@ -350,8 +407,12 @@ $pf-c-dropdown--breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "
350
407
  }
351
408
 
352
409
  &.pf-m-primary {
353
- --pf-c-dropdown__toggle--Color: var(--pf-c-dropdown__toggle--m-primary--Color);
354
410
  --pf-c-dropdown__toggle--BackgroundColor: var(--pf-c-dropdown__toggle--m-primary--BackgroundColor);
411
+ --pf-c-dropdown__toggle-button--Color: var(--pf-c-dropdown__toggle--m-primary--Color);
412
+
413
+ &:not(.pf-m-disabled) {
414
+ --pf-c-dropdown__toggle--Color: var(--pf-c-dropdown__toggle--m-primary--Color);
415
+ }
355
416
 
356
417
  border-radius: var(--pf-c-dropdown__toggle--m-primary--BorderRadius);
357
418
 
@@ -139,6 +139,9 @@
139
139
  overflow-anchor: none;
140
140
  }
141
141
 
142
+ .pf-c-dual-list-selector__list-item:focus {
143
+ --pf-c-dual-list-selector__list-item-row--BackgroundColor: var(--pf-c-dual-list-selector__list-item-row--focus-within--BackgroundColor);
144
+ }
142
145
  .pf-c-dual-list-selector__list-item.pf-m-expandable {
143
146
  --pf-c-dual-list-selector__item--PaddingLeft: var(--pf-c-dual-list-selector__item--m-expandable--PaddingLeft);
144
147
  }
@@ -159,9 +162,6 @@
159
162
  .pf-c-dual-list-selector__list-item-row:hover {
160
163
  --pf-c-dual-list-selector__list-item-row--BackgroundColor: var(--pf-c-dual-list-selector__list-item-row--hover--BackgroundColor);
161
164
  }
162
- .pf-c-dual-list-selector__list-item-row:focus-within {
163
- --pf-c-dual-list-selector__list-item-row--BackgroundColor: var(--pf-c-dual-list-selector__list-item-row--focus-within--BackgroundColor);
164
- }
165
165
  .pf-c-dual-list-selector__list-item-row.pf-m-selected {
166
166
  --pf-c-dual-list-selector__list-item-row--BackgroundColor: var(--pf-c-dual-list-selector__list-item-row--m-selected--BackgroundColor);
167
167
  }
@@ -205,9 +205,7 @@
205
205
  position: relative;
206
206
  width: 100%;
207
207
  padding: var(--pf-c-dual-list-selector__item--PaddingTop) var(--pf-c-dual-list-selector__item--PaddingRight) var(--pf-c-dual-list-selector__item--PaddingBottom) var(--pf-c-dual-list-selector__item--PaddingLeft);
208
- text-align: left;
209
208
  cursor: pointer;
210
- border: 0;
211
209
  }
212
210
 
213
211
  .pf-c-dual-list-selector__item-count {
@@ -183,6 +183,10 @@ $pf-c-dual-list-selector__item--MaxNesting: 10;
183
183
  }
184
184
 
185
185
  .pf-c-dual-list-selector__list-item {
186
+ &:focus {
187
+ --pf-c-dual-list-selector__list-item-row--BackgroundColor: var(--pf-c-dual-list-selector__list-item-row--focus-within--BackgroundColor);
188
+ }
189
+
186
190
  &.pf-m-expandable {
187
191
  --pf-c-dual-list-selector__item--PaddingLeft: var(--pf-c-dual-list-selector__item--m-expandable--PaddingLeft);
188
192
  }
@@ -208,10 +212,6 @@ $pf-c-dual-list-selector__item--MaxNesting: 10;
208
212
  --pf-c-dual-list-selector__list-item-row--BackgroundColor: var(--pf-c-dual-list-selector__list-item-row--hover--BackgroundColor);
209
213
  }
210
214
 
211
- &:focus-within {
212
- --pf-c-dual-list-selector__list-item-row--BackgroundColor: var(--pf-c-dual-list-selector__list-item-row--focus-within--BackgroundColor);
213
- }
214
-
215
215
  &.pf-m-selected {
216
216
  --pf-c-dual-list-selector__list-item-row--BackgroundColor: var(--pf-c-dual-list-selector__list-item-row--m-selected--BackgroundColor);
217
217
 
@@ -265,9 +265,7 @@ $pf-c-dual-list-selector__item--MaxNesting: 10;
265
265
  position: relative;
266
266
  width: 100%;
267
267
  padding: var(--pf-c-dual-list-selector__item--PaddingTop) var(--pf-c-dual-list-selector__item--PaddingRight) var(--pf-c-dual-list-selector__item--PaddingBottom) var(--pf-c-dual-list-selector__item--PaddingLeft);
268
- text-align: left;
269
268
  cursor: pointer;
270
- border: 0;
271
269
  }
272
270
 
273
271
  .pf-c-dual-list-selector__item-count {
@@ -100,7 +100,8 @@
100
100
  --pf-c-form-control--m-icon--m-warning--BackgroundSize: var(--pf-c-form-control--m-warning--BackgroundSize), var(--pf-c-form-control--m-icon--BackgroundSizeX) var(--pf-c-form-control--m-icon--BackgroundSizeY);
101
101
  --pf-c-form-control--m-calendar--BackgroundUrl: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%236a6e73' d='M0 464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V192H0v272zm320-196c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM192 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM64 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM400 64h-48V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H160V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H48C21.5 64 0 85.5 0 112v48h448v-48c0-26.5-21.5-48-48-48z'/%3E%3C/svg%3E");
102
102
  --pf-c-form-control--m-clock--BackgroundUrl: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%236a6e73' d='M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z'/%3E%3C/svg%3E");
103
- --pf-c-form-control__select--PaddingRight: var(--pf-global--spacer--lg);
103
+ --pf-c-form-control__select--PaddingRight: calc(var(--pf-global--spacer--lg) + var(--pf-c-form-control--BorderWidth) + var(--pf-c-form-control--BorderWidth));
104
+ --pf-c-form-control__select--PaddingLeft: calc(var(--pf-global--spacer--sm) - var(--pf-c-form-control--BorderWidth));
104
105
  --pf-c-form-control__select--BackgroundUrl: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='%23urrentColor' d='M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z'/%3E%3C/svg%3E");
105
106
  --pf-c-form-control__select--BackgroundSize: .625em;
106
107
  --pf-c-form-control__select--BackgroundPositionX: calc(100% - var(--pf-global--spacer--md) + 1px);
@@ -232,10 +233,17 @@
232
233
  }
233
234
  select.pf-c-form-control {
234
235
  --pf-c-form-control--PaddingRight: var(--pf-c-form-control__select--PaddingRight);
236
+ --pf-c-form-control--PaddingLeft: var(--pf-c-form-control__select--PaddingLeft);
235
237
  background-image: var(--pf-c-form-control__select--BackgroundUrl);
236
238
  background-position: var(--pf-c-form-control__select--BackgroundPosition);
237
239
  background-size: var(--pf-c-form-control__select--BackgroundSize);
238
240
  }
241
+ @-moz-document url-prefix() {
242
+ select.pf-c-form-control {
243
+ --pf-c-form-control--PaddingRight: calc(var(--pf-c-form-control__select--PaddingRight) - 1px);
244
+ --pf-c-form-control--PaddingLeft: calc(var(--pf-c-form-control__select--PaddingLeft) - 4px);
245
+ }
246
+ }
239
247
  select.pf-c-form-control[aria-invalid=true] {
240
248
  --pf-c-form-control--PaddingRight: var(--pf-c-form-control__select--invalid--PaddingRight);
241
249
  --pf-c-form-control--invalid--BackgroundPosition: var(--pf-c-form-control__select--invalid--BackgroundPosition);
@@ -148,7 +148,8 @@ $pf-c-form-control--m-clock--Coordinates: "M256 8C119 8 8 119 8 256s111 248 248
148
148
  --pf-c-form-control--m-clock--BackgroundUrl: #{pf-bg-svg($pf-c-form-control--m-clock--Coordinates, $svg-color: $pf-c-form-control--m-clock--Color)};
149
149
 
150
150
  // Select -- rename __select to --select in a breaking change release
151
- --pf-c-form-control__select--PaddingRight: var(--pf-global--spacer--lg);
151
+ --pf-c-form-control__select--PaddingRight: calc(var(--pf-global--spacer--lg) + var(--pf-c-form-control--BorderWidth) + var(--pf-c-form-control--BorderWidth));
152
+ --pf-c-form-control__select--PaddingLeft: calc(var(--pf-global--spacer--sm) - var(--pf-c-form-control--BorderWidth));
152
153
  --pf-c-form-control__select--BackgroundUrl: #{pf-bg-svg($pf-c-form-control__select--Coordinates, $pf-c-form-control__select--ViewBox)};
153
154
  --pf-c-form-control__select--BackgroundSize: .625em; // Calculated from react-icon SVG viewbox
154
155
  --pf-c-form-control__select--BackgroundPositionX: calc(100% - var(--pf-global--spacer--md) + 1px);
@@ -333,11 +334,19 @@ $pf-c-form-control--m-clock--Coordinates: "M256 8C119 8 8 119 8 256s111 248 248
333
334
 
334
335
  @at-root select#{&} {
335
336
  --pf-c-form-control--PaddingRight: var(--pf-c-form-control__select--PaddingRight);
337
+ --pf-c-form-control--PaddingLeft: var(--pf-c-form-control__select--PaddingLeft);
336
338
 
337
339
  background-image: var(--pf-c-form-control__select--BackgroundUrl);
338
340
  background-position: var(--pf-c-form-control__select--BackgroundPosition);
339
341
  background-size: var(--pf-c-form-control__select--BackgroundSize);
340
342
 
343
+ // Firefox's select text has additional padding
344
+ // stylelint-disable-next-line
345
+ @-moz-document url-prefix() {
346
+ --pf-c-form-control--PaddingRight: calc(var(--pf-c-form-control__select--PaddingRight) - 1px);
347
+ --pf-c-form-control--PaddingLeft: calc(var(--pf-c-form-control__select--PaddingLeft) - 4px);
348
+ }
349
+
341
350
  &[aria-invalid="true"] {
342
351
  --pf-c-form-control--PaddingRight: var(--pf-c-form-control__select--invalid--PaddingRight);
343
352
  --pf-c-form-control--invalid--BackgroundPosition: var(--pf-c-form-control__select--invalid--BackgroundPosition); // drop this declaration and use the __select var directly in the background-position below in breaking change release
@@ -80,6 +80,8 @@
80
80
  --pf-c-menu--Width: auto;
81
81
  --pf-c-menu--ZIndex: var(--pf-global--ZIndex--sm);
82
82
  --pf-c-menu--m-flyout__menu--Top: calc(var(--pf-c-menu__list--PaddingTop) * -1 + var(--pf-c-menu--m-flyout__menu--top-offset));
83
+ --pf-c-menu--m-flyout__menu--Right: auto;
84
+ --pf-c-menu--m-flyout__menu--Bottom: auto;
83
85
  --pf-c-menu--m-flyout__menu--Left: calc(100% + var(--pf-c-menu--m-flyout__menu--left-offset));
84
86
  --pf-c-menu--m-flyout__menu--m-top--Bottom: calc(var(--pf-c-menu__list--PaddingTop) * -1);
85
87
  --pf-c-menu--m-flyout__menu--m-left--Right: calc(100% + var(--pf-c-menu--m-flyout__menu--m-left--right-offset));
@@ -199,9 +201,6 @@
199
201
  background-color: var(--pf-c-menu--BackgroundColor);
200
202
  box-shadow: var(--pf-c-menu--BoxShadow);
201
203
  }
202
- .pf-c-menu .pf-c-menu__content {
203
- overflow-y: auto;
204
- }
205
204
  .pf-c-menu .pf-c-menu__content .pf-c-menu .pf-c-menu__content {
206
205
  overflow: visible;
207
206
  }
@@ -209,28 +208,23 @@
209
208
  margin-top: var(--pf-c-menu--c-divider--MarginTop);
210
209
  margin-bottom: var(--pf-c-menu--c-divider--MarginBottom);
211
210
  }
212
- .pf-c-menu.pf-m-flyout {
213
- overflow: visible;
214
- }
215
- .pf-c-menu.pf-m-flyout .pf-c-menu {
211
+ .pf-c-menu .pf-c-menu.pf-m-flyout, .pf-c-menu.pf-m-flyout .pf-c-menu {
216
212
  position: absolute;
217
213
  top: var(--pf-c-menu--m-flyout__menu--Top);
218
- right: auto;
214
+ right: var(--pf-c-menu--m-flyout__menu--Right);
215
+ bottom: var(--pf-c-menu--m-flyout__menu--Bottom);
219
216
  left: var(--pf-c-menu--m-flyout__menu--Left);
220
217
  }
221
- .pf-c-menu.pf-m-flyout .pf-c-menu.pf-m-top {
222
- top: auto;
223
- bottom: var(--pf-c-menu--m-flyout__menu--m-top--Bottom);
224
- }
225
- .pf-c-menu.pf-m-flyout .pf-c-menu.pf-m-left {
226
- right: var(--pf-c-menu--m-flyout__menu--m-left--Right);
227
- left: auto;
228
- }
229
- .pf-c-menu.pf-m-flyout .pf-c-menu__content {
218
+ .pf-c-menu .pf-c-menu.pf-m-flyout .pf-c-menu__content, .pf-c-menu.pf-m-flyout .pf-c-menu .pf-c-menu__content {
230
219
  overflow-y: visible;
231
220
  }
232
- .pf-c-menu.pf-m-flyout .pf-c-menu__list-item {
233
- position: relative;
221
+ .pf-c-menu.pf-m-top {
222
+ --pf-c-menu--m-flyout__menu--Top: auto;
223
+ --pf-c-menu--m-flyout__menu--Bottom: var(--pf-c-menu--m-flyout__menu--m-top--Bottom);
224
+ }
225
+ .pf-c-menu.pf-m-left {
226
+ --pf-c-menu--m-flyout__menu--Right: var(--pf-c-menu--m-flyout__menu--m-left--Right);
227
+ --pf-c-menu--m-flyout__menu--Left: auto;
234
228
  }
235
229
  .pf-c-menu.pf-m-drilldown {
236
230
  display: flex;
@@ -264,6 +258,10 @@
264
258
  overflow: hidden;
265
259
  transition: var(--pf-c-menu--m-drilldown__list--Transition);
266
260
  }
261
+ .pf-c-menu.pf-m-drilldown .pf-c-menu__list .pf-c-menu__list {
262
+ --pf-c-menu__list--PaddingTop: 0;
263
+ --pf-c-menu__list--PaddingBottom: 0;
264
+ }
267
265
  .pf-c-menu.pf-m-drilldown .pf-c-menu__list-item.pf-m-current-path .pf-c-menu {
268
266
  z-index: var(--pf-c-menu--m-drilled-in--c-menu__list-item--m-current-path--c-menu--ZIndex);
269
267
  }
@@ -298,6 +296,9 @@
298
296
  --pf-c-menu__footer--after--BorderTopWidth: var(--pf-c-menu--m-scrollable__footer--after--BorderTopWidth);
299
297
  --pf-c-menu__footer--after--BorderBottomWidth: var(--pf-c-menu--m-scrollable__footer--after--BorderBottomWidth);
300
298
  }
299
+ .pf-c-menu.pf-m-scrollable .pf-c-menu__content {
300
+ overflow-y: auto;
301
+ }
301
302
 
302
303
  .pf-c-menu__breadcrumb {
303
304
  display: flex;
@@ -364,6 +365,7 @@
364
365
 
365
366
  .pf-c-menu__list-item {
366
367
  --pf-hidden-visible--visible--Display: var(--pf-c-menu__list-item--Display);
368
+ position: relative;
367
369
  color: var(--pf-c-menu__list-item--Color);
368
370
  background-color: var(--pf-c-menu__list-item--BackgroundColor);
369
371
  }
@@ -10,6 +10,8 @@
10
10
 
11
11
  // Flyout
12
12
  --pf-c-menu--m-flyout__menu--Top: calc(var(--pf-c-menu__list--PaddingTop) * -1 + var(--pf-c-menu--m-flyout__menu--top-offset));
13
+ --pf-c-menu--m-flyout__menu--Right: auto;
14
+ --pf-c-menu--m-flyout__menu--Bottom: auto;
13
15
  --pf-c-menu--m-flyout__menu--Left: calc(100% + var(--pf-c-menu--m-flyout__menu--left-offset));
14
16
  --pf-c-menu--m-flyout__menu--m-top--Bottom: calc(var(--pf-c-menu__list--PaddingTop) * -1);
15
17
  --pf-c-menu--m-flyout__menu--m-left--Right: calc(100% + var(--pf-c-menu--m-flyout__menu--m-left--right-offset));
@@ -54,7 +56,6 @@
54
56
  --pf-c-menu__header--c-menu__item--hover--BackgroundColor: var(--pf-global--BackgroundColor--200);
55
57
  --pf-c-menu__header--c-menu__item--focus--BackgroundColor: var(--pf-global--BackgroundColor--200);
56
58
 
57
-
58
59
  // Search
59
60
  --pf-c-menu__search--PaddingTop: var(--pf-global--spacer--md);
60
61
  --pf-c-menu__search--PaddingRight: var(--pf-global--spacer--md);
@@ -190,8 +191,6 @@
190
191
  box-shadow: var(--pf-c-menu--BoxShadow);
191
192
 
192
193
  .pf-c-menu__content {
193
- overflow-y: auto;
194
-
195
194
  & & {
196
195
  overflow: visible;
197
196
  }
@@ -202,33 +201,29 @@
202
201
  margin-bottom: var(--pf-c-menu--c-divider--MarginBottom);
203
202
  }
204
203
 
205
- &.pf-m-flyout {
206
- overflow: visible;
207
-
208
- .pf-c-menu {
209
- position: absolute;
210
- top: var(--pf-c-menu--m-flyout__menu--Top);
211
- right: auto;
212
- left: var(--pf-c-menu--m-flyout__menu--Left);
213
-
214
- &.pf-m-top {
215
- top: auto;
216
- bottom: var(--pf-c-menu--m-flyout__menu--m-top--Bottom);
217
- }
204
+ // nested flyout menu
205
+ & &.pf-m-flyout,
206
+ &.pf-m-flyout & {
207
+ position: absolute;
208
+ top: var(--pf-c-menu--m-flyout__menu--Top);
209
+ right: var(--pf-c-menu--m-flyout__menu--Right);
210
+ bottom: var(--pf-c-menu--m-flyout__menu--Bottom);
211
+ left: var(--pf-c-menu--m-flyout__menu--Left);
218
212
 
219
- &.pf-m-left {
220
- right: var(--pf-c-menu--m-flyout__menu--m-left--Right);
221
- left: auto;
222
- }
223
- }
224
213
 
225
214
  .pf-c-menu__content {
226
215
  overflow-y: visible;
227
216
  }
217
+ }
228
218
 
229
- .pf-c-menu__list-item {
230
- position: relative;
231
- }
219
+ &.pf-m-top {
220
+ --pf-c-menu--m-flyout__menu--Top: auto;
221
+ --pf-c-menu--m-flyout__menu--Bottom: var(--pf-c-menu--m-flyout__menu--m-top--Bottom);
222
+ }
223
+
224
+ &.pf-m-left {
225
+ --pf-c-menu--m-flyout__menu--Right: var(--pf-c-menu--m-flyout__menu--m-left--Right);
226
+ --pf-c-menu--m-flyout__menu--Left: auto;
232
227
  }
233
228
 
234
229
  &.pf-m-drilldown {
@@ -276,6 +271,11 @@
276
271
  position: relative;
277
272
  overflow: hidden;
278
273
  transition: var(--pf-c-menu--m-drilldown__list--Transition);
274
+
275
+ & .pf-c-menu__list {
276
+ --pf-c-menu__list--PaddingTop: 0;
277
+ --pf-c-menu__list--PaddingBottom: 0;
278
+ }
279
279
  }
280
280
 
281
281
  // stylelint-disable selector-max-class, max-nesting-depth
@@ -329,6 +329,10 @@
329
329
  --pf-c-menu__footer--BoxShadow: var(--pf-c-menu--m-scrollable__footer--BoxShadow);
330
330
  --pf-c-menu__footer--after--BorderTopWidth: var(--pf-c-menu--m-scrollable__footer--after--BorderTopWidth);
331
331
  --pf-c-menu__footer--after--BorderBottomWidth: var(--pf-c-menu--m-scrollable__footer--after--BorderBottomWidth);
332
+
333
+ .pf-c-menu__content {
334
+ overflow-y: auto;
335
+ }
332
336
  }
333
337
  }
334
338
 
@@ -414,6 +418,7 @@
414
418
  .pf-c-menu__list-item {
415
419
  @include pf-hidden-visible(var(--pf-c-menu__list-item--Display));
416
420
 
421
+ position: relative;
417
422
  color: var(--pf-c-menu__list-item--Color);
418
423
  background-color: var(--pf-c-menu__list-item--BackgroundColor);
419
424
 
@@ -1,4 +1,5 @@
1
1
  .pf-c-menu-toggle {
2
+ --pf-c-menu-toggle--BorderRadius: 0;
2
3
  --pf-c-menu-toggle--PaddingTop: var(--pf-global--spacer--form-element);
3
4
  --pf-c-menu-toggle--PaddingRight: var(--pf-global--spacer--sm);
4
5
  --pf-c-menu-toggle--PaddingBottom: var(--pf-global--spacer--form-element);
@@ -32,6 +33,7 @@
32
33
  --pf-c-menu-toggle--m-expanded--after--BorderBottomColor: var(--pf-global--active-color--100);
33
34
  --pf-c-menu-toggle--disabled--Color: var(--pf-global--disabled-color--100);
34
35
  --pf-c-menu-toggle--disabled--BackgroundColor: var(--pf-global--disabled-color--300);
36
+ --pf-c-menu-toggle--m-primary--BorderRadius: var(--pf-global--BorderRadius--sm);
35
37
  --pf-c-menu-toggle--m-primary--Color: var(--pf-global--Color--light-100);
36
38
  --pf-c-menu-toggle--m-primary--BackgroundColor: var(--pf-global--primary-color--100);
37
39
  --pf-c-menu-toggle--m-primary--hover--BackgroundColor: var(--pf-global--primary-color--200);
@@ -69,6 +71,7 @@
69
71
  color: var(--pf-c-menu-toggle--Color);
70
72
  background-color: var(--pf-c-menu-toggle--BackgroundColor);
71
73
  border: 0;
74
+ border-radius: var(--pf-c-menu-toggle--BorderRadius);
72
75
  }
73
76
  .pf-c-menu-toggle::before, .pf-c-menu-toggle::after {
74
77
  position: absolute;
@@ -88,6 +91,7 @@
88
91
  border-bottom: var(--pf-c-menu-toggle--after--BorderBottomWidth) solid var(--pf-c-menu-toggle--after--BorderBottomColor);
89
92
  }
90
93
  .pf-c-menu-toggle.pf-m-primary {
94
+ --pf-c-menu-toggle--BorderRadius: var(--pf-c-menu-toggle--m-primary--BorderRadius);
91
95
  --pf-c-menu-toggle--Color: var(--pf-c-menu-toggle--m-primary--Color);
92
96
  --pf-c-menu-toggle--BackgroundColor: var(--pf-c-menu-toggle--m-primary--BackgroundColor);
93
97
  --pf-c-menu-toggle--hover--BackgroundColor: var(--pf-c-menu-toggle--m-primary--hover--BackgroundColor);
@@ -1,4 +1,5 @@
1
1
  .pf-c-menu-toggle {
2
+ --pf-c-menu-toggle--BorderRadius: 0;
2
3
  --pf-c-menu-toggle--PaddingTop: var(--pf-global--spacer--form-element);
3
4
  --pf-c-menu-toggle--PaddingRight: var(--pf-global--spacer--sm);
4
5
  --pf-c-menu-toggle--PaddingBottom: var(--pf-global--spacer--form-element);
@@ -48,6 +49,7 @@
48
49
  --pf-c-menu-toggle--disabled--BackgroundColor: var(--pf-global--disabled-color--300);
49
50
 
50
51
  // Primary
52
+ --pf-c-menu-toggle--m-primary--BorderRadius: var(--pf-global--BorderRadius--sm);
51
53
  --pf-c-menu-toggle--m-primary--Color: var(--pf-global--Color--light-100);
52
54
  --pf-c-menu-toggle--m-primary--BackgroundColor: var(--pf-global--primary-color--100);
53
55
  --pf-c-menu-toggle--m-primary--hover--BackgroundColor: var(--pf-global--primary-color--200);
@@ -100,6 +102,7 @@
100
102
  color: var(--pf-c-menu-toggle--Color);
101
103
  background-color: var(--pf-c-menu-toggle--BackgroundColor);
102
104
  border: 0;
105
+ border-radius: var(--pf-c-menu-toggle--BorderRadius);
103
106
 
104
107
  &::before,
105
108
  &::after {
@@ -123,6 +126,7 @@
123
126
  }
124
127
 
125
128
  &.pf-m-primary {
129
+ --pf-c-menu-toggle--BorderRadius: var(--pf-c-menu-toggle--m-primary--BorderRadius);
126
130
  --pf-c-menu-toggle--Color: var(--pf-c-menu-toggle--m-primary--Color);
127
131
  --pf-c-menu-toggle--BackgroundColor: var(--pf-c-menu-toggle--m-primary--BackgroundColor);
128
132
  --pf-c-menu-toggle--hover--BackgroundColor: var(--pf-c-menu-toggle--m-primary--hover--BackgroundColor);