@patternfly/patternfly 6.1.0-prerelease.9 → 6.1.0
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/Label/label.css +4 -1
- package/components/Label/label.scss +4 -1
- package/components/Table/table.css +3 -0
- package/components/Table/table.scss +4 -0
- package/components/_index.css +7 -1
- package/docs/components/Label/examples/Label.md +35 -0
- package/package.json +1 -1
- package/patternfly-no-globals.css +7 -1
- package/patternfly.css +7 -1
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
--pf-v6-c-label--PaddingBlockEnd: var(--pf-t--global--spacer--xs);
|
|
5
5
|
--pf-v6-c-label--PaddingInlineStart: var(--pf-t--global--spacer--sm);
|
|
6
6
|
--pf-v6-c-label--MaxWidth: 100%;
|
|
7
|
-
--pf-v6-c-label--MinWidth:
|
|
7
|
+
--pf-v6-c-label--MinWidth: calc((var(--pf-v6-c-label--FontSize) * var(--pf-t--global--font--line-height--body) + var(--pf-v6-c-label--PaddingBlockStart) + var(--pf-v6-c-label--PaddingBlockEnd)));
|
|
8
8
|
--pf-v6-c-label--BorderWidth: 0;
|
|
9
9
|
--pf-v6-c-label--BorderColor: transparent;
|
|
10
10
|
--pf-v6-c-label--BorderRadius: var(--pf-t--global--border--radius--pill);
|
|
@@ -161,6 +161,7 @@
|
|
|
161
161
|
--pf-v6-c-label--m-compact--PaddingInlineStart: var(--pf-t--global--spacer--sm);
|
|
162
162
|
--pf-v6-c-label--m-compact--FontSize: var(--pf-t--global--font--size--body--sm);
|
|
163
163
|
--pf-v6-c-label--m-compact--m-editable--TextUnderlineOffset: 0.0625rem;
|
|
164
|
+
--pf-v6-c-label--m-compact--MinWidth: calc((var(--pf-v6-c-label--m-compact--FontSize) * var(--pf-t--global--font--line-height--body)) + (var(--pf-v6-c-label--m-compact--PaddingBlockStart) + var(--pf-v6-c-label--m-compact--PaddingBlockEnd)));
|
|
164
165
|
--pf-v6-c-label__content--MaxWidth: 100%;
|
|
165
166
|
--pf-v6-c-label__content--Gap: var(--pf-t--global--spacer--gap--text-to-element--compact);
|
|
166
167
|
--pf-v6-c-label__content--Cursor: initial;
|
|
@@ -353,6 +354,7 @@
|
|
|
353
354
|
--pf-v6-c-label--PaddingBlockEnd: var(--pf-v6-c-label--m-compact--PaddingBlockEnd);
|
|
354
355
|
--pf-v6-c-label--PaddingInlineStart: var(--pf-v6-c-label--m-compact--PaddingInlineStart);
|
|
355
356
|
--pf-v6-c-label--FontSize: var(--pf-v6-c-label--m-compact--FontSize);
|
|
357
|
+
--pf-v6-c-label--MinWidth: var(--pf-v6-c-label--m-compact--MinWidth);
|
|
356
358
|
--pf-v6-c-label--m-editable--TextUnderlineOffset: var(--pf-v6-c-label--m-compact--m-editable--TextUnderlineOffset);
|
|
357
359
|
}
|
|
358
360
|
.pf-v6-c-label.pf-m-filled .pf-v6-c-label__actions .pf-v6-c-button {
|
|
@@ -441,6 +443,7 @@
|
|
|
441
443
|
.pf-v6-c-label__content {
|
|
442
444
|
display: inline-flex;
|
|
443
445
|
align-items: center;
|
|
446
|
+
justify-content: center;
|
|
444
447
|
}
|
|
445
448
|
|
|
446
449
|
.pf-v6-c-label__text {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
--#{$label}--PaddingBlockEnd: var(--pf-t--global--spacer--xs);
|
|
7
7
|
--#{$label}--PaddingInlineStart: var(--pf-t--global--spacer--sm);
|
|
8
8
|
--#{$label}--MaxWidth: 100%;
|
|
9
|
-
--#{$label}--MinWidth:
|
|
9
|
+
--#{$label}--MinWidth: calc((var(--#{$label}--FontSize) * var(--pf-t--global--font--line-height--body) + var(--#{$label}--PaddingBlockStart) + var(--#{$label}--PaddingBlockEnd)));
|
|
10
10
|
--#{$label}--BorderWidth: 0;
|
|
11
11
|
--#{$label}--BorderColor: transparent;
|
|
12
12
|
--#{$label}--BorderRadius: var(--pf-t--global--border--radius--pill);
|
|
@@ -203,6 +203,7 @@
|
|
|
203
203
|
--#{$label}--m-compact--PaddingInlineStart: var(--pf-t--global--spacer--sm);
|
|
204
204
|
--#{$label}--m-compact--FontSize: var(--pf-t--global--font--size--body--sm);
|
|
205
205
|
--#{$label}--m-compact--m-editable--TextUnderlineOffset: #{pf-size-prem(1px)};
|
|
206
|
+
--#{$label}--m-compact--MinWidth: calc((var(--#{$label}--m-compact--FontSize) * var(--pf-t--global--font--line-height--body)) + (var(--#{$label}--m-compact--PaddingBlockStart) + var(--#{$label}--m-compact--PaddingBlockEnd)));
|
|
206
207
|
|
|
207
208
|
// Content
|
|
208
209
|
--#{$label}__content--MaxWidth: 100%;
|
|
@@ -424,6 +425,7 @@
|
|
|
424
425
|
--#{$label}--PaddingBlockEnd: var(--#{$label}--m-compact--PaddingBlockEnd);
|
|
425
426
|
--#{$label}--PaddingInlineStart: var(--#{$label}--m-compact--PaddingInlineStart);
|
|
426
427
|
--#{$label}--FontSize: var(--#{$label}--m-compact--FontSize);
|
|
428
|
+
--#{$label}--MinWidth: var(--#{$label}--m-compact--MinWidth);
|
|
427
429
|
--#{$label}--m-editable--TextUnderlineOffset: var(--#{$label}--m-compact--m-editable--TextUnderlineOffset);
|
|
428
430
|
}
|
|
429
431
|
|
|
@@ -535,6 +537,7 @@
|
|
|
535
537
|
.#{$label}__content {
|
|
536
538
|
display: inline-flex;
|
|
537
539
|
align-items: center;
|
|
540
|
+
justify-content: center;
|
|
538
541
|
}
|
|
539
542
|
|
|
540
543
|
.#{$label}__text {
|
|
@@ -308,6 +308,9 @@
|
|
|
308
308
|
--pf-v6-c-table--cell--TextOverflow: ellipsis;
|
|
309
309
|
--pf-v6-c-table--cell--WhiteSpace: nowrap;
|
|
310
310
|
}
|
|
311
|
+
.pf-v6-c-table thead:where(.pf-v6-c-table__thead) .pf-v6-c-table__sort .pf-v6-c-table__button {
|
|
312
|
+
margin-block-end: calc(var(--pf-v6-c-table__button--PaddingBlockEnd) * -1);
|
|
313
|
+
}
|
|
311
314
|
.pf-v6-c-table thead:where(.pf-v6-c-table__thead).pf-m-nested-column-header button:where(.pf-v6-c-button) {
|
|
312
315
|
outline-offset: var(--pf-v6-c-table__thead--m-nested-column-header--button--OutlineOffset);
|
|
313
316
|
}
|
|
@@ -406,6 +406,10 @@
|
|
|
406
406
|
--#{$table}--cell--TextOverflow: ellipsis;
|
|
407
407
|
--#{$table}--cell--WhiteSpace: nowrap;
|
|
408
408
|
|
|
409
|
+
.#{$table}__sort .#{$table}__button {
|
|
410
|
+
margin-block-end: calc(var(--#{$table}__button--PaddingBlockEnd) * -1);
|
|
411
|
+
}
|
|
412
|
+
|
|
409
413
|
// stylelint-disable
|
|
410
414
|
&.pf-m-nested-column-header {
|
|
411
415
|
button:where(.#{$button}) {
|
package/components/_index.css
CHANGED
|
@@ -7882,7 +7882,7 @@ label.pf-v6-c-input-group__text {
|
|
|
7882
7882
|
--pf-v6-c-label--PaddingBlockEnd: var(--pf-t--global--spacer--xs);
|
|
7883
7883
|
--pf-v6-c-label--PaddingInlineStart: var(--pf-t--global--spacer--sm);
|
|
7884
7884
|
--pf-v6-c-label--MaxWidth: 100%;
|
|
7885
|
-
--pf-v6-c-label--MinWidth:
|
|
7885
|
+
--pf-v6-c-label--MinWidth: calc((var(--pf-v6-c-label--FontSize) * var(--pf-t--global--font--line-height--body) + var(--pf-v6-c-label--PaddingBlockStart) + var(--pf-v6-c-label--PaddingBlockEnd)));
|
|
7886
7886
|
--pf-v6-c-label--BorderWidth: 0;
|
|
7887
7887
|
--pf-v6-c-label--BorderColor: transparent;
|
|
7888
7888
|
--pf-v6-c-label--BorderRadius: var(--pf-t--global--border--radius--pill);
|
|
@@ -8039,6 +8039,7 @@ label.pf-v6-c-input-group__text {
|
|
|
8039
8039
|
--pf-v6-c-label--m-compact--PaddingInlineStart: var(--pf-t--global--spacer--sm);
|
|
8040
8040
|
--pf-v6-c-label--m-compact--FontSize: var(--pf-t--global--font--size--body--sm);
|
|
8041
8041
|
--pf-v6-c-label--m-compact--m-editable--TextUnderlineOffset: 0.0625rem;
|
|
8042
|
+
--pf-v6-c-label--m-compact--MinWidth: calc((var(--pf-v6-c-label--m-compact--FontSize) * var(--pf-t--global--font--line-height--body)) + (var(--pf-v6-c-label--m-compact--PaddingBlockStart) + var(--pf-v6-c-label--m-compact--PaddingBlockEnd)));
|
|
8042
8043
|
--pf-v6-c-label__content--MaxWidth: 100%;
|
|
8043
8044
|
--pf-v6-c-label__content--Gap: var(--pf-t--global--spacer--gap--text-to-element--compact);
|
|
8044
8045
|
--pf-v6-c-label__content--Cursor: initial;
|
|
@@ -8231,6 +8232,7 @@ label.pf-v6-c-input-group__text {
|
|
|
8231
8232
|
--pf-v6-c-label--PaddingBlockEnd: var(--pf-v6-c-label--m-compact--PaddingBlockEnd);
|
|
8232
8233
|
--pf-v6-c-label--PaddingInlineStart: var(--pf-v6-c-label--m-compact--PaddingInlineStart);
|
|
8233
8234
|
--pf-v6-c-label--FontSize: var(--pf-v6-c-label--m-compact--FontSize);
|
|
8235
|
+
--pf-v6-c-label--MinWidth: var(--pf-v6-c-label--m-compact--MinWidth);
|
|
8234
8236
|
--pf-v6-c-label--m-editable--TextUnderlineOffset: var(--pf-v6-c-label--m-compact--m-editable--TextUnderlineOffset);
|
|
8235
8237
|
}
|
|
8236
8238
|
.pf-v6-c-label.pf-m-filled .pf-v6-c-label__actions .pf-v6-c-button {
|
|
@@ -8319,6 +8321,7 @@ label.pf-v6-c-input-group__text {
|
|
|
8319
8321
|
.pf-v6-c-label__content {
|
|
8320
8322
|
display: inline-flex;
|
|
8321
8323
|
align-items: center;
|
|
8324
|
+
justify-content: center;
|
|
8322
8325
|
}
|
|
8323
8326
|
|
|
8324
8327
|
.pf-v6-c-label__text {
|
|
@@ -16532,6 +16535,9 @@ label.pf-v6-c-radio, .pf-v6-c-radio__label,
|
|
|
16532
16535
|
--pf-v6-c-table--cell--TextOverflow: ellipsis;
|
|
16533
16536
|
--pf-v6-c-table--cell--WhiteSpace: nowrap;
|
|
16534
16537
|
}
|
|
16538
|
+
.pf-v6-c-table thead:where(.pf-v6-c-table__thead) .pf-v6-c-table__sort .pf-v6-c-table__button {
|
|
16539
|
+
margin-block-end: calc(var(--pf-v6-c-table__button--PaddingBlockEnd) * -1);
|
|
16540
|
+
}
|
|
16535
16541
|
.pf-v6-c-table thead:where(.pf-v6-c-table__thead).pf-m-nested-column-header button:where(.pf-v6-c-button) {
|
|
16536
16542
|
outline-offset: var(--pf-v6-c-table__thead--m-nested-column-header--button--OutlineOffset);
|
|
16537
16543
|
}
|
|
@@ -6582,6 +6582,41 @@ Use a label group to display multiple labels at once.
|
|
|
6582
6582
|
</div>
|
|
6583
6583
|
</div>
|
|
6584
6584
|
|
|
6585
|
+
<br />
|
|
6586
|
+
<br />
|
|
6587
|
+
|
|
6588
|
+
<div class="pf-v6-c-label-group">
|
|
6589
|
+
<div class="pf-v6-c-label-group__main">
|
|
6590
|
+
<ul
|
|
6591
|
+
class="pf-v6-c-label-group__list"
|
|
6592
|
+
role="list"
|
|
6593
|
+
aria-label="Group of labels"
|
|
6594
|
+
>
|
|
6595
|
+
<li class="pf-v6-c-label-group__list-item">
|
|
6596
|
+
<span class="pf-v6-c-label">
|
|
6597
|
+
<span class="pf-v6-c-label__content">
|
|
6598
|
+
<span class="pf-v6-c-label__text">A</span>
|
|
6599
|
+
</span>
|
|
6600
|
+
</span>
|
|
6601
|
+
</li>
|
|
6602
|
+
<li class="pf-v6-c-label-group__list-item">
|
|
6603
|
+
<span class="pf-v6-c-label pf-m-blue">
|
|
6604
|
+
<span class="pf-v6-c-label__content">
|
|
6605
|
+
<span class="pf-v6-c-label__text">T</span>
|
|
6606
|
+
</span>
|
|
6607
|
+
</span>
|
|
6608
|
+
</li>
|
|
6609
|
+
<li class="pf-v6-c-label-group__list-item">
|
|
6610
|
+
<span class="pf-v6-c-label pf-m-green">
|
|
6611
|
+
<span class="pf-v6-c-label__content">
|
|
6612
|
+
<span class="pf-v6-c-label__text">I</span>
|
|
6613
|
+
</span>
|
|
6614
|
+
</span>
|
|
6615
|
+
</li>
|
|
6616
|
+
</ul>
|
|
6617
|
+
</div>
|
|
6618
|
+
</div>
|
|
6619
|
+
|
|
6585
6620
|
```
|
|
6586
6621
|
|
|
6587
6622
|
### Label group with overflow
|
package/package.json
CHANGED
|
@@ -15344,7 +15344,7 @@ label.pf-v6-c-input-group__text {
|
|
|
15344
15344
|
--pf-v6-c-label--PaddingBlockEnd: var(--pf-t--global--spacer--xs);
|
|
15345
15345
|
--pf-v6-c-label--PaddingInlineStart: var(--pf-t--global--spacer--sm);
|
|
15346
15346
|
--pf-v6-c-label--MaxWidth: 100%;
|
|
15347
|
-
--pf-v6-c-label--MinWidth:
|
|
15347
|
+
--pf-v6-c-label--MinWidth: calc((var(--pf-v6-c-label--FontSize) * var(--pf-t--global--font--line-height--body) + var(--pf-v6-c-label--PaddingBlockStart) + var(--pf-v6-c-label--PaddingBlockEnd)));
|
|
15348
15348
|
--pf-v6-c-label--BorderWidth: 0;
|
|
15349
15349
|
--pf-v6-c-label--BorderColor: transparent;
|
|
15350
15350
|
--pf-v6-c-label--BorderRadius: var(--pf-t--global--border--radius--pill);
|
|
@@ -15501,6 +15501,7 @@ label.pf-v6-c-input-group__text {
|
|
|
15501
15501
|
--pf-v6-c-label--m-compact--PaddingInlineStart: var(--pf-t--global--spacer--sm);
|
|
15502
15502
|
--pf-v6-c-label--m-compact--FontSize: var(--pf-t--global--font--size--body--sm);
|
|
15503
15503
|
--pf-v6-c-label--m-compact--m-editable--TextUnderlineOffset: 0.0625rem;
|
|
15504
|
+
--pf-v6-c-label--m-compact--MinWidth: calc((var(--pf-v6-c-label--m-compact--FontSize) * var(--pf-t--global--font--line-height--body)) + (var(--pf-v6-c-label--m-compact--PaddingBlockStart) + var(--pf-v6-c-label--m-compact--PaddingBlockEnd)));
|
|
15504
15505
|
--pf-v6-c-label__content--MaxWidth: 100%;
|
|
15505
15506
|
--pf-v6-c-label__content--Gap: var(--pf-t--global--spacer--gap--text-to-element--compact);
|
|
15506
15507
|
--pf-v6-c-label__content--Cursor: initial;
|
|
@@ -15693,6 +15694,7 @@ label.pf-v6-c-input-group__text {
|
|
|
15693
15694
|
--pf-v6-c-label--PaddingBlockEnd: var(--pf-v6-c-label--m-compact--PaddingBlockEnd);
|
|
15694
15695
|
--pf-v6-c-label--PaddingInlineStart: var(--pf-v6-c-label--m-compact--PaddingInlineStart);
|
|
15695
15696
|
--pf-v6-c-label--FontSize: var(--pf-v6-c-label--m-compact--FontSize);
|
|
15697
|
+
--pf-v6-c-label--MinWidth: var(--pf-v6-c-label--m-compact--MinWidth);
|
|
15696
15698
|
--pf-v6-c-label--m-editable--TextUnderlineOffset: var(--pf-v6-c-label--m-compact--m-editable--TextUnderlineOffset);
|
|
15697
15699
|
}
|
|
15698
15700
|
.pf-v6-c-label.pf-m-filled .pf-v6-c-label__actions .pf-v6-c-button {
|
|
@@ -15781,6 +15783,7 @@ label.pf-v6-c-input-group__text {
|
|
|
15781
15783
|
.pf-v6-c-label__content {
|
|
15782
15784
|
display: inline-flex;
|
|
15783
15785
|
align-items: center;
|
|
15786
|
+
justify-content: center;
|
|
15784
15787
|
}
|
|
15785
15788
|
|
|
15786
15789
|
.pf-v6-c-label__text {
|
|
@@ -23994,6 +23997,9 @@ label.pf-v6-c-radio, .pf-v6-c-radio__label,
|
|
|
23994
23997
|
--pf-v6-c-table--cell--TextOverflow: ellipsis;
|
|
23995
23998
|
--pf-v6-c-table--cell--WhiteSpace: nowrap;
|
|
23996
23999
|
}
|
|
24000
|
+
.pf-v6-c-table thead:where(.pf-v6-c-table__thead) .pf-v6-c-table__sort .pf-v6-c-table__button {
|
|
24001
|
+
margin-block-end: calc(var(--pf-v6-c-table__button--PaddingBlockEnd) * -1);
|
|
24002
|
+
}
|
|
23997
24003
|
.pf-v6-c-table thead:where(.pf-v6-c-table__thead).pf-m-nested-column-header button:where(.pf-v6-c-button) {
|
|
23998
24004
|
outline-offset: var(--pf-v6-c-table__thead--m-nested-column-header--button--OutlineOffset);
|
|
23999
24005
|
}
|
package/patternfly.css
CHANGED
|
@@ -15480,7 +15480,7 @@ label.pf-v6-c-input-group__text {
|
|
|
15480
15480
|
--pf-v6-c-label--PaddingBlockEnd: var(--pf-t--global--spacer--xs);
|
|
15481
15481
|
--pf-v6-c-label--PaddingInlineStart: var(--pf-t--global--spacer--sm);
|
|
15482
15482
|
--pf-v6-c-label--MaxWidth: 100%;
|
|
15483
|
-
--pf-v6-c-label--MinWidth:
|
|
15483
|
+
--pf-v6-c-label--MinWidth: calc((var(--pf-v6-c-label--FontSize) * var(--pf-t--global--font--line-height--body) + var(--pf-v6-c-label--PaddingBlockStart) + var(--pf-v6-c-label--PaddingBlockEnd)));
|
|
15484
15484
|
--pf-v6-c-label--BorderWidth: 0;
|
|
15485
15485
|
--pf-v6-c-label--BorderColor: transparent;
|
|
15486
15486
|
--pf-v6-c-label--BorderRadius: var(--pf-t--global--border--radius--pill);
|
|
@@ -15637,6 +15637,7 @@ label.pf-v6-c-input-group__text {
|
|
|
15637
15637
|
--pf-v6-c-label--m-compact--PaddingInlineStart: var(--pf-t--global--spacer--sm);
|
|
15638
15638
|
--pf-v6-c-label--m-compact--FontSize: var(--pf-t--global--font--size--body--sm);
|
|
15639
15639
|
--pf-v6-c-label--m-compact--m-editable--TextUnderlineOffset: 0.0625rem;
|
|
15640
|
+
--pf-v6-c-label--m-compact--MinWidth: calc((var(--pf-v6-c-label--m-compact--FontSize) * var(--pf-t--global--font--line-height--body)) + (var(--pf-v6-c-label--m-compact--PaddingBlockStart) + var(--pf-v6-c-label--m-compact--PaddingBlockEnd)));
|
|
15640
15641
|
--pf-v6-c-label__content--MaxWidth: 100%;
|
|
15641
15642
|
--pf-v6-c-label__content--Gap: var(--pf-t--global--spacer--gap--text-to-element--compact);
|
|
15642
15643
|
--pf-v6-c-label__content--Cursor: initial;
|
|
@@ -15829,6 +15830,7 @@ label.pf-v6-c-input-group__text {
|
|
|
15829
15830
|
--pf-v6-c-label--PaddingBlockEnd: var(--pf-v6-c-label--m-compact--PaddingBlockEnd);
|
|
15830
15831
|
--pf-v6-c-label--PaddingInlineStart: var(--pf-v6-c-label--m-compact--PaddingInlineStart);
|
|
15831
15832
|
--pf-v6-c-label--FontSize: var(--pf-v6-c-label--m-compact--FontSize);
|
|
15833
|
+
--pf-v6-c-label--MinWidth: var(--pf-v6-c-label--m-compact--MinWidth);
|
|
15832
15834
|
--pf-v6-c-label--m-editable--TextUnderlineOffset: var(--pf-v6-c-label--m-compact--m-editable--TextUnderlineOffset);
|
|
15833
15835
|
}
|
|
15834
15836
|
.pf-v6-c-label.pf-m-filled .pf-v6-c-label__actions .pf-v6-c-button {
|
|
@@ -15917,6 +15919,7 @@ label.pf-v6-c-input-group__text {
|
|
|
15917
15919
|
.pf-v6-c-label__content {
|
|
15918
15920
|
display: inline-flex;
|
|
15919
15921
|
align-items: center;
|
|
15922
|
+
justify-content: center;
|
|
15920
15923
|
}
|
|
15921
15924
|
|
|
15922
15925
|
.pf-v6-c-label__text {
|
|
@@ -24130,6 +24133,9 @@ label.pf-v6-c-radio, .pf-v6-c-radio__label,
|
|
|
24130
24133
|
--pf-v6-c-table--cell--TextOverflow: ellipsis;
|
|
24131
24134
|
--pf-v6-c-table--cell--WhiteSpace: nowrap;
|
|
24132
24135
|
}
|
|
24136
|
+
.pf-v6-c-table thead:where(.pf-v6-c-table__thead) .pf-v6-c-table__sort .pf-v6-c-table__button {
|
|
24137
|
+
margin-block-end: calc(var(--pf-v6-c-table__button--PaddingBlockEnd) * -1);
|
|
24138
|
+
}
|
|
24133
24139
|
.pf-v6-c-table thead:where(.pf-v6-c-table__thead).pf-m-nested-column-header button:where(.pf-v6-c-button) {
|
|
24134
24140
|
outline-offset: var(--pf-v6-c-table__thead--m-nested-column-header--button--OutlineOffset);
|
|
24135
24141
|
}
|