@patternfly/patternfly 6.2.0-prerelease.16 → 6.2.0-prerelease.18
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 +17 -0
- package/components/Card/card.scss +22 -0
- package/components/Toolbar/toolbar.css +6 -1
- package/components/Toolbar/toolbar.scss +7 -1
- package/components/_index.css +23 -1
- package/docs/components/Card/examples/Card.md +30 -0
- package/docs/components/Tabs/examples/Tabs.md +145 -3
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +10 -0
- package/docs/components/Toolbar/examples/Toolbar.css +3 -0
- package/docs/components/Toolbar/examples/Toolbar.md +28 -0
- package/docs/demos/Card/examples/Card.md +32 -24
- package/package.json +1 -1
- package/patternfly-no-globals.css +23 -1
- package/patternfly.css +23 -1
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/docs/components/TabContent/examples/TabContent.md +0 -153
package/components/Card/card.css
CHANGED
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
--pf-v6-c-card__actions--Gap: var(--pf-t--global--spacer--gap--action-to-action--default);
|
|
24
24
|
--pf-v6-c-card__actions--MarginBlockStart: calc(var(--pf-t--global--spacer--control--vertical--default) * -1);
|
|
25
25
|
--pf-v6-c-card__actions--MarginBlockEnd: calc(var(--pf-t--global--spacer--control--vertical--default) * -1);
|
|
26
|
+
--pf-v6-c-card__header--m-wrap--RowGap: var(--pf-t--global--spacer--sm);
|
|
27
|
+
--pf-v6-c-card__header--m-wrap--ColumnGap: var(--pf-t--global--spacer--md);
|
|
26
28
|
--pf-v6-c-card__header-toggle--MarginBlockStart: calc(var(--pf-t--global--spacer--control--vertical--default) * -1);
|
|
27
29
|
--pf-v6-c-card__header-toggle--MarginInlineEnd: var(--pf-t--global--spacer--gap--text-to-element--default);
|
|
28
30
|
--pf-v6-c-card__header-toggle--MarginBlockEnd: calc(var(--pf-t--global--spacer--control--vertical--default) * -1);
|
|
@@ -186,6 +188,21 @@
|
|
|
186
188
|
.pf-v6-c-card__header.pf-m-toggle-right .pf-v6-c-card__header-toggle {
|
|
187
189
|
order: 2;
|
|
188
190
|
}
|
|
191
|
+
.pf-v6-c-card__header.pf-m-wrap {
|
|
192
|
+
--pf-v6-c-card__actions--PaddingInlineStart: 0;
|
|
193
|
+
gap: var(--pf-v6-c-card__header--m-wrap--RowGap) var(--pf-v6-c-card__header--m-wrap--ColumnGap);
|
|
194
|
+
}
|
|
195
|
+
.pf-v6-c-card__header.pf-m-wrap,
|
|
196
|
+
.pf-v6-c-card__header.pf-m-wrap .pf-v6-c-card__actions {
|
|
197
|
+
flex-wrap: wrap;
|
|
198
|
+
row-gap: var(--pf-v6-c-card__header--m-wrap--RowGap);
|
|
199
|
+
}
|
|
200
|
+
.pf-v6-c-card__header.pf-m-wrap .pf-v6-c-card__actions {
|
|
201
|
+
margin-inline-start: 0;
|
|
202
|
+
}
|
|
203
|
+
.pf-v6-c-card__header.pf-m-wrap .pf-v6-c-card__actions + * {
|
|
204
|
+
margin-inline-end: auto;
|
|
205
|
+
}
|
|
189
206
|
|
|
190
207
|
.pf-v6-c-card__header-main {
|
|
191
208
|
flex-grow: 1;
|
|
@@ -25,6 +25,8 @@
|
|
|
25
25
|
--#{$card}__actions--Gap: var(--pf-t--global--spacer--gap--action-to-action--default);
|
|
26
26
|
--#{$card}__actions--MarginBlockStart: calc(var(--pf-t--global--spacer--control--vertical--default) * -1);
|
|
27
27
|
--#{$card}__actions--MarginBlockEnd: calc(var(--pf-t--global--spacer--control--vertical--default) * -1);
|
|
28
|
+
--#{$card}__header--m-wrap--RowGap: var(--pf-t--global--spacer--sm);
|
|
29
|
+
--#{$card}__header--m-wrap--ColumnGap: var(--pf-t--global--spacer--md);
|
|
28
30
|
|
|
29
31
|
// Expandable
|
|
30
32
|
--#{$card}__header-toggle--MarginBlockStart: calc(var(--pf-t--global--spacer--control--vertical--default) * -1);
|
|
@@ -265,6 +267,26 @@
|
|
|
265
267
|
order: 2;
|
|
266
268
|
}
|
|
267
269
|
}
|
|
270
|
+
|
|
271
|
+
&.pf-m-wrap {
|
|
272
|
+
--pf-v6-c-card__actions--PaddingInlineStart: 0;
|
|
273
|
+
|
|
274
|
+
gap: var(--#{$card}__header--m-wrap--RowGap) var(--#{$card}__header--m-wrap--ColumnGap);
|
|
275
|
+
|
|
276
|
+
&,
|
|
277
|
+
.#{$card}__actions {
|
|
278
|
+
flex-wrap: wrap;
|
|
279
|
+
row-gap: var(--#{$card}__header--m-wrap--RowGap);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.#{$card}__actions {
|
|
283
|
+
+ * {
|
|
284
|
+
margin-inline-end: auto;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
margin-inline-start: 0
|
|
288
|
+
}
|
|
289
|
+
}
|
|
268
290
|
}
|
|
269
291
|
|
|
270
292
|
.#{$card}__header-main {
|
|
@@ -217,13 +217,18 @@
|
|
|
217
217
|
}
|
|
218
218
|
.pf-v6-c-toolbar.pf-m-full-height {
|
|
219
219
|
--pf-v6-c-toolbar--PaddingBlockStart: 0;
|
|
220
|
-
--pf-v6-c-toolbar--
|
|
220
|
+
--pf-v6-c-toolbar--PaddingBlockEnd: 0;
|
|
221
221
|
}
|
|
222
222
|
.pf-v6-c-toolbar.pf-m-full-height .pf-v6-c-toolbar__group,
|
|
223
223
|
.pf-v6-c-toolbar.pf-m-full-height .pf-v6-c-toolbar__item {
|
|
224
224
|
align-items: stretch;
|
|
225
225
|
align-self: stretch;
|
|
226
226
|
}
|
|
227
|
+
.pf-v6-c-toolbar.pf-m-no-padding {
|
|
228
|
+
--pf-v6-c-toolbar--PaddingBlockEnd: 0;
|
|
229
|
+
--pf-v6-c-toolbar--m-sticky--PaddingBlockStart: 0;
|
|
230
|
+
--pf-v6-c-toolbar--m-sticky--PaddingBlockEnd: 0;
|
|
231
|
+
}
|
|
227
232
|
.pf-v6-c-toolbar.pf-m-primary {
|
|
228
233
|
--pf-v6-c-toolbar--BackgroundColor: var(--pf-v6-c-toolbar--m-primary--BackgroundColor);
|
|
229
234
|
}
|
|
@@ -160,7 +160,7 @@ $pf-v6--include-toolbar-breakpoints: true !default;
|
|
|
160
160
|
// - Toolbar full height
|
|
161
161
|
&.pf-m-full-height {
|
|
162
162
|
--#{$toolbar}--PaddingBlockStart: 0;
|
|
163
|
-
--#{$toolbar}--
|
|
163
|
+
--#{$toolbar}--PaddingBlockEnd: 0;
|
|
164
164
|
|
|
165
165
|
.#{$toolbar}__group,
|
|
166
166
|
.#{$toolbar}__item {
|
|
@@ -169,6 +169,12 @@ $pf-v6--include-toolbar-breakpoints: true !default;
|
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
+
&.pf-m-no-padding {
|
|
173
|
+
--#{$toolbar}--PaddingBlockEnd: 0;
|
|
174
|
+
--#{$toolbar}--m-sticky--PaddingBlockStart: 0;
|
|
175
|
+
--#{$toolbar}--m-sticky--PaddingBlockEnd: 0;
|
|
176
|
+
}
|
|
177
|
+
|
|
172
178
|
// - Toolbar background modifiers
|
|
173
179
|
&.pf-m-primary {
|
|
174
180
|
--#{$toolbar}--BackgroundColor: var(--#{$toolbar}--m-primary--BackgroundColor);
|
package/components/_index.css
CHANGED
|
@@ -2310,6 +2310,8 @@ span.pf-v6-c-button.pf-m-link.pf-m-inline {
|
|
|
2310
2310
|
--pf-v6-c-card__actions--Gap: var(--pf-t--global--spacer--gap--action-to-action--default);
|
|
2311
2311
|
--pf-v6-c-card__actions--MarginBlockStart: calc(var(--pf-t--global--spacer--control--vertical--default) * -1);
|
|
2312
2312
|
--pf-v6-c-card__actions--MarginBlockEnd: calc(var(--pf-t--global--spacer--control--vertical--default) * -1);
|
|
2313
|
+
--pf-v6-c-card__header--m-wrap--RowGap: var(--pf-t--global--spacer--sm);
|
|
2314
|
+
--pf-v6-c-card__header--m-wrap--ColumnGap: var(--pf-t--global--spacer--md);
|
|
2313
2315
|
--pf-v6-c-card__header-toggle--MarginBlockStart: calc(var(--pf-t--global--spacer--control--vertical--default) * -1);
|
|
2314
2316
|
--pf-v6-c-card__header-toggle--MarginInlineEnd: var(--pf-t--global--spacer--gap--text-to-element--default);
|
|
2315
2317
|
--pf-v6-c-card__header-toggle--MarginBlockEnd: calc(var(--pf-t--global--spacer--control--vertical--default) * -1);
|
|
@@ -2473,6 +2475,21 @@ span.pf-v6-c-button.pf-m-link.pf-m-inline {
|
|
|
2473
2475
|
.pf-v6-c-card__header.pf-m-toggle-right .pf-v6-c-card__header-toggle {
|
|
2474
2476
|
order: 2;
|
|
2475
2477
|
}
|
|
2478
|
+
.pf-v6-c-card__header.pf-m-wrap {
|
|
2479
|
+
--pf-v6-c-card__actions--PaddingInlineStart: 0;
|
|
2480
|
+
gap: var(--pf-v6-c-card__header--m-wrap--RowGap) var(--pf-v6-c-card__header--m-wrap--ColumnGap);
|
|
2481
|
+
}
|
|
2482
|
+
.pf-v6-c-card__header.pf-m-wrap,
|
|
2483
|
+
.pf-v6-c-card__header.pf-m-wrap .pf-v6-c-card__actions {
|
|
2484
|
+
flex-wrap: wrap;
|
|
2485
|
+
row-gap: var(--pf-v6-c-card__header--m-wrap--RowGap);
|
|
2486
|
+
}
|
|
2487
|
+
.pf-v6-c-card__header.pf-m-wrap .pf-v6-c-card__actions {
|
|
2488
|
+
margin-inline-start: 0;
|
|
2489
|
+
}
|
|
2490
|
+
.pf-v6-c-card__header.pf-m-wrap .pf-v6-c-card__actions + * {
|
|
2491
|
+
margin-inline-end: auto;
|
|
2492
|
+
}
|
|
2476
2493
|
|
|
2477
2494
|
.pf-v6-c-card__header-main {
|
|
2478
2495
|
flex-grow: 1;
|
|
@@ -19766,13 +19783,18 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
|
|
|
19766
19783
|
}
|
|
19767
19784
|
.pf-v6-c-toolbar.pf-m-full-height {
|
|
19768
19785
|
--pf-v6-c-toolbar--PaddingBlockStart: 0;
|
|
19769
|
-
--pf-v6-c-toolbar--
|
|
19786
|
+
--pf-v6-c-toolbar--PaddingBlockEnd: 0;
|
|
19770
19787
|
}
|
|
19771
19788
|
.pf-v6-c-toolbar.pf-m-full-height .pf-v6-c-toolbar__group,
|
|
19772
19789
|
.pf-v6-c-toolbar.pf-m-full-height .pf-v6-c-toolbar__item {
|
|
19773
19790
|
align-items: stretch;
|
|
19774
19791
|
align-self: stretch;
|
|
19775
19792
|
}
|
|
19793
|
+
.pf-v6-c-toolbar.pf-m-no-padding {
|
|
19794
|
+
--pf-v6-c-toolbar--PaddingBlockEnd: 0;
|
|
19795
|
+
--pf-v6-c-toolbar--m-sticky--PaddingBlockStart: 0;
|
|
19796
|
+
--pf-v6-c-toolbar--m-sticky--PaddingBlockEnd: 0;
|
|
19797
|
+
}
|
|
19776
19798
|
.pf-v6-c-toolbar.pf-m-primary {
|
|
19777
19799
|
--pf-v6-c-toolbar--BackgroundColor: var(--pf-v6-c-toolbar--m-primary--BackgroundColor);
|
|
19778
19800
|
}
|
|
@@ -212,6 +212,35 @@ cssPrefix: pf-v6-c-card
|
|
|
212
212
|
|
|
213
213
|
```
|
|
214
214
|
|
|
215
|
+
### Card with header that wraps
|
|
216
|
+
|
|
217
|
+
```html
|
|
218
|
+
<div class="pf-v6-c-card">
|
|
219
|
+
<div class="pf-v6-c-card__header pf-m-wrap">
|
|
220
|
+
<div class="pf-v6-c-card__actions pf-m-no-offset">
|
|
221
|
+
<button class="pf-v6-c-button pf-m-primary" type="button">
|
|
222
|
+
<span class="pf-v6-c-button__text">Primary action</span>
|
|
223
|
+
</button>
|
|
224
|
+
|
|
225
|
+
<button class="pf-v6-c-button pf-m-secondary" type="button">
|
|
226
|
+
<span class="pf-v6-c-button__text">Secondary action</span>
|
|
227
|
+
</button>
|
|
228
|
+
|
|
229
|
+
<button class="pf-v6-c-button pf-m-tertiary" type="button">
|
|
230
|
+
<span class="pf-v6-c-button__text">Tertiary action</span>
|
|
231
|
+
</button>
|
|
232
|
+
</div>
|
|
233
|
+
<div class="pf-v6-c-card__title">
|
|
234
|
+
<h2
|
|
235
|
+
class="pf-v6-c-card__title-text"
|
|
236
|
+
>This is a longer card title that takes up more space</h2>
|
|
237
|
+
</div>
|
|
238
|
+
</div>
|
|
239
|
+
<div class="pf-v6-c-card__body">This is the card body</div>
|
|
240
|
+
</div>
|
|
241
|
+
|
|
242
|
+
```
|
|
243
|
+
|
|
215
244
|
### Actions with no offset
|
|
216
245
|
|
|
217
246
|
```html
|
|
@@ -1690,6 +1719,7 @@ A card is a generic rectangular container that can be used to build other compon
|
|
|
1690
1719
|
| `.pf-v6-c-card__sr-input` | `<input>` | Creates an input which, when focused, makes a following `.pf-v6-c-card` appear focused. |
|
|
1691
1720
|
| `.pf-m-compact` | `.pf-v6-c-card` | Creates a compact variation of the card component that involves smaller font sizes and spacing. This variation is for use on dashboards and where a smaller card is preferred. |
|
|
1692
1721
|
| `.pf-m-display-lg` | `.pf-v6-c-card` | Creates a large variation of the card component that involves larger font sizes and spacing. This variation is for marketing use cases. |
|
|
1722
|
+
| `.pf-m-wrap` | `.pf-v6-c-card__header` | Modifies the card header to wrap its children. |
|
|
1693
1723
|
| `.pf-m-no-fill` | `.pf-v6-c-card__body` | Sets a `.pf-v6-c-card__body` not to fill the available space in `.pf-v6-c-card`. `.pf-m-no-fill` can be added to multiple card bodies. |
|
|
1694
1724
|
| `.pf-m-selectable` | `.pf-v6-c-card` | Modifies a card to be selectable. |
|
|
1695
1725
|
| `.pf-m-clickable` | `.pf-v6-c-card` | Modifies a card to be clickable. |
|
|
@@ -9099,14 +9099,137 @@ cssPrefix: pf-v6-c-tabs
|
|
|
9099
9099
|
|
|
9100
9100
|
```
|
|
9101
9101
|
|
|
9102
|
+
## Tab content
|
|
9103
|
+
|
|
9104
|
+
### Default tab content example
|
|
9105
|
+
|
|
9106
|
+
```html
|
|
9107
|
+
<section
|
|
9108
|
+
class="pf-v6-c-tab-content"
|
|
9109
|
+
id="basic-tab1-panel"
|
|
9110
|
+
role="tabpanel"
|
|
9111
|
+
tabindex="0"
|
|
9112
|
+
>
|
|
9113
|
+
<div class="pf-v6-c-tab-content__body">Panel 1</div>
|
|
9114
|
+
</section>
|
|
9115
|
+
<section
|
|
9116
|
+
class="pf-v6-c-tab-content"
|
|
9117
|
+
id="basic-tab2-panel"
|
|
9118
|
+
role="tabpanel"
|
|
9119
|
+
tabindex="0"
|
|
9120
|
+
hidden
|
|
9121
|
+
>
|
|
9122
|
+
<div class="pf-v6-c-tab-content__body">Panel 2</div>
|
|
9123
|
+
</section>
|
|
9124
|
+
<section
|
|
9125
|
+
class="pf-v6-c-tab-content"
|
|
9126
|
+
id="basic-tab3-panel"
|
|
9127
|
+
role="tabpanel"
|
|
9128
|
+
tabindex="0"
|
|
9129
|
+
hidden
|
|
9130
|
+
>
|
|
9131
|
+
<div class="pf-v6-c-tab-content__body">Panel 3</div>
|
|
9132
|
+
</section>
|
|
9133
|
+
<section
|
|
9134
|
+
class="pf-v6-c-tab-content"
|
|
9135
|
+
id="basic-tab4-panel"
|
|
9136
|
+
role="tabpanel"
|
|
9137
|
+
tabindex="0"
|
|
9138
|
+
hidden
|
|
9139
|
+
>
|
|
9140
|
+
<div class="pf-v6-c-tab-content__body">Panel 4</div>
|
|
9141
|
+
</section>
|
|
9142
|
+
|
|
9143
|
+
```
|
|
9144
|
+
|
|
9145
|
+
### Padding
|
|
9146
|
+
|
|
9147
|
+
```html
|
|
9148
|
+
<section
|
|
9149
|
+
class="pf-v6-c-tab-content"
|
|
9150
|
+
id="tab1-panel-with-padding"
|
|
9151
|
+
role="tabpanel"
|
|
9152
|
+
tabindex="0"
|
|
9153
|
+
>
|
|
9154
|
+
<div class="pf-v6-c-tab-content__body pf-m-padding">Panel 1</div>
|
|
9155
|
+
</section>
|
|
9156
|
+
<section
|
|
9157
|
+
class="pf-v6-c-tab-content"
|
|
9158
|
+
id="tab2-panel-with-padding"
|
|
9159
|
+
role="tabpanel"
|
|
9160
|
+
tabindex="0"
|
|
9161
|
+
hidden
|
|
9162
|
+
>
|
|
9163
|
+
<div class="pf-v6-c-tab-content__body pf-m-padding">Panel 2</div>
|
|
9164
|
+
</section>
|
|
9165
|
+
<section
|
|
9166
|
+
class="pf-v6-c-tab-content"
|
|
9167
|
+
id="tab3-panel-with-padding"
|
|
9168
|
+
role="tabpanel"
|
|
9169
|
+
tabindex="0"
|
|
9170
|
+
hidden
|
|
9171
|
+
>
|
|
9172
|
+
<div class="pf-v6-c-tab-content__body pf-m-padding">Panel 3</div>
|
|
9173
|
+
</section>
|
|
9174
|
+
<section
|
|
9175
|
+
class="pf-v6-c-tab-content"
|
|
9176
|
+
id="tab4-panel-with-padding"
|
|
9177
|
+
role="tabpanel"
|
|
9178
|
+
tabindex="0"
|
|
9179
|
+
hidden
|
|
9180
|
+
>
|
|
9181
|
+
<div class="pf-v6-c-tab-content__body pf-m-padding">Panel 4</div>
|
|
9182
|
+
</section>
|
|
9183
|
+
|
|
9184
|
+
```
|
|
9185
|
+
|
|
9186
|
+
### Secondary
|
|
9187
|
+
|
|
9188
|
+
```html
|
|
9189
|
+
<section
|
|
9190
|
+
class="pf-v6-c-tab-content pf-m-secondary"
|
|
9191
|
+
id="secondary-tab1-panel"
|
|
9192
|
+
role="tabpanel"
|
|
9193
|
+
tabindex="0"
|
|
9194
|
+
>
|
|
9195
|
+
<div class="pf-v6-c-tab-content__body">Panel 1</div>
|
|
9196
|
+
</section>
|
|
9197
|
+
<section
|
|
9198
|
+
class="pf-v6-c-tab-content pf-m-secondary"
|
|
9199
|
+
id="secondary-tab2-panel"
|
|
9200
|
+
role="tabpanel"
|
|
9201
|
+
tabindex="0"
|
|
9202
|
+
hidden
|
|
9203
|
+
>
|
|
9204
|
+
<div class="pf-v6-c-tab-content__body">Panel 2</div>
|
|
9205
|
+
</section>
|
|
9206
|
+
<section
|
|
9207
|
+
class="pf-v6-c-tab-content pf-m-secondary"
|
|
9208
|
+
id="secondary-tab3-panel"
|
|
9209
|
+
role="tabpanel"
|
|
9210
|
+
tabindex="0"
|
|
9211
|
+
hidden
|
|
9212
|
+
>
|
|
9213
|
+
<div class="pf-v6-c-tab-content__body">Panel 3</div>
|
|
9214
|
+
</section>
|
|
9215
|
+
<section
|
|
9216
|
+
class="pf-v6-c-tab-content pf-m-secondary"
|
|
9217
|
+
id="secondary-tab4-panel"
|
|
9218
|
+
role="tabpanel"
|
|
9219
|
+
tabindex="0"
|
|
9220
|
+
hidden
|
|
9221
|
+
>
|
|
9222
|
+
<div class="pf-v6-c-tab-content__body">Panel 4</div>
|
|
9223
|
+
</section>
|
|
9224
|
+
|
|
9225
|
+
```
|
|
9226
|
+
|
|
9102
9227
|
## Documentation
|
|
9103
9228
|
|
|
9104
|
-
###
|
|
9229
|
+
### Tabs overview
|
|
9105
9230
|
|
|
9106
9231
|
The tabs component should only be used to change content views within a page. The similar-looking but semantically different [horizontal nav component](/components/navigation/#horizontal) is available for general navigation use cases.
|
|
9107
9232
|
|
|
9108
|
-
Tabs should be used with the [tab content component](/components/tab-content).
|
|
9109
|
-
|
|
9110
9233
|
Whenever a list of tabs is unique on the current page, it can be used in a `<nav>` element. Cases where the same set of tabs are duplicated in multiple regions on a page (e.g. cards on a dashboard) are less likely to benefit from using the `<nav>` element.
|
|
9111
9234
|
|
|
9112
9235
|
### Usage
|
|
@@ -9144,3 +9267,22 @@ Whenever a list of tabs is unique on the current page, it can be used in a `<nav
|
|
|
9144
9267
|
| `.pf-m-expanded` | `.pf-v6-c-tabs` | Modifies the expandable tabs component for the expanded state. |
|
|
9145
9268
|
| `.pf-m-disabled` | `a.pf-v6-c-tabs__link` | Modifies a tabs link for disabled styles. |
|
|
9146
9269
|
| `.pf-m-aria-disabled` | `.pf-v6-c-tabs__link` | Modifies a tabs link for disabled styles, but is still hoverable/focusable. |
|
|
9270
|
+
|
|
9271
|
+
### Tab content accessibility
|
|
9272
|
+
|
|
9273
|
+
| Attribute | Applied to | Outcome |
|
|
9274
|
+
| -- | -- | -- |
|
|
9275
|
+
| `role="tabpanel"` | `.pf-v6-c-tab-content` | Indicates that the element serves as a container for a set of tabs. **Required** |
|
|
9276
|
+
| `aria-labelledby=[ID of tab element]` | `.pf-v6-c-tab-content` | Provides an accessible name for the tab panel by referring to the tab element that controls it. **Required**
|
|
9277
|
+
| `id=[ID of tab panel]` | `.pf-v6-c-tab-content` | Provides an ID for the tab panel, and should be used as the value of `aria-controls` on the tab element that controls the panel. **Required**
|
|
9278
|
+
| `hidden` | `.pf-v6-c-tab-content` | Indicates that the tab panel is not visible. **Required on all but the active tab panel**
|
|
9279
|
+
| `tabindex="0"` | `.pf-v6-c-tab-content` | Puts the tab panel in the page tab sequence and facilitates movement to panel content for assistive technology users. **Required**
|
|
9280
|
+
|
|
9281
|
+
### Tab content usage
|
|
9282
|
+
|
|
9283
|
+
| Class | Applied to | Outcome |
|
|
9284
|
+
| -- | -- | -- |
|
|
9285
|
+
| `.pf-v6-c-tab-content` | `<section>` | Initiates the tab content component. **Required** |
|
|
9286
|
+
| `.pf-v6-c-tab-content__body` | `<div>` | Initiates the tab content body component. |
|
|
9287
|
+
| `.pf-m-padding` | `.pf-v6-c-tab-content__body` | Modifies the tab content body component padding. |
|
|
9288
|
+
| `.pf-m-secondary` | `.pf-v6-c-tab-content` | Modifies the tab content component for secondary styles. |
|
|
@@ -1461,8 +1461,18 @@ For the purposes of this example, the `TextInputGroup` is contained in a wrapper
|
|
|
1461
1461
|
|
|
1462
1462
|
| Class | Applied to | Outcome |
|
|
1463
1463
|
| -- | -- | -- |
|
|
1464
|
+
| `.pf-v6-c-text-input-group` | `<div>` | Creates a text input group. *Required* |
|
|
1465
|
+
| `.pf-v6-c-text-input-group__main` | `<div>` | Creates a wrapper for the main content. *Required* |
|
|
1466
|
+
| `.pf-v6-c-text-input-group__text` | `<span>` | Creates the text container. *Required*|
|
|
1467
|
+
| `.pf-v6-c-text-input-group__icon` | `<span>` | Creates a container for an icon. |
|
|
1468
|
+
| `.pf-v6-c-text-input-group__text-input` | `<input>` | Creates a text input. *Required* |
|
|
1469
|
+
| `.pf-v6-c-text-input-group__utilities` | `<div>` | Creates text input utilities container. |
|
|
1470
|
+
| `.pf-v6-c-text-input-group__group` | `<div>` | Creates text input prev/next nav group. |
|
|
1471
|
+
| `.pf-m-plain` | `.pf-v6-c-text-input-group` | Applies plain styling. Only use this variant when the text input group is contained in an ancestor with its own border or background styling. |
|
|
1472
|
+
| `.pf-m-disabled` | `.pf-v6-c-text-input-group` | Applies disabled styling. The `<input>` should also be `disabled`. |
|
|
1464
1473
|
| `.pf-m-success` | `.pf-v6-c-text-input-group` | Applies success validation styling. |
|
|
1465
1474
|
| `.pf-m-warning` | `.pf-v6-c-text-input-group` | Applies warning validation styling. |
|
|
1466
1475
|
| `.pf-m-error` | `.pf-v6-c-text-input-group` | Applies error validation styling. |
|
|
1467
1476
|
| `.pf-m-icon` | `.pf-v6-c-text-input-group__main` | Applies styling when icons are included in the container. |
|
|
1468
1477
|
| `.pf-m-status` | `.pf-v6-c-text-input-group__icon` | Applies status styling to the icon, matching the status modifier applied to `.pf-v6-c-text-input-group`. |
|
|
1478
|
+
| `.pf-m-hint` | `.pf-v6-c-text-input-group__text-input` | Applies styling when hints are included in the container. |
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
#ws-core-c-toolbar-adjusted-group-column-gap .pf-v6-c-toolbar__group,
|
|
29
29
|
#ws-core-e-toolbar-simple .pf-v6-c-toolbar,
|
|
30
30
|
#ws-core-e-toolbar-simple .pf-v6-c-toolbar__group,
|
|
31
|
+
#ws-core-c-toolbar-no-padding .pf-v6-c-toolbar,
|
|
31
32
|
#ws-core-e-toolbar-adjusted-spacers .pf-v6-c-toolbar,
|
|
32
33
|
#ws-core-e-toolbar-adjusted-group-spacers .pf-v6-c-toolbar,
|
|
33
34
|
#ws-core-c-toolbar-simple .pf-v6-c-toolbar,
|
|
@@ -50,6 +51,7 @@
|
|
|
50
51
|
#ws-core-e-toolbar-adjusted-spacers .pf-v6-c-toolbar__item,
|
|
51
52
|
#ws-core-e-toolbar-adjusted-group-spacers .pf-v6-c-toolbar__item,
|
|
52
53
|
#ws-core-c-toolbar-simple .pf-v6-c-toolbar__item,
|
|
54
|
+
#ws-core-c-toolbar-no-padding .pf-v6-c-toolbar__item,
|
|
53
55
|
#ws-core-c-toolbar-adjusted-spacers .pf-v6-c-toolbar__item,
|
|
54
56
|
#ws-core-c-toolbar-adjusted-group-spacers .pf-v6-c-toolbar__item,
|
|
55
57
|
#ws-core-c-toolbar-insets .pf-v6-c-toolbar__item,
|
|
@@ -64,6 +66,7 @@
|
|
|
64
66
|
#ws-core-e-toolbar-adjusted-spacers .pf-v6-c-toolbar__item,
|
|
65
67
|
#ws-core-e-toolbar-adjusted-group-spacers .pf-v6-c-toolbar__item,
|
|
66
68
|
#ws-core-c-toolbar-simple .pf-v6-c-toolbar__item,
|
|
69
|
+
#ws-core-c-toolbar-no-padding .pf-v6-c-toolbar__item,
|
|
67
70
|
#ws-core-c-toolbar-adjusted-spacers .pf-v6-c-toolbar__item,
|
|
68
71
|
#ws-core-c-toolbar-adjusted-group-spacers .pf-v6-c-toolbar__item,
|
|
69
72
|
#ws-core-c-toolbar-insets .pf-v6-c-toolbar__item,
|
|
@@ -75,6 +75,33 @@ Several components in the following examples do not include functional and/or ac
|
|
|
75
75
|
| `.pf-v6-c-toolbar__item` | `<div>` | Initiates the toolbar component item. **Required** |
|
|
76
76
|
| `.pf-v6-c-toolbar__group` | `<div>` | Initiates the toolbar component group. |
|
|
77
77
|
|
|
78
|
+
### No padding
|
|
79
|
+
|
|
80
|
+
```html
|
|
81
|
+
<div class="pf-v6-c-toolbar pf-m-no-padding" id="toolbar-simple-example">
|
|
82
|
+
<div class="pf-v6-c-toolbar__content">
|
|
83
|
+
<div class="pf-v6-c-toolbar__content-section">
|
|
84
|
+
<div class="pf-v6-c-toolbar__item">Item</div>
|
|
85
|
+
<div class="pf-v6-c-toolbar__item">Item</div>
|
|
86
|
+
<div class="pf-v6-c-toolbar__item">Item</div>
|
|
87
|
+
<hr class="pf-v6-c-divider pf-m-vertical" />
|
|
88
|
+
|
|
89
|
+
<div class="pf-v6-c-toolbar__group">
|
|
90
|
+
<div class="pf-v6-c-toolbar__item">Item</div>
|
|
91
|
+
<div class="pf-v6-c-toolbar__item">Item</div>
|
|
92
|
+
<div class="pf-v6-c-toolbar__item">Item</div>
|
|
93
|
+
</div>
|
|
94
|
+
|
|
95
|
+
<hr class="pf-v6-c-divider pf-m-vertical" />
|
|
96
|
+
<div class="pf-v6-c-toolbar__item">Item</div>
|
|
97
|
+
<div class="pf-v6-c-toolbar__item">Item</div>
|
|
98
|
+
<div class="pf-v6-c-toolbar__item">Item</div>
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
|
|
103
|
+
```
|
|
104
|
+
|
|
78
105
|
### Adjusted group column gap
|
|
79
106
|
|
|
80
107
|
```html
|
|
@@ -2607,6 +2634,7 @@ As the toolbar component is a hybrid layout and component, some of its elements
|
|
|
2607
2634
|
| `.pf-m-static` | `.pf-v6-c-toolbar` | Modifies expandable content section to position itself to the nearest absolutely positioned parent outside of the toolbar component. This is used primarily for masthead toolbar. |
|
|
2608
2635
|
| `.pf-m-primary` | `.pf-v6-c-toolbar` | Modifies toolbar to have primary background color. |
|
|
2609
2636
|
| `.pf-m-secondary` | `.pf-v6-c-toolbar` | Modifies toolbar to have secondary background color. |
|
|
2637
|
+
| `.pf-m-no-padding` | `.pf-v6-c-toolbar` | Modifies toolbar to have no padding. |
|
|
2610
2638
|
| `.pf-m-no-background` | `.pf-v6-c-toolbar` | Modifies toolbar to have no background color. |
|
|
2611
2639
|
| `.pf-m-expanded` | `.pf-v6-c-toolbar__expandable-content` | Modifies expandable content section for the expanded state. |
|
|
2612
2640
|
| `.pf-m-expanded` | `.pf-v6-c-toolbar__item.pf-m-expand-all` | Modifies an expand all button for the expanded state. |
|