@patternfly/patternfly 6.1.0-prerelease.1 → 6.1.0-prerelease.2

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.
@@ -51,9 +51,22 @@
51
51
  --pf-v6-c-code-editor__tab-icon--text--MarginInlineStart: var(--pf-t--global--spacer--sm);
52
52
  }
53
53
 
54
+ .pf-v6-c-code-editor {
55
+ display: flex;
56
+ flex-direction: column;
57
+ }
54
58
  .pf-v6-c-code-editor.pf-m-read-only {
55
59
  --pf-v6-c-code-editor__main--BackgroundColor: var(--pf-v6-c-code-editor--m-read-only__main--BackgroundColor);
56
60
  }
61
+ .pf-v6-c-code-editor.pf-m-full-height {
62
+ height: 100%;
63
+ }
64
+
65
+ .pf-v6-c-code-editor__container {
66
+ display: flex;
67
+ flex-direction: column;
68
+ flex-grow: 1;
69
+ }
57
70
 
58
71
  .pf-v6-c-code-editor__header {
59
72
  position: relative;
@@ -120,6 +133,7 @@
120
133
 
121
134
  .pf-v6-c-code-editor__main {
122
135
  position: relative;
136
+ flex-grow: 1;
123
137
  color: var(--pf-v6-c-code-editor__main--Color, inherit);
124
138
  background-color: var(--pf-v6-c-code-editor__main--BackgroundColor);
125
139
  border: var(--pf-v6-c-code-editor__main--BorderWidth) solid;
@@ -141,6 +155,7 @@
141
155
 
142
156
  .pf-v6-c-code-editor__code {
143
157
  position: relative;
158
+ height: 100%;
144
159
  padding-block-start: var(--pf-v6-c-code-editor__code--PaddingBlockStart);
145
160
  padding-block-end: var(--pf-v6-c-code-editor__code--PaddingBlockEnd);
146
161
  padding-inline-start: var(--pf-v6-c-code-editor__code--PaddingInlineStart);
@@ -71,9 +71,22 @@
71
71
  }
72
72
 
73
73
  .#{$code-editor} {
74
+ display: flex;
75
+ flex-direction: column;
76
+
74
77
  &.pf-m-read-only {
75
78
  --#{$code-editor}__main--BackgroundColor: var(--#{$code-editor}--m-read-only__main--BackgroundColor);
76
79
  }
80
+
81
+ &.pf-m-full-height {
82
+ height: 100%;
83
+ }
84
+ }
85
+
86
+ .#{$code-editor}__container {
87
+ display: flex;
88
+ flex-direction: column;
89
+ flex-grow: 1;
77
90
  }
78
91
 
79
92
  .#{$code-editor}__header {
@@ -144,7 +157,8 @@
144
157
  }
145
158
 
146
159
  .#{$code-editor}__main {
