@patternfly/patternfly 6.5.0-prerelease.6 → 6.5.0-prerelease.8
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.
- package/components/Card/card.css +6 -0
- package/components/Card/card.scss +8 -0
- package/components/DataList/data-list.css +5 -1
- package/components/DataList/data-list.scss +6 -1
- package/components/Tabs/tabs.css +13 -1
- package/components/Tabs/tabs.scss +17 -1
- package/components/_index.css +24 -2
- package/docs/components/DataList/examples/DataList.md +159 -144
- package/docs/components/Tabs/examples/Tabs.md +188 -0
- package/package.json +1 -1
- package/patternfly-no-globals.css +24 -2
- package/patternfly.css +24 -2
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
package/components/Card/card.css
CHANGED
|
@@ -134,6 +134,12 @@
|
|
|
134
134
|
.pf-v6-c-card.pf-m-selectable.pf-m-clickable .pf-v6-c-card__selectable-actions :is(.pf-v6-c-check__input, .pf-v6-c-radio__input):where(:disabled) ~ :is(.pf-v6-c-check__label, .pf-v6-c-radio__label), .pf-v6-c-card.pf-m-selectable.pf-m-clickable.pf-m-disabled {
|
|
135
135
|
--pf-v6-c-card--BackgroundColor: var(--pf-v6-c-card--m-selectable--m-disabled--BackgroundColor);
|
|
136
136
|
}
|
|
137
|
+
.pf-v6-c-card__actions:has(> .pf-v6-c-card__selectable-actions input.pf-v6-screen-reader), .pf-v6-c-card.pf-m-clickable:not(.pf-m-selectable) {
|
|
138
|
+
--pf-v6-c-card__actions--PaddingInlineStart: 0;
|
|
139
|
+
--pf-v6-c-card__actions--MarginBlockStart: 0;
|
|
140
|
+
--pf-v6-c-card__actions--MarginBlockEnd: 0;
|
|
141
|
+
}
|
|
142
|
+
|
|
137
143
|
.pf-v6-c-card.pf-m-compact {
|
|
138
144
|
--pf-v6-c-card__title-text--FontSize: var(--pf-v6-c-card--m-compact__title-text--FontSize);
|
|
139
145
|
--pf-v6-c-card__body--FontSize: var(--pf-v6-c-card--m-compact__body--FontSize);
|
|
@@ -196,6 +196,14 @@
|
|
|
196
196
|
}
|
|
197
197
|
// stylelint-enable selector-max-class
|
|
198
198
|
|
|
199
|
+
// when the whole card is clickable and the card actions are invisible, remove the padding/margin so it doesn't take up space
|
|
200
|
+
@at-root .#{$card}__actions:has(> .#{$card}__selectable-actions input.#{$pf-prefix}screen-reader), // targets "card as tile", which are selectable cards with inputs
|
|
201
|
+
&.pf-m-clickable:not(.pf-m-selectable) {
|
|
202
|
+
--#{$card}__actions--PaddingInlineStart: 0;
|
|
203
|
+
--#{$card}__actions--MarginBlockStart: 0;
|
|
204
|
+
--#{$card}__actions--MarginBlockEnd: 0;
|
|
205
|
+
}
|
|
206
|
+
|
|
199
207
|
&.pf-m-compact {
|
|
200
208
|
--#{$card}__title-text--FontSize: var(--#{$card}--m-compact__title-text--FontSize);
|
|
201
209
|
--#{$card}__body--FontSize: var(--#{$card}--m-compact__body--FontSize);
|
|
@@ -412,7 +412,8 @@
|
|
|
412
412
|
--pf-v6-c-data-list--sm--BorderBlockStartWidth: var(--pf-t--global--border--width--divider--default);
|
|
413
413
|
--pf-v6-c-data-list--sm--BorderBlockStartColor: var(--pf-t--global--border--color--default);
|
|
414
414
|
--pf-v6-c-data-list--MarginInlineStart: var(--pf-t--global--spacer--md);
|
|
415
|
-
--pf-v6-c-data-list__item--BackgroundColor: var(
|
|
415
|
+
--pf-v6-c-data-list__item--BackgroundColor: var(--pf-t--global--background--color--primary--default);
|
|
416
|
+
--pf-v6-c-data-list--pf-m-plain__item--BackgroundColor: transparent;
|
|
416
417
|
--pf-v6-c-data-list__item--hover--BackgroundColor: var(--pf-t--global--background--color--primary--hover);
|
|
417
418
|
--pf-v6-c-data-list__item--m-selected--BackgroundColor: var(--pf-t--global--background--color--primary--clicked);
|
|
418
419
|
--pf-v6-c-data-list__item--m-clickable--OutlineOffset: calc(-1 * var(--pf-t--global--spacer--xs));
|
|
@@ -567,6 +568,9 @@
|
|
|
567
568
|
.pf-v6-c-data-list.pf-m-drag-over {
|
|
568
569
|
overflow-anchor: none;
|
|
569
570
|
}
|
|
571
|
+
.pf-v6-c-data-list.pf-m-plain {
|
|
572
|
+
--pf-v6-c-data-list__item--BackgroundColor: var(--pf-v6-c-data-list--pf-m-plain__item--BackgroundColor);
|
|
573
|
+
}
|
|
570
574
|
|
|
571
575
|
.pf-v6-c-data-list.pf-m-truncate,
|
|
572
576
|
.pf-v6-c-data-list__item-row.pf-m-truncate,
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
// item
|
|
19
|
-
--#{$data-list}__item--BackgroundColor: var(
|
|
19
|
+
--#{$data-list}__item--BackgroundColor: var(--pf-t--global--background--color--primary--default);
|
|
20
|
+
--#{$data-list}--pf-m-plain__item--BackgroundColor: transparent;
|
|
20
21
|
--#{$data-list}__item--hover--BackgroundColor: var(--pf-t--global--background--color--primary--hover);
|
|
21
22
|
--#{$data-list}__item--m-selected--BackgroundColor: var(--pf-t--global--background--color--primary--clicked);
|
|
22
23
|
--#{$data-list}__item--m-clickable--OutlineOffset: calc(-1 * var(--pf-t--global--spacer--xs));
|
|
@@ -189,6 +190,10 @@
|
|
|
189
190
|
&.pf-m-drag-over {
|
|
190
191
|
overflow-anchor: none;
|
|
191
192
|
}
|
|
193
|
+
|
|
194
|
+
&.pf-m-plain {
|
|
195
|
+
--#{$data-list}__item--BackgroundColor: var(--#{$data-list}--pf-m-plain__item--BackgroundColor);
|
|
196
|
+
}
|
|
192
197
|
}
|
|
193
198
|
|
|
194
199
|
.#{$data-list},
|
package/components/Tabs/tabs.css
CHANGED
|
@@ -166,6 +166,8 @@
|
|
|
166
166
|
--pf-v6-c-tabs__add--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
|
|
167
167
|
--pf-v6-c-tabs__add--PaddingInlineStart: var(--pf-t--global--spacer--sm);
|
|
168
168
|
--pf-v6-c-tabs__add--PaddingInlineEnd: var(--pf-t--global--spacer--sm);
|
|
169
|
+
--pf-v6-c-tabs--m-nav__link--BorderRadius: var(--pf-t--global--border--radius--pill);
|
|
170
|
+
--pf-v6-c-tabs--m-nav__link--disabled--Color: var(--pf-t--global--text--color--disabled);
|
|
169
171
|
--pf-v6-c-tabs__link-toggle-icon--Color: var(--pf-t--global--icon--color--regular);
|
|
170
172
|
--pf-v6-c-tabs__link-toggle-icon--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--default);
|
|
171
173
|
--pf-v6-c-tabs__link-toggle-icon--TransitionDuration: var(--pf-t--global--motion--duration--icon--default);
|
|
@@ -443,6 +445,16 @@
|
|
|
443
445
|
.pf-v6-c-tabs.pf-m-overflow .pf-v6-c-tabs__list {
|
|
444
446
|
overflow: visible;
|
|
445
447
|
}
|
|
448
|
+
.pf-v6-c-tabs.pf-m-nav {
|
|
449
|
+
--pf-v6-c-tabs__link--disabled--BackgroundColor: transparent;
|
|
450
|
+
--pf-v6-c-tabs__link--disabled--Color: var(--pf-v6-c-tabs--m-nav__link--disabled--Color);
|
|
451
|
+
--pf-v6-c-tabs__link--hover--BorderColor: transparent;
|
|
452
|
+
--pf-v6-c-tabs__link--BorderRadius: var(--pf-v6-c-tabs--m-nav__link--BorderRadius);
|
|
453
|
+
}
|
|
454
|
+
.pf-v6-c-tabs.pf-m-nav::before,
|
|
455
|
+
.pf-v6-c-tabs.pf-m-nav .pf-v6-c-tabs__link::before {
|
|
456
|
+
border: 0;
|
|
457
|
+
}
|
|
446
458
|
|
|
447
459
|
.pf-v6-c-tabs__toggle {
|
|
448
460
|
display: var(--pf-v6-c-tabs__toggle--Display);
|
|
@@ -492,7 +504,7 @@
|
|
|
492
504
|
}
|
|
493
505
|
.pf-v6-c-tabs__item.pf-m-current {
|
|
494
506
|
--pf-v6-c-tabs__link--Color: var(--pf-v6-c-tabs__item--m-current__link--Color);
|
|
495
|
-
--pf-v6-c-tabs__link--after--BorderColor: var(--pf-v6-c-
|
|
507
|
+
--pf-v6-c-tabs__link--after--BorderColor: var(--pf-v6-c-tabs--link-accent--color);
|
|
496
508
|
--pf-v6-c-tabs__link--after--BorderWidth: var(--pf-v6-c-tabs__item--m-current__link--after--BorderWidth);
|
|
497
509
|
--pf-v6-c-tabs__item--BackgroundColor: var(--pf-v6-c-tabs__item--m-current--BackgroundColor);
|
|
498
510
|
}
|
|
@@ -205,6 +205,10 @@ $pf-v6-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
205
205
|
--#{$tabs}__add--PaddingInlineStart: var(--pf-t--global--spacer--sm);
|
|
206
206
|
--#{$tabs}__add--PaddingInlineEnd: var(--pf-t--global--spacer--sm);
|
|
207
207
|
|
|
208
|
+
// Nav variant
|
|
209
|
+
--#{$tabs}--m-nav__link--BorderRadius: var(--pf-t--global--border--radius--pill);
|
|
210
|
+
--#{$tabs}--m-nav__link--disabled--Color: var(--pf-t--global--text--color--disabled);
|
|
211
|
+
|
|
208
212
|
// Overflow menu toggle icon
|
|
209
213
|
--#{$tabs}__link-toggle-icon--Color: var(--pf-t--global--icon--color--regular);
|
|
210
214
|
--#{$tabs}__link-toggle-icon--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--default);
|
|
@@ -511,6 +515,18 @@ $pf-v6-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
511
515
|
overflow: visible;
|
|
512
516
|
}
|
|
513
517
|
}
|
|
518
|
+
|
|
519
|
+
&.pf-m-nav {
|
|
520
|
+
--#{$tabs}__link--disabled--BackgroundColor: transparent;
|
|
521
|
+
--#{$tabs}__link--disabled--Color: var(--#{$tabs}--m-nav__link--disabled--Color);
|
|
522
|
+
--#{$tabs}__link--hover--BorderColor: transparent;
|
|
523
|
+
--#{$tabs}__link--BorderRadius: var(--#{$tabs}--m-nav__link--BorderRadius);
|
|
524
|
+
|
|
525
|
+
&::before,
|
|
526
|
+
.#{$tabs}__link::before {
|
|
527
|
+
border: 0;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
514
530
|
}
|
|
515
531
|
|
|
516
532
|
// Expandable toggle
|
|
@@ -563,7 +579,7 @@ $pf-v6-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
563
579
|
// Current
|
|
564
580
|
&.pf-m-current {
|
|
565
581
|
--#{$tabs}__link--Color: var(--#{$tabs}__item--m-current__link--Color);
|
|
566
|
-
--#{$tabs}__link--after--BorderColor: var(--#{$tabs}
|
|
582
|
+
--#{$tabs}__link--after--BorderColor: var(--#{$tabs}--link-accent--color);
|
|
567
583
|
--#{$tabs}__link--after--BorderWidth: var(--#{$tabs}__item--m-current__link--after--BorderWidth);
|
|
568
584
|
--#{$tabs}__item--BackgroundColor: var(--#{$tabs}__item--m-current--BackgroundColor);
|
|
569
585
|
}
|
package/components/_index.css
CHANGED
|
@@ -2807,6 +2807,12 @@ span.pf-v6-c-button.pf-m-link.pf-m-inline {
|
|
|
2807
2807
|
.pf-v6-c-card.pf-m-selectable.pf-m-clickable .pf-v6-c-card__selectable-actions :is(.pf-v6-c-check__input, .pf-v6-c-radio__input):where(:disabled) ~ :is(.pf-v6-c-check__label, .pf-v6-c-radio__label), .pf-v6-c-card.pf-m-selectable.pf-m-clickable.pf-m-disabled {
|
|
2808
2808
|
--pf-v6-c-card--BackgroundColor: var(--pf-v6-c-card--m-selectable--m-disabled--BackgroundColor);
|
|
2809
2809
|
}
|
|
2810
|
+
.pf-v6-c-card__actions:has(> .pf-v6-c-card__selectable-actions input.pf-v6-screen-reader), .pf-v6-c-card.pf-m-clickable:not(.pf-m-selectable) {
|
|
2811
|
+
--pf-v6-c-card__actions--PaddingInlineStart: 0;
|
|
2812
|
+
--pf-v6-c-card__actions--MarginBlockStart: 0;
|
|
2813
|
+
--pf-v6-c-card__actions--MarginBlockEnd: 0;
|
|
2814
|
+
}
|
|
2815
|
+
|
|
2810
2816
|
.pf-v6-c-card.pf-m-compact {
|
|
2811
2817
|
--pf-v6-c-card__title-text--FontSize: var(--pf-v6-c-card--m-compact__title-text--FontSize);
|
|
2812
2818
|
--pf-v6-c-card__body--FontSize: var(--pf-v6-c-card--m-compact__body--FontSize);
|
|
@@ -4175,7 +4181,8 @@ ul) {
|
|
|
4175
4181
|
--pf-v6-c-data-list--sm--BorderBlockStartWidth: var(--pf-t--global--border--width--divider--default);
|
|
4176
4182
|
--pf-v6-c-data-list--sm--BorderBlockStartColor: var(--pf-t--global--border--color--default);
|
|
4177
4183
|
--pf-v6-c-data-list--MarginInlineStart: var(--pf-t--global--spacer--md);
|
|
4178
|
-
--pf-v6-c-data-list__item--BackgroundColor: var(
|
|
4184
|
+
--pf-v6-c-data-list__item--BackgroundColor: var(--pf-t--global--background--color--primary--default);
|
|
4185
|
+
--pf-v6-c-data-list--pf-m-plain__item--BackgroundColor: transparent;
|
|
4179
4186
|
--pf-v6-c-data-list__item--hover--BackgroundColor: var(--pf-t--global--background--color--primary--hover);
|
|
4180
4187
|
--pf-v6-c-data-list__item--m-selected--BackgroundColor: var(--pf-t--global--background--color--primary--clicked);
|
|
4181
4188
|
--pf-v6-c-data-list__item--m-clickable--OutlineOffset: calc(-1 * var(--pf-t--global--spacer--xs));
|
|
@@ -4330,6 +4337,9 @@ ul) {
|
|
|
4330
4337
|
.pf-v6-c-data-list.pf-m-drag-over {
|
|
4331
4338
|
overflow-anchor: none;
|
|
4332
4339
|
}
|
|
4340
|
+
.pf-v6-c-data-list.pf-m-plain {
|
|
4341
|
+
--pf-v6-c-data-list__item--BackgroundColor: var(--pf-v6-c-data-list--pf-m-plain__item--BackgroundColor);
|
|
4342
|
+
}
|
|
4333
4343
|
|
|
4334
4344
|
.pf-v6-c-data-list.pf-m-truncate,
|
|
4335
4345
|
.pf-v6-c-data-list__item-row.pf-m-truncate,
|
|
@@ -19688,6 +19698,8 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
|
|
|
19688
19698
|
--pf-v6-c-tabs__add--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
|
|
19689
19699
|
--pf-v6-c-tabs__add--PaddingInlineStart: var(--pf-t--global--spacer--sm);
|
|
19690
19700
|
--pf-v6-c-tabs__add--PaddingInlineEnd: var(--pf-t--global--spacer--sm);
|
|
19701
|
+
--pf-v6-c-tabs--m-nav__link--BorderRadius: var(--pf-t--global--border--radius--pill);
|
|
19702
|
+
--pf-v6-c-tabs--m-nav__link--disabled--Color: var(--pf-t--global--text--color--disabled);
|
|
19691
19703
|
--pf-v6-c-tabs__link-toggle-icon--Color: var(--pf-t--global--icon--color--regular);
|
|
19692
19704
|
--pf-v6-c-tabs__link-toggle-icon--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--default);
|
|
19693
19705
|
--pf-v6-c-tabs__link-toggle-icon--TransitionDuration: var(--pf-t--global--motion--duration--icon--default);
|
|
@@ -19965,6 +19977,16 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
|
|
|
19965
19977
|
.pf-v6-c-tabs.pf-m-overflow .pf-v6-c-tabs__list {
|
|
19966
19978
|
overflow: visible;
|
|
19967
19979
|
}
|
|
19980
|
+
.pf-v6-c-tabs.pf-m-nav {
|
|
19981
|
+
--pf-v6-c-tabs__link--disabled--BackgroundColor: transparent;
|
|
19982
|
+
--pf-v6-c-tabs__link--disabled--Color: var(--pf-v6-c-tabs--m-nav__link--disabled--Color);
|
|
19983
|
+
--pf-v6-c-tabs__link--hover--BorderColor: transparent;
|
|
19984
|
+
--pf-v6-c-tabs__link--BorderRadius: var(--pf-v6-c-tabs--m-nav__link--BorderRadius);
|
|
19985
|
+
}
|
|
19986
|
+
.pf-v6-c-tabs.pf-m-nav::before,
|
|
19987
|
+
.pf-v6-c-tabs.pf-m-nav .pf-v6-c-tabs__link::before {
|
|
19988
|
+
border: 0;
|
|
19989
|
+
}
|
|
19968
19990
|
|
|
19969
19991
|
.pf-v6-c-tabs__toggle {
|
|
19970
19992
|
display: var(--pf-v6-c-tabs__toggle--Display);
|
|
@@ -20014,7 +20036,7 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
|
|
|
20014
20036
|
}
|
|
20015
20037
|
.pf-v6-c-tabs__item.pf-m-current {
|
|
20016
20038
|
--pf-v6-c-tabs__link--Color: var(--pf-v6-c-tabs__item--m-current__link--Color);
|
|
20017
|
-
--pf-v6-c-tabs__link--after--BorderColor: var(--pf-v6-c-
|
|
20039
|
+
--pf-v6-c-tabs__link--after--BorderColor: var(--pf-v6-c-tabs--link-accent--color);
|
|
20018
20040
|
--pf-v6-c-tabs__link--after--BorderWidth: var(--pf-v6-c-tabs__item--m-current__link--after--BorderWidth);
|
|
20019
20041
|
--pf-v6-c-tabs__item--BackgroundColor: var(--pf-v6-c-tabs__item--m-current--BackgroundColor);
|
|
20020
20042
|
}
|