147
- position: relative;
160
+ position: relative;
161
+ flex-grow: 1;
148
162
  color: var(--#{$code-editor}__main--Color, inherit);
149
163
  background-color: var(--#{$code-editor}__main--BackgroundColor);
150
164
  border: var(--#{$code-editor}__main--BorderWidth) solid;
@@ -170,6 +184,7 @@
170
184
 
171
185
  .#{$code-editor}__code {
172
186
  position: relative;
187
+ height: 100%;
173
188
  padding-block-start: var(--#{$code-editor}__code--PaddingBlockStart);
174
189
  padding-block-end: var(--#{$code-editor}__code--PaddingBlockEnd);
175
190
  padding-inline-start: var(--#{$code-editor}__code--PaddingInlineStart);
@@ -355,7 +355,7 @@
355
355
  --pf-v6-c-table--cell--Width: auto;
356
356
  }
357
357
 
358
- @media screen and (max-width: 48rem) {
358
+ @media screen and (max-width: calc(48rem - 1px)) {
359
359
  .pf-m-grid-md.pf-v6-c-table {
360
360
  --pf-v6-c-table--cell--PaddingBlockStart: var(--pf-v6-c-table--m-grid--cell--PaddingBlockStart);
361
361
  --pf-v6-c-table--cell--PaddingInlineEnd: var(--pf-v6-c-table--m-grid--cell--PaddingInlineEnd);
@@ -625,14 +625,14 @@
625
625
  text-align: end;
626
626
  }
627
627
  }
628
- @media screen and (max-width: 48rem) and (max-width: 36rem) {
628
+ @media screen and (max-width: calc(48rem - 1px)) and (max-width: 36rem) {
629
629
  .pf-m-grid-md.pf-v6-c-table .pf-v6-c-table__action {
630
630
  grid-row-start: 1;
631
631
  grid-column-start: 2;
632
632
  margin-inline-start: 0;
633
633
  }
634
634
  }
635
- @media screen and (max-width: 48rem) {
635
+ @media screen and (max-width: calc(48rem - 1px)) {
636
636
  .pf-m-grid-md.pf-v6-c-table .pf-v6-c-table__inline-edit-action {
637
637
  grid-column: 2;
638
638
  grid-row: 2;
@@ -658,7 +658,7 @@
658
658
  }
659
659
  }
660
660
 
661
- @media screen and (max-width: 62rem) {
661
+ @media screen and (max-width: calc(62rem - 1px)) {
662
662
  .pf-m-grid-lg.pf-v6-c-table {
663
663
  --pf-v6-c-table--cell--PaddingBlockStart: var(--pf-v6-c-table--m-grid--cell--PaddingBlockStart);
664
664
  --pf-v6-c-table--cell--PaddingInlineEnd: var(--pf-v6-c-table--m-grid--cell--PaddingInlineEnd);
@@ -928,14 +928,14 @@
928
928
  text-align: end;
929
929
  }
930
930
  }
931
- @media screen and (max-width: 62rem) and (max-width: 36rem) {
931
+ @media screen and (max-width: calc(62rem - 1px)) and (max-width: 36rem) {
932
932
  .pf-m-grid-lg.pf-v6-c-table .pf-v6-c-table__action {
933
933
  grid-row-start: 1;
934
934
  grid-column-start: 2;
935
935
  margin-inline-start: 0;
936
936
  }
937
937
  }
938
- @media screen and (max-width: 62rem) {
938
+ @media screen and (max-width: calc(62rem - 1px)) {
939
939
  .pf-m-grid-lg.pf-v6-c-table .pf-v6-c-table__inline-edit-action {
940
940
  grid-column: 2;
941
941
  grid-row: 2;
@@ -961,7 +961,7 @@
961
961
  }
962
962
  }
963
963
 
964
- @media screen and (max-width: 75rem) {
964
+ @media screen and (max-width: calc(75rem - 1px)) {
965
965
  .pf-m-grid-xl.pf-v6-c-table {
966
966
  --pf-v6-c-table--cell--PaddingBlockStart: var(--pf-v6-c-table--m-grid--cell--PaddingBlockStart);
967
967
  --pf-v6-c-table--cell--PaddingInlineEnd: var(--pf-v6-c-table--m-grid--cell--PaddingInlineEnd);
@@ -1231,14 +1231,14 @@
1231
1231
  text-align: end;
1232
1232
  }
1233
1233
  }
1234
- @media screen and (max-width: 75rem) and (max-width: 36rem) {
1234
+ @media screen and (max-width: calc(75rem - 1px)) and (max-width: 36rem) {
1235
1235
  .pf-m-grid-xl.pf-v6-c-table .pf-v6-c-table__action {
1236
1236
  grid-row-start: 1;
1237
1237
  grid-column-start: 2;
1238
1238
  margin-inline-start: 0;
1239
1239
  }
1240
1240
  }
1241
- @media screen and (max-width: 75rem) {
1241
+ @media screen and (max-width: calc(75rem - 1px)) {
1242
1242
  .pf-m-grid-xl.pf-v6-c-table .pf-v6-c-table__inline-edit-action {
1243
1243
  grid-column: 2;
1244
1244
  grid-row: 2;
@@ -1264,7 +1264,7 @@
1264
1264
  }
1265
1265
  }
1266
1266
 
1267
- @media screen and (max-width: 90.625rem) {
1267
+ @media screen and (max-width: calc(90.625rem - 1px)) {
1268
1268
  .pf-m-grid-2xl.pf-v6-c-table {
1269
1269
  --pf-v6-c-table--cell--PaddingBlockStart: var(--pf-v6-c-table--m-grid--cell--PaddingBlockStart);
1270
1270
  --pf-v6-c-table--cell--PaddingInlineEnd: var(--pf-v6-c-table--m-grid--cell--PaddingInlineEnd);
@@ -1534,14 +1534,14 @@
1534
1534
  text-align: end;
1535
1535
  }
1536
1536
  }
1537
- @media screen and (max-width: 90.625rem) and (max-width: 36rem) {
1537
+ @media screen and (max-width: calc(90.625rem - 1px)) and (max-width: 36rem) {
1538
1538
  .pf-m-grid-2xl.pf-v6-c-table .pf-v6-c-table__action {
1539
1539
  grid-row-start: 1;
1540
1540
  grid-column-start: 2;
1541
1541
  margin-inline-start: 0;
1542
1542
  }
1543
1543
  }
1544
- @media screen and (max-width: 90.625rem) {
1544
+ @media screen and (max-width: calc(90.625rem - 1px)) {
1545
1545
  .pf-m-grid-2xl.pf-v6-c-table .pf-v6-c-table__inline-edit-action {
1546
1546
  grid-column: 2;
1547
1547
  grid-row: 2;
@@ -7,25 +7,25 @@
7
7
  }
8
8
 
9
9
  .pf-m-grid-md.#{$table} {
10
- @media screen and (max-width: $pf-v6-global--breakpoint--md) {
10
+ @media screen and (max-width: pf-v6-max-width-bp($pf-v6-global--breakpoint--md)) {
11
11
  @content;
12
12
  }
13
13
  }
14
14
 
15
15
  .pf-m-grid-lg.#{$table} {
16
- @media screen and (max-width: $pf-v6-global--breakpoint--lg) {
16
+ @media screen and (max-width: pf-v6-max-width-bp($pf-v6-global--breakpoint--lg)) {
17
17
  @content;
18
18
  }
19
19
  }
20
20
 
21
21
  .pf-m-grid-xl.#{$table} {
22
- @media screen and (max-width: $pf-v6-global--breakpoint--xl) {
22
+ @media screen and (max-width: pf-v6-max-width-bp($pf-v6-global--breakpoint--xl)) {
23
23
  @content;
24
24
  }
25
25
  }
26
26
 
27
27
  .pf-m-grid-2xl.#{$table} {
28
- @media screen and (max-width: $pf-v6-global--breakpoint--2xl) {
28
+ @media screen and (max-width: pf-v6-max-width-bp($pf-v6-global--breakpoint--2xl)) {
29
29
  @content;
30
30
  }
31
31
  }
@@ -246,7 +246,7 @@
246
246
  --pf-v6-c-table--m-tree-view-grid__tbody--cell--PaddingInlineStart: calc(var(--pf-v6-c-table__tree-view-main--nested-indent--base) * 9 + var(--pf-v6-c-table__tree-view-main--indent--base));
247
247
  }
248
248
 
249
- @media screen and (max-width: 48rem) {
249
+ @media screen and (max-width: calc(48rem - 1px)) {
250
250
  .pf-m-tree-view-grid-md.pf-v6-c-table {
251
251
  --pf-v6-c-table--m-tree-view-grid--tr--OutlineOffset: calc(-1 * var(--pf-t--global--spacer--xs));
252
252
  --pf-v6-c-table--m-tree-view-grid__tbody--cell--PaddingBlockStart: var(--pf-t--global--spacer--md);
@@ -389,7 +389,7 @@
389
389
  }
390
390
  }
391
391
 
392
- @media screen and (max-width: 62rem) {
392
+ @media screen and (max-width: calc(62rem - 1px)) {
393
393
  .pf-m-tree-view-grid-lg.pf-v6-c-table {
394
394
  --pf-v6-c-table--m-tree-view-grid--tr--OutlineOffset: calc(-1 * var(--pf-t--global--spacer--xs));
395
395
  --pf-v6-c-table--m-tree-view-grid__tbody--cell--PaddingBlockStart: var(--pf-t--global--spacer--md);
@@ -532,7 +532,7 @@
532
532
  }
533
533
  }
534
534
 
535
- @media screen and (max-width: 75rem) {
535
+ @media screen and (max-width: calc(75rem - 1px)) {
536
536
  .pf-m-tree-view-grid-xl.pf-v6-c-table {
537
537
  --pf-v6-c-table--m-tree-view-grid--tr--OutlineOffset: calc(-1 * var(--pf-t--global--spacer--xs));
538
538
  --pf-v6-c-table--m-tree-view-grid__tbody--cell--PaddingBlockStart: var(--pf-t--global--spacer--md);
@@ -675,7 +675,7 @@
675
675
  }
676
676
  }
677
677
 
678
- @media screen and (max-width: 90.625rem) {
678
+ @media screen and (max-width: calc(90.625rem - 1px)) {
679
679
  .pf-m-tree-view-grid-2xl.pf-v6-c-table {
680
680
  --pf-v6-c-table--m-tree-view-grid--tr--OutlineOffset: calc(-1 * var(--pf-t--global--spacer--xs));
681
681
  --pf-v6-c-table--m-tree-view-grid__tbody--cell--PaddingBlockStart: var(--pf-t--global--spacer--md);
@@ -126,25 +126,25 @@ $pf-v6-c-tree-view--MaxDepth: 10;
126
126
  }
127
127
 
128
128
  .pf-m-tree-view-grid-md.#{$table} {
129
- @media screen and (max-width: $pf-v6-global--breakpoint--md) {
129
+ @media screen and (max-width: pf-v6-max-width-bp($pf-v6-global--breakpoint--md)) {
130
130
  @content;
131
131
  }
132
132
  }
133
133
 
134
134
  .pf-m-tree-view-grid-lg.#{$table} {
135
- @media screen and (max-width: $pf-v6-global--breakpoint--lg) {
135
+ @media screen and (max-width: pf-v6-max-width-bp($pf-v6-global--breakpoint--lg)) {
136
136
  @content;
137
137
  }
138
138
  }
139
139
 
140
140
  .pf-m-tree-view-grid-xl.#{$table} {
141
- @media screen and (max-width: $pf-v6-global--breakpoint--xl) {
141
+ @media screen and (max-width: pf-v6-max-width-bp($pf-v6-global--breakpoint--xl)) {
142
142
  @content;
143
143
  }
144
144
  }
145
145
 
146
146
  .pf-m-tree-view-grid-2xl.#{$table} {
147
- @media screen and (max-width: $pf-v6-global--breakpoint--2xl) {
147
+ @media screen and (max-width: pf-v6-max-width-bp($pf-v6-global--breakpoint--2xl)) {
148
148
  @content;
149
149
  }
150
150
  }
@@ -2805,9 +2805,22 @@ label.pf-v6-c-check, .pf-v6-c-check__label,
2805
2805
  --pf-v6-c-code-editor__tab-icon--text--MarginInlineStart: var(--pf-t--global--spacer--sm);
2806
2806
  }
2807
2807
 
2808
+ .pf-v6-c-code-editor {
2809
+ display: flex;
2810
+ flex-direction: column;
2811
+ }
2808
2812
  .pf-v6-c-code-editor.pf-m-read-only {
2809
2813
  --pf-v6-c-code-editor__main--BackgroundColor: var(--pf-v6-c-code-editor--m-read-only__main--BackgroundColor);
2810
2814
  }
2815
+ .pf-v6-c-code-editor.pf-m-full-height {
2816
+ height: 100%;
2817
+ }
2818
+
2819
+ .pf-v6-c-code-editor__container {
2820
+ display: flex;
2821
+ flex-direction: column;
2822
+ flex-grow: 1;
2823
+ }
2811
2824
 
2812
2825
  .pf-v6-c-code-editor__header {
2813
2826
  position: relative;
@@ -2874,6 +2887,7 @@ label.pf-v6-c-check, .pf-v6-c-check__label,
2874
2887
 
2875
2888
  .pf-v6-c-code-editor__main {
2876
2889
  position: relative;
2890
+ flex-grow: 1;
2877
2891
  color: var(--pf-v6-c-code-editor__main--Color, inherit);
2878
2892
  background-color: var(--pf-v6-c-code-editor__main--BackgroundColor);
2879
2893
  border: var(--pf-v6-c-code-editor__main--BorderWidth) solid;
@@ -2895,6 +2909,7 @@ label.pf-v6-c-check, .pf-v6-c-check__label,
2895
2909
 
2896
2910
  .pf-v6-c-code-editor__code {
2897
2911
  position: relative;
2912
+ height: 100%;
2898
2913
  padding-block-start: var(--pf-v6-c-code-editor__code--PaddingBlockStart);
2899
2914
  padding-block-end: var(--pf-v6-c-code-editor__code--PaddingBlockEnd);
2900
2915
  padding-inline-start: var(--pf-v6-c-code-editor__code--PaddingInlineStart);
@@ -14927,7 +14942,7 @@ label.pf-v6-c-radio, .pf-v6-c-radio__label,
14927
14942
  --pf-v6-c-table--cell--Width: auto;
14928
14943
  }
14929
14944
 
14930
- @media screen and (max-width: 48rem) {
14945
+ @media screen and (max-width: calc(48rem - 1px)) {
14931
14946
  .pf-m-grid-md.pf-v6-c-table {
14932
14947
  --pf-v6-c-table--cell--PaddingBlockStart: var(--pf-v6-c-table--m-grid--cell--PaddingBlockStart);
14933
14948
  --pf-v6-c-table--cell--PaddingInlineEnd: var(--pf-v6-c-table--m-grid--cell--PaddingInlineEnd);
@@ -15197,14 +15212,14 @@ label.pf-v6-c-radio, .pf-v6-c-radio__label,
15197
15212
  text-align: end;
15198
15213
  }
15199
15214
  }
15200
- @media screen and (max-width: 48rem) and (max-width: 36rem) {
15215
+ @media screen and (max-width: calc(48rem - 1px)) and (max-width: 36rem) {
15201
15216
  .pf-m-grid-md.pf-v6-c-table .pf-v6-c-table__action {
15202
15217
  grid-row-start: 1;
15203
15218
  grid-column-start: 2;
15204
15219
  margin-inline-start: 0;
15205
15220
  }
15206
15221
  }
15207
- @media screen and (max-width: 48rem) {
15222
+ @media screen and (max-width: calc(48rem - 1px)) {
15208
15223
  .pf-m-grid-md.pf-v6-c-table .pf-v6-c-table__inline-edit-action {
15209
15224
  grid-column: 2;
15210
15225
  grid-row: 2;
@@ -15230,7 +15245,7 @@ label.pf-v6-c-radio, .pf-v6-c-radio__label,
15230
15245
  }
15231
15246
  }
15232
15247
 
15233
- @media screen and (max-width: 62rem) {
15248
+ @media screen and (max-width: calc(62rem - 1px)) {
15234
15249
  .pf-m-grid-lg.pf-v6-c-table {
15235
15250
  --pf-v6-c-table--cell--PaddingBlockStart: var(--pf-v6-c-table--m-grid--cell--PaddingBlockStart);
15236
15251
  --pf-v6-c-table--cell--PaddingInlineEnd: var(--pf-v6-c-table--m-grid--cell--PaddingInlineEnd);
@@ -15500,14 +15515,14 @@ label.pf-v6-c-radio, .pf-v6-c-radio__label,
15500
15515
  text-align: end;
15501
15516
  }
15502
15517
  }
15503
- @media screen and (max-width: 62rem) and (max-width: 36rem) {
15518
+ @media screen and (max-width: calc(62rem - 1px)) and (max-width: 36rem) {
15504
15519
  .pf-m-grid-lg.pf-v6-c-table .pf-v6-c-table__action {
15505
15520
  grid-row-start: 1;
15506
15521
  grid-column-start: 2;
15507
15522
  margin-inline-start: 0;
15508
15523
  }
15509
15524
  }
15510
- @media screen and (max-width: 62rem) {
15525
+ @media screen and (max-width: calc(62rem - 1px)) {
15511
15526
  .pf-m-grid-lg.pf-v6-c-table .pf-v6-c-table__inline-edit-action {
15512
15527
  grid-column: 2;
15513
15528
  grid-row: 2;
@@ -15533,7 +15548,7 @@ label.pf-v6-c-radio, .pf-v6-c-radio__label,
15533
15548
  }
15534
15549
  }
15535
15550
 
15536
- @media screen and (max-width: 75rem) {
15551
+ @media screen and (max-width: calc(75rem - 1px)) {
15537
15552
  .pf-m-grid-xl.pf-v6-c-table {
15538
15553
  --pf-v6-c-table--cell--PaddingBlockStart: var(--pf-v6-c-table--m-grid--cell--PaddingBlockStart);
15539
15554
  --pf-v6-c-table--cell--PaddingInlineEnd: var(--pf-v6-c-table--m-grid--cell--PaddingInlineEnd);
@@ -15803,14 +15818,14 @@ label.pf-v6-c-radio, .pf-v6-c-radio__label,
15803
15818
  text-align: end;
15804
15819
  }
15805
15820
  }
15806
- @media screen and (max-width: 75rem) and (max-width: 36rem) {
15821
+ @media screen and (max-width: calc(75rem - 1px)) and (max-width: 36rem) {
15807
15822
  .pf-m-grid-xl.pf-v6-c-table .pf-v6-c-table__action {
15808
15823
  grid-row-start: 1;
15809
15824
  grid-column-start: 2;
15810
15825
  margin-inline-start: 0;
15811
15826
  }
15812
15827
  }
15813
- @media screen and (max-width: 75rem) {
15828
+ @media screen and (max-width: calc(75rem - 1px)) {
15814
15829
  .pf-m-grid-xl.pf-v6-c-table .pf-v6-c-table__inline-edit-action {
15815
15830
  grid-column: 2;
15816
15831
  grid-row: 2;
@@ -15836,7 +15851,7 @@ label.pf-v6-c-radio, .pf-v6-c-radio__label,
15836
15851
  }
15837
15852
  }
15838
15853
 
15839
- @media screen and (max-width: 90.625rem) {
15854
+ @media screen and (max-width: calc(90.625rem - 1px)) {
15840
15855
  .pf-m-grid-2xl.pf-v6-c-table {
15841
15856
  --pf-v6-c-table--cell--PaddingBlockStart: var(--pf-v6-c-table--m-grid--cell--PaddingBlockStart);
15842
15857
  --pf-v6-c-table--cell--PaddingInlineEnd: var(--pf-v6-c-table--m-grid--cell--PaddingInlineEnd);
@@ -16106,14 +16121,14 @@ label.pf-v6-c-radio, .pf-v6-c-radio__label,
16106
16121
  text-align: end;
16107
16122
  }
16108
16123
  }
16109
- @media screen and (max-width: 90.625rem) and (max-width: 36rem) {
16124
+ @media screen and (max-width: calc(90.625rem - 1px)) and (max-width: 36rem) {
16110
16125
  .pf-m-grid-2xl.pf-v6-c-table .pf-v6-c-table__action {
16111
16126
  grid-row-start: 1;
16112
16127
  grid-column-start: 2;
16113
16128
  margin-inline-start: 0;
16114
16129
  }
16115
16130
  }
16116
- @media screen and (max-width: 90.625rem) {
16131
+ @media screen and (max-width: calc(90.625rem - 1px)) {
16117
16132
  .pf-m-grid-2xl.pf-v6-c-table .pf-v6-c-table__inline-edit-action {
16118
16133
  grid-column: 2;
16119
16134
  grid-row: 2;
@@ -17315,7 +17330,7 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
17315
17330
  --pf-v6-c-table--m-tree-view-grid__tbody--cell--PaddingInlineStart: calc(var(--pf-v6-c-table__tree-view-main--nested-indent--base) * 9 + var(--pf-v6-c-table__tree-view-main--indent--base));
17316
17331
  }
17317
17332
 
17318
- @media screen and (max-width: 48rem) {
17333
+ @media screen and (max-width: calc(48rem - 1px)) {
17319
17334
  .pf-m-tree-view-grid-md.pf-v6-c-table {
17320
17335
  --pf-v6-c-table--m-tree-view-grid--tr--OutlineOffset: calc(-1 * var(--pf-t--global--spacer--xs));
17321
17336
  --pf-v6-c-table--m-tree-view-grid__tbody--cell--PaddingBlockStart: var(--pf-t--global--spacer--md);
@@ -17458,7 +17473,7 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
17458
17473
  }
17459
17474
  }
17460
17475
 
17461
- @media screen and (max-width: 62rem) {
17476
+ @media screen and (max-width: calc(62rem - 1px)) {
17462
17477
  .pf-m-tree-view-grid-lg.pf-v6-c-table {
17463
17478
  --pf-v6-c-table--m-tree-view-grid--tr--OutlineOffset: calc(-1 * var(--pf-t--global--spacer--xs));
17464
17479
  --pf-v6-c-table--m-tree-view-grid__tbody--cell--PaddingBlockStart: var(--pf-t--global--spacer--md);
@@ -17601,7 +17616,7 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
17601
17616
  }
17602
17617
  }
17603
17618
 
17604
- @media screen and (max-width: 75rem) {
17619
+ @media screen and (max-width: calc(75rem - 1px)) {
17605
17620
  .pf-m-tree-view-grid-xl.pf-v6-c-table {
17606
17621
  --pf-v6-c-table--m-tree-view-grid--tr--OutlineOffset: calc(-1 * var(--pf-t--global--spacer--xs));
17607
17622
  --pf-v6-c-table--m-tree-view-grid__tbody--cell--PaddingBlockStart: var(--pf-t--global--spacer--md);
@@ -17744,7 +17759,7 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
17744
17759
  }
17745
17760
  }
17746
17761
 
17747
- @media screen and (max-width: 90.625rem) {
17762
+ @media screen and (max-width: calc(90.625rem - 1px)) {
17748
17763
  .pf-m-tree-view-grid-2xl.pf-v6-c-table {
17749
17764
  --pf-v6-c-table--m-tree-view-grid--tr--OutlineOffset: calc(-1 * var(--pf-t--global--spacer--xs));
17750
17765
  --pf-v6-c-table--m-tree-view-grid__tbody--cell--PaddingBlockStart: var(--pf-t--global--spacer--md);
@@ -0,0 +1,3 @@
1
+ #ws-core-c-code-editor-with-full-height-modifier .ws-preview-html {
2
+ height: 400px;
3
+ }
@@ -2,7 +2,9 @@
2
2
  id: Code editor
3
3
  section: components
4
4
  cssPrefix: pf-v6-c-code-editor
5
- ---## Examples
5
+ ---import './CodeEditor.css';
6
+
7
+ ## Examples
6
8
 
7
9
  ### Default
8
10
 
@@ -49,11 +51,11 @@ cssPrefix: pf-v6-c-code-editor
49
51
  </div>
50
52
  </div>
51
53
  <div class="pf-v6-c-code-editor__main">
52
- <code dir="ltr" class="pf-v6-c-code-editor__code">
54
+ <div dir="ltr" class="pf-v6-c-code-editor__code">
53
55
  <pre class="pf-v6-c-code-editor__code-pre">
54
56
  code goes here
55
57
  </pre>
56
- </code>
58
+ </div>
57
59
  </div>
58
60
  </div>
59
61
 
@@ -104,11 +106,11 @@ cssPrefix: pf-v6-c-code-editor
104
106
  </div>
105
107
  </div>
106
108
  <div class="pf-v6-c-code-editor__main">
107
- <code dir="ltr" class="pf-v6-c-code-editor__code">
109
+ <div dir="ltr" class="pf-v6-c-code-editor__code">
108
110
  <pre class="pf-v6-c-code-editor__code-pre">
109
111
  code goes here
110
112
  </pre>
111
- </code>
113
+ </div>
112
114
  </div>
113
115
  </div>
114
116
 
@@ -267,11 +269,158 @@ cssPrefix: pf-v6-c-code-editor
267
269
  </div>
268
270
  </div>
269
271
  <div class="pf-v6-c-code-editor__main">
270
- <code dir="ltr" class="pf-v6-c-code-editor__code">
272
+ <div dir="ltr" class="pf-v6-c-code-editor__code">
271
273
  <pre class="pf-v6-c-code-editor__code-pre">
272
274
  code goes here
273
275
  </pre>
274
- </code>
276
+ </div>
277
+ </div>
278
+ </div>
279
+
280
+ ```
281
+
282
+ ### With optional code editor container
283
+
284
+ This is an extra container used in React to prevent event propagation if upload is enabled or there is a provided empty state.
285
+
286
+ ```html
287
+ <div class="pf-v6-c-code-editor">
288
+ <div role="presentation" tabindex="0" class="pf-v6-c-code-editor__container">
289
+ <div class="pf-v6-c-code-editor__header">
290
+ <div class="pf-v6-c-code-editor__header-content">
291
+ <div class="pf-v6-c-code-editor__controls">
292
+ <button
293
+ class="pf-v6-c-button pf-m-plain"
294
+ type="button"
295
+ aria-label="Copy to clipboard"
296
+ >
297
+ <span class="pf-v6-c-button__icon">
298
+ <i class="fas fa-copy" aria-hidden="true"></i>
299
+ </span>
300
+ </button>
301
+ <button
302
+ class="pf-v6-c-button pf-m-plain"
303
+ type="button"
304
+ aria-label="Download code"
305
+ >
306
+ <span class="pf-v6-c-button__icon">
307
+ <i class="fas fa-download" aria-hidden="true"></i>
308
+ </span>
309
+ </button>
310
+ <button
311
+ class="pf-v6-c-button pf-m-plain"
312
+ type="button"
313
+ aria-label="Upload code"
314
+ >
315
+ <span class="pf-v6-c-button__icon">
316
+ <i class="fas fa-upload" aria-hidden="true"></i>
317
+ </span>
318
+ </button>
319
+ </div>
320
+ </div>
321
+ <div class="pf-v6-c-code-editor__tab">
322
+ <span class="pf-v6-c-code-editor__tab-icon">
323
+ <i class="fas fa-code"></i>
324
+ </span>
325
+ <span class="pf-v6-c-code-editor__tab-text">HTML</span>
326
+ </div>
327
+ </div>
328
+ <div class="pf-v6-c-code-editor__main">
329
+ <div class="pf-v6-c-code-editor__upload">
330
+ <div class="pf-v6-c-empty-state">
331
+ <div class="pf-v6-c-empty-state__content">
332
+ <div class="pf-v6-c-empty-state__header">
333
+ <div class="pf-v6-c-empty-state__icon">
334
+ <i class="fas fa- fa-code" aria-hidden="true"></i>
335
+ </div>
336
+ <div class="pf-v6-c-empty-state__title">
337
+ <h1 class="pf-v6-c-empty-state__title-text">Start editing</h1>
338
+ </div>
339
+ </div>
340
+
341
+ <div
342
+ class="pf-v6-c-empty-state__body"
343
+ >Drag a file here or browse to upload.</div>
344
+
345
+ <div class="pf-v6-c-empty-state__footer">
346
+ <div class="pf-v6-c-empty-state__actions">
347
+ <button class="pf-v6-c-button pf-m-primary" type="button">
348
+ <span class="pf-v6-c-button__text">Browse</span>
349
+ </button>
350
+ </div>
351
+ <div class="pf-v6-c-empty-state__actions">
352
+ <button class="pf-v6-c-button pf-m-link" type="button">
353
+ <span class="pf-v6-c-button__text">Start from scratch</span>
354
+ </button>
355
+ </div>
356
+ </div>
357
+ </div>
358
+ </div>
359
+ </div>
360
+ </div>
361
+ </div>
362
+ </div>
363
+
364
+ ```
365
+
366
+ ### With full height modifier
367
+
368
+ ```html
369
+ <div class="pf-v6-c-code-editor pf-m-full-height">
370
+ <div class="pf-v6-c-code-editor__header">
371
+ <div class="pf-v6-c-code-editor__header-content">
372
+ <div class="pf-v6-c-code-editor__controls">
373
+ <button
374
+ class="pf-v6-c-button pf-m-plain"
375
+ type="button"
376
+ aria-label="Copy to clipboard"
377
+ >
378
+ <span class="pf-v6-c-button__icon">
379
+ <i class="fas fa-copy" aria-hidden="true"></i>
380
+ </span>
381
+ </button>
382
+ <button
383
+ class="pf-v6-c-button pf-m-plain"
384
+ type="button"
385
+ aria-label="Download code"
386
+ >
387
+ <span class="pf-v6-c-button__icon">
388
+ <i class="fas fa-download" aria-hidden="true"></i>
389
+ </span>
390
+ </button>
391
+ <button
392
+ class="pf-v6-c-button pf-m-plain"
393
+ type="button"
394
+ aria-label="Upload code"
395
+ >
396
+ <span class="pf-v6-c-button__icon">
397
+ <i class="fas fa-upload" aria-hidden="true"></i>
398
+ </span>
399
+ </button>
400
+ </div>
401
+ <div class="pf-v6-c-code-editor__header-main">Header main content</div>
402
+ <div class="pf-v6-c-code-editor__keyboard-shortcuts">
403
+ <button class="pf-v6-c-button pf-m-link" type="button">
404
+ <span class="pf-v6-c-button__icon pf-m-start">
405
+ <i class="fas fa-question-circle" aria-hidden="true"></i>
406
+ </span>
407
+ <span class="pf-v6-c-button__text">View shortcuts</span>
408
+ </button>
409
+ </div>
410
+ </div>
411
+ <div class="pf-v6-c-code-editor__tab">
412
+ <span class="pf-v6-c-code-editor__tab-icon">
413
+ <i class="fas fa-code"></i>
414
+ </span>
415
+ <span class="pf-v6-c-code-editor__tab-text">HTML</span>
416
+ </div>
417
+ </div>
418
+ <div class="pf-v6-c-code-editor__main">
419
+ <div dir="ltr" class="pf-v6-c-code-editor__code">
420
+ <pre class="pf-v6-c-code-editor__code-pre">
421
+ code goes here
422
+ </pre>
423
+ </div>
275
424
  </div>
276
425
  </div>
277
426
 
@@ -295,3 +444,5 @@ cssPrefix: pf-v6-c-code-editor
295
444
  | `.pf-v6-c-code-editor__tab-text` | `<span>` | Initiates the code editor tab text. |
296
445
  | `.pf-v6-c-code-editor__tab-icon` | `<span>` | Initiates the code editor tab icon. |
297
446
  | `.pf-v6-c-code-editor__upload` | `<div>` | Initiates the code editor upload border. |
447
+ | `.pf-v6-c-code-editor__container` | `<div>` | Initiates the container used inside `.pf-v6-c-code-editor` in PatternFly React. This is used in PatternFly React to prevent event propagation if upload is enabled or there is a provided empty state. |
448
+ | `.pf-m-full-height` | `.pf-v6-c-code-editor` | Modifies for full-height style. |