@patternfly/patternfly 6.2.0-prerelease.8 → 6.2.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/base/patternfly-variables.css +1 -1
- package/base/patternfly-variables.scss +1 -1
- package/components/Accordion/accordion.css +3 -1
- package/components/Accordion/accordion.scss +4 -2
- package/components/Alert/alert-group.css +52 -9
- package/components/Alert/alert-group.scss +116 -29
- package/components/Banner/banner.css +2 -2
- package/components/Banner/banner.scss +2 -2
- package/components/Button/button.css +41 -0
- package/components/Button/button.scss +52 -0
- package/components/Card/card.css +21 -2
- package/components/Card/card.scss +26 -2
- package/components/ClipboardCopy/clipboard-copy.css +6 -1
- package/components/ClipboardCopy/clipboard-copy.scss +8 -2
- package/components/DataList/data-list.css +3 -1
- package/components/DataList/data-list.scss +4 -2
- package/components/DescriptionList/description-list.css +1 -1
- package/components/DescriptionList/description-list.scss +1 -1
- package/components/DualListSelector/dual-list-selector.css +4 -2
- package/components/DualListSelector/dual-list-selector.scss +4 -2
- package/components/ExpandableSection/expandable-section.css +3 -1
- package/components/ExpandableSection/expandable-section.scss +4 -2
- package/components/Form/form.css +7 -5
- package/components/Form/form.scss +7 -5
- package/components/FormControl/form-control.css +108 -41
- package/components/FormControl/form-control.scss +138 -49
- package/components/HelperText/helper-text.css +13 -0
- package/components/HelperText/helper-text.scss +16 -1
- package/components/JumpLinks/jump-links.css +4 -2
- package/components/JumpLinks/jump-links.scss +4 -2
- package/components/Masthead/masthead.css +1 -1
- package/components/Masthead/masthead.scss +1 -1
- package/components/Menu/menu.css +4 -5
- package/components/Menu/menu.scss +2 -3
- package/components/MenuToggle/menu-toggle.css +42 -1
- package/components/MenuToggle/menu-toggle.scss +50 -1
- package/components/Nav/nav.css +41 -11
- package/components/Nav/nav.scss +52 -15
- package/components/NotificationDrawer/notification-drawer.css +3 -1
- package/components/NotificationDrawer/notification-drawer.scss +4 -2
- package/components/Page/page.css +16 -1
- package/components/Page/page.scss +17 -3
- package/components/Popover/popover.css +2 -0
- package/components/Popover/popover.scss +2 -0
- package/components/Switch/switch.css +3 -1
- package/components/Switch/switch.scss +4 -2
- package/components/Table/table-grid.css +3 -1
- package/components/Table/table-grid.scss +4 -2
- package/components/Table/table.css +7 -5
- package/components/Table/table.scss +7 -4
- package/components/Tabs/tabs.css +6 -2
- package/components/Tabs/tabs.scss +8 -4
- package/components/Toolbar/toolbar.css +10 -3
- package/components/Toolbar/toolbar.scss +11 -3
- package/components/Wizard/wizard.css +4 -2
- package/components/Wizard/wizard.scss +4 -2
- package/components/_index.css +409 -102
- package/docs/components/Alert/examples/Alert.md +6 -0
- package/docs/components/Button/examples/Button.md +29 -0
- package/docs/components/Card/examples/Card.md +30 -0
- package/docs/components/ClipboardCopy/examples/ClipboardCopy.md +29 -0
- package/docs/components/DataList/examples/DataList.md +1 -1
- package/docs/components/Menu/examples/Menu.md +6 -6
- package/docs/components/Nav/examples/Navigation.md +3 -0
- package/docs/components/Table/examples/Table.md +14 -26
- 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/docs/demos/CardView/examples/CardView.md +2 -0
- package/docs/demos/Nav/examples/Nav.md +2 -0
- package/package.json +2 -2
- package/patternfly-base-no-globals.css +1 -1
- package/patternfly-base.css +1 -1
- package/patternfly-charts.css +3 -3
- package/patternfly-charts.scss +3 -3
- package/patternfly-no-globals.css +410 -103
- package/patternfly.css +410 -103
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/mixins.scss +8 -4
- package/docs/components/TabContent/examples/TabContent.md +0 -153
|
@@ -727,6 +727,12 @@ For sighted users, interactive elements can be included in this message in one o
|
|
|
727
727
|
<span class="pf-v6-screen-reader">Success alert:</span>
|
|
728
728
|
Success toast alert title
|
|
729
729
|
</p>
|
|
730
|
+
<div class="pf-v6-c-alert__description">
|
|
731
|
+
<p>
|
|
732
|
+
Info toast alert description. From the settings tab, click
|
|
733
|
+
<a href="#">View logs</a> to review the details.
|
|
734
|
+
</p>
|
|
735
|
+
</div>
|
|
730
736
|
<div class="pf-v6-c-alert__action">
|
|
731
737
|
<button
|
|
732
738
|
class="pf-v6-c-button pf-m-plain"
|
|
@@ -1999,6 +1999,32 @@ For when a plain/icon button is placed inline with text
|
|
|
1999
1999
|
|
|
2000
2000
|
```
|
|
2001
2001
|
|
|
2002
|
+
### Favorite
|
|
2003
|
+
|
|
2004
|
+
A favorite button should use a plain button with the star icon. Applying `.pf-m-favorited` to the button initiates a microanimation and indicates that the item is favorited.
|
|
2005
|
+
|
|
2006
|
+
```html
|
|
2007
|
+
<button
|
|
2008
|
+
class="pf-v6-c-button pf-m-favorite pf-m-plain"
|
|
2009
|
+
type="button"
|
|
2010
|
+
aria-label="not starred"
|
|
2011
|
+
>
|
|
2012
|
+
<span class="pf-v6-c-button__icon">
|
|
2013
|
+
<i class="fas fa-star" aria-hidden="true"></i>
|
|
2014
|
+
</span>
|
|
2015
|
+
</button>
|
|
2016
|
+
<button
|
|
2017
|
+
class="pf-v6-c-button pf-m-favorited pf-m-favorite pf-m-plain"
|
|
2018
|
+
type="button"
|
|
2019
|
+
aria-label="starred"
|
|
2020
|
+
>
|
|
2021
|
+
<span class="pf-v6-c-button__icon">
|
|
2022
|
+
<i class="fas fa-star" aria-hidden="true"></i>
|
|
2023
|
+
</span>
|
|
2024
|
+
</button>
|
|
2025
|
+
|
|
2026
|
+
```
|
|
2027
|
+
|
|
2002
2028
|
## Documentation
|
|
2003
2029
|
|
|
2004
2030
|
### Overview
|
|
@@ -2052,3 +2078,6 @@ Semantic buttons and links are important for usability as well as accessibility.
|
|
|
2052
2078
|
| `.pf-m-progress` | `.pf-v6-c-button` | Indicates that the button supports the progress state. **Note:** Not used with the plain variation. |
|
|
2053
2079
|
| `.pf-m-in-progress` | `.pf-v6-c-button` | Indicates that the button is in the in progress state. |
|
|
2054
2080
|
| `.pf-m-stateful` | `.pf-v6-c-button` | Indicates that the button is used for one of read, unread, and attention states. **Note:** Always use with a modifier of `.pf-m-read`, `.pf-m-unread`, or `.pf-m-attention`. |
|
|
2081
|
+
| `.pf-m-notify` | `.pf-v6-c-button` | Indicates that the button should show the user notification of an event. **Note:** This is intended for use with a bell icon in the notification badge. |
|
|
2082
|
+
| `.pf-m-favorite` | `.pf-v6-c-button .pf-m-plain` | Modifies a plain button to be a favorite button. **Note:** This is intended for use with a star icon. |
|
|
2083
|
+
| `.pf-m-favorited` | `.pf-v6-c-button .pf-m-plain .pf-m-favorite` | Modifies a favorite button to indicate that item is favorited. |
|
|
@@ -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. |
|
|
@@ -503,6 +503,34 @@ cssPrefix: pf-v6-c-clipboard-copy
|
|
|
503
503
|
|
|
504
504
|
```
|
|
505
505
|
|
|
506
|
+
### Inline compact with truncation
|
|
507
|
+
|
|
508
|
+
```html
|
|
509
|
+
<div class="pf-v6-c-clipboard-copy pf-m-inline pf-m-truncate">
|
|
510
|
+
<span class="pf-v6-c-clipboard-copy__text">
|
|
511
|
+
<span class="pf-v6-c-truncate">
|
|
512
|
+
<span
|
|
513
|
+
class="pf-v6-c-truncate__start"
|
|
514
|
+
>This lengthy, copyable content will be truncated with default settings when the truncation prop is simply set to true. This is useful for quickly applying truncation without needing to worry about any other properties to set.</span>
|
|
515
|
+
</span>
|
|
516
|
+
</span>
|
|
517
|
+
<span class="pf-v6-c-clipboard-copy__actions">
|
|
518
|
+
<span class="pf-v6-c-clipboard-copy__actions-item">
|
|
519
|
+
<button
|
|
520
|
+
class="pf-v6-c-button pf-m-no-padding pf-m-plain"
|
|
521
|
+
type="button"
|
|
522
|
+
aria-label="Copy to clipboard"
|
|
523
|
+
>
|
|
524
|
+
<span class="pf-v6-c-button__icon">
|
|
525
|
+
<i class="fas fa-copy" aria-hidden="true"></i>
|
|
526
|
+
</span>
|
|
527
|
+
</button>
|
|
528
|
+
</span>
|
|
529
|
+
</span>
|
|
530
|
+
</div>
|
|
531
|
+
|
|
532
|
+
```
|
|
533
|
+
|
|
506
534
|
## Documentation
|
|
507
535
|
|
|
508
536
|
### Accessibility
|
|
@@ -529,6 +557,7 @@ cssPrefix: pf-v6-c-clipboard-copy
|
|
|
529
557
|
| `.pf-v6-c-clipboard-copy__actions-item` | `<span>` | Initiates the inline copy clipboard actions item element. **Required** |
|
|
530
558
|
| `.pf-m-inline` | `.pf-v6-c-clipboard-copy` | Modifies the clipboard copy component for inline styles. |
|
|
531
559
|
| `.pf-m-block` | `.pf-v6-c-clipboard-copy.pf-m-inline` | Modifies the inline copy clipboard component to have block formatting. |
|
|
560
|
+
| `.pf-m-truncate` | `.pf-v6-c-clipboard-copy.pf-m-truncate` | Modifies the inline copy clipboard component for use with text used in trucate component. |
|
|
532
561
|
| `.pf-m-expanded` | `.pf-v6-c-clipboard-copy` | Modifies the clipboard copy component for the expanded state. |
|
|
533
562
|
| `.pf-m-expanded` | `.pf-v6-c-button.pf-m-control` | Modifies the control toggle button for the expanded state. |
|
|
534
563
|
| `.pf-m-code` | `code.pf-v6-c-clipboard-copy__text` | Modifies the inline copy clipboard text styles for use with the `<code>` element. |
|
|
@@ -1757,7 +1757,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1757
1757
|
id="draggable-help"
|
|
1758
1758
|
>Activate the reorder button and use the arrow keys to reorder the list or use your mouse to drag/reorder. Press escape to cancel the reordering.</div>
|
|
1759
1759
|
<ul
|
|
1760
|
-
class="pf-v6-c-data-list"
|
|
1760
|
+
class="pf-v6-c-data-list pf-m-compact"
|
|
1761
1761
|
role="list"
|
|
1762
1762
|
aria-label="Draggable data list rows"
|
|
1763
1763
|
id="data-list-draggable"
|
|
@@ -5640,9 +5640,9 @@ cssPrefix: pf-v6-c-menu
|
|
|
5640
5640
|
</span>
|
|
5641
5641
|
<span class="pf-v6-c-menu__item-description">This is a description</span>
|
|
5642
5642
|
</a>
|
|
5643
|
-
<div class="pf-v6-c-menu__item-action
|
|
5643
|
+
<div class="pf-v6-c-menu__item-action">
|
|
5644
5644
|
<button
|
|
5645
|
-
class="pf-v6-c-button pf-m-plain"
|
|
5645
|
+
class="pf-v6-c-button pf-m-favorited pf-m-favorite pf-m-plain"
|
|
5646
5646
|
type="button"
|
|
5647
5647
|
role="menuitem"
|
|
5648
5648
|
aria-label="Starred"
|
|
@@ -5666,9 +5666,9 @@ cssPrefix: pf-v6-c-menu
|
|
|
5666
5666
|
</span>
|
|
5667
5667
|
<span class="pf-v6-c-menu__item-description">This is a description</span>
|
|
5668
5668
|
</a>
|
|
5669
|
-
<div class="pf-v6-c-menu__item-action
|
|
5669
|
+
<div class="pf-v6-c-menu__item-action">
|
|
5670
5670
|
<button
|
|
5671
|
-
class="pf-v6-c-button pf-m-plain"
|
|
5671
|
+
class="pf-v6-c-button pf-m-favorited pf-m-favorite pf-m-plain"
|
|
5672
5672
|
type="button"
|
|
5673
5673
|
role="menuitem"
|
|
5674
5674
|
aria-label="Starred"
|
|
@@ -5699,7 +5699,7 @@ cssPrefix: pf-v6-c-menu
|
|
|
5699
5699
|
</a>
|
|
5700
5700
|
<div class="pf-v6-c-menu__item-action">
|
|
5701
5701
|
<button
|
|
5702
|
-
class="pf-v6-c-button pf-m-plain"
|
|
5702
|
+
class="pf-v6-c-button pf-m-favorite pf-m-plain"
|
|
5703
5703
|
type="button"
|
|
5704
5704
|
role="menuitem"
|
|
5705
5705
|
aria-label="Not starred"
|
|
@@ -5728,7 +5728,7 @@ cssPrefix: pf-v6-c-menu
|
|
|
5728
5728
|
</a>
|
|
5729
5729
|
<div class="pf-v6-c-menu__item-action">
|
|
5730
5730
|
<button
|
|
5731
|
-
class="pf-v6-c-button pf-m-plain"
|
|
5731
|
+
class="pf-v6-c-button pf-m-favorite pf-m-plain"
|
|
5732
5732
|
type="button"
|
|
5733
5733
|
role="menuitem"
|
|
5734
5734
|
aria-label="Not starred"
|
|
@@ -230,6 +230,7 @@ cssPrefix: pf-v6-c-nav
|
|
|
230
230
|
class="pf-v6-c-nav__subnav"
|
|
231
231
|
aria-labelledby="expandable-example3"
|
|
232
232
|
hidden
|
|
233
|
+
inert
|
|
233
234
|
>
|
|
234
235
|
<ul class="pf-v6-c-nav__list" role="list">
|
|
235
236
|
<li class="pf-v6-c-nav__item">
|
|
@@ -376,6 +377,7 @@ cssPrefix: pf-v6-c-nav
|
|
|
376
377
|
class="pf-v6-c-nav__subnav"
|
|
377
378
|
aria-labelledby="nav-mixed-link4"
|
|
378
379
|
hidden
|
|
380
|
+
inert
|
|
379
381
|
>
|
|
380
382
|
<ul class="pf-v6-c-nav__list" role="list">
|
|
381
383
|
<li class="pf-v6-c-nav__item">
|
|
@@ -442,6 +444,7 @@ cssPrefix: pf-v6-c-nav
|
|
|
442
444
|
class="pf-v6-c-nav__subnav"
|
|
443
445
|
aria-labelledby="expandable-third-level-example-example-1"
|
|
444
446
|
hidden
|
|
447
|
+
inert
|
|
445
448
|
>
|
|
446
449
|
<ul class="pf-v6-c-nav__list" role="list">
|
|
447
450
|
<li class="pf-v6-c-nav__item">
|
|
@@ -20222,12 +20222,9 @@ For sticky columns to function correctly, the parent table's width must be contr
|
|
|
20222
20222
|
</label>
|
|
20223
20223
|
</td>
|
|
20224
20224
|
|
|
20225
|
-
<td
|
|
20226
|
-
class="pf-v6-c-table__td pf-v6-c-table__favorite pf-m-favorited"
|
|
20227
|
-
role="cell"
|
|
20228
|
-
>
|
|
20225
|
+
<td class="pf-v6-c-table__td pf-v6-c-table__favorite" role="cell">
|
|
20229
20226
|
<button
|
|
20230
|
-
class="pf-v6-c-button pf-m-plain"
|
|
20227
|
+
class="pf-v6-c-button pf-m-favorited pf-m-favorite pf-m-plain"
|
|
20231
20228
|
type="button"
|
|
20232
20229
|
aria-label="Starred"
|
|
20233
20230
|
id="table-favorites-favorite-button1"
|
|
@@ -20284,7 +20281,7 @@ For sticky columns to function correctly, the parent table's width must be contr
|
|
|
20284
20281
|
|
|
20285
20282
|
<td class="pf-v6-c-table__td pf-v6-c-table__favorite" role="cell">
|
|
20286
20283
|
<button
|
|
20287
|
-
class="pf-v6-c-button pf-m-plain"
|
|
20284
|
+
class="pf-v6-c-button pf-m-favorite pf-m-plain"
|
|
20288
20285
|
type="button"
|
|
20289
20286
|
aria-label="Not starred"
|
|
20290
20287
|
id="table-favorites-favorite-button2"
|
|
@@ -20337,12 +20334,9 @@ For sticky columns to function correctly, the parent table's width must be contr
|
|
|
20337
20334
|
</label>
|
|
20338
20335
|
</td>
|
|
20339
20336
|
|
|
20340
|
-
<td
|
|
20341
|
-
class="pf-v6-c-table__td pf-v6-c-table__favorite pf-m-favorited"
|
|
20342
|
-
role="cell"
|
|
20343
|
-
>
|
|
20337
|
+
<td class="pf-v6-c-table__td pf-v6-c-table__favorite" role="cell">
|
|
20344
20338
|
<button
|
|
20345
|
-
class="pf-v6-c-button pf-m-plain"
|
|
20339
|
+
class="pf-v6-c-button pf-m-favorited pf-m-favorite pf-m-plain"
|
|
20346
20340
|
type="button"
|
|
20347
20341
|
aria-label="Starred"
|
|
20348
20342
|
id="table-favorites-favorite-button3"
|
|
@@ -20397,7 +20391,7 @@ For sticky columns to function correctly, the parent table's width must be contr
|
|
|
20397
20391
|
|
|
20398
20392
|
<td class="pf-v6-c-table__td pf-v6-c-table__favorite" role="cell">
|
|
20399
20393
|
<button
|
|
20400
|
-
class="pf-v6-c-button pf-m-plain"
|
|
20394
|
+
class="pf-v6-c-button pf-m-favorite pf-m-plain"
|
|
20401
20395
|
type="button"
|
|
20402
20396
|
aria-label="Not starred"
|
|
20403
20397
|
id="table-favorites-favorite-button4"
|
|
@@ -20459,7 +20453,7 @@ For sticky columns to function correctly, the parent table's width must be contr
|
|
|
20459
20453
|
<div class="pf-v6-c-action-list pf-m-icons">
|
|
20460
20454
|
<div class="pf-v6-c-action-list__item">
|
|
20461
20455
|
<button
|
|
20462
|
-
class="pf-v6-c-button pf-m-plain"
|
|
20456
|
+
class="pf-v6-c-button pf-m-favorite pf-m-plain"
|
|
20463
20457
|
type="button"
|
|
20464
20458
|
aria-label="Favorite all"
|
|
20465
20459
|
>
|
|
@@ -20502,12 +20496,9 @@ For sticky columns to function correctly, the parent table's width must be contr
|
|
|
20502
20496
|
|
|
20503
20497
|
<tbody class="pf-v6-c-table__tbody" role="rowgroup">
|
|
20504
20498
|
<tr class="pf-v6-c-table__tr" role="row">
|
|
20505
|
-
<td
|
|
20506
|
-
class="pf-v6-c-table__td pf-v6-c-table__favorite pf-m-favorited"
|
|
20507
|
-
role="cell"
|
|
20508
|
-
>
|
|
20499
|
+
<td class="pf-v6-c-table__td pf-v6-c-table__favorite" role="cell">
|
|
20509
20500
|
<button
|
|
20510
|
-
class="pf-v6-c-button pf-m-plain"
|
|
20501
|
+
class="pf-v6-c-button pf-m-favorited pf-m-favorite pf-m-plain"
|
|
20511
20502
|
type="button"
|
|
20512
20503
|
aria-label="Starred"
|
|
20513
20504
|
id="table-favorites-sortable-favorite-button1"
|
|
@@ -20534,12 +20525,9 @@ For sticky columns to function correctly, the parent table's width must be contr
|
|
|
20534
20525
|
</tr>
|
|
20535
20526
|
|
|
20536
20527
|
<tr class="pf-v6-c-table__tr" role="row">
|
|
20537
|
-
<td
|
|
20538
|
-
class="pf-v6-c-table__td pf-v6-c-table__favorite pf-m-favorited"
|
|
20539
|
-
role="cell"
|
|
20540
|
-
>
|
|
20528
|
+
<td class="pf-v6-c-table__td pf-v6-c-table__favorite" role="cell">
|
|
20541
20529
|
<button
|
|
20542
|
-
class="pf-v6-c-button pf-m-plain"
|
|
20530
|
+
class="pf-v6-c-button pf-m-favorited pf-m-favorite pf-m-plain"
|
|
20543
20531
|
type="button"
|
|
20544
20532
|
aria-label="Starred"
|
|
20545
20533
|
id="table-favorites-sortable-favorite-button3"
|
|
@@ -20566,7 +20554,7 @@ For sticky columns to function correctly, the parent table's width must be contr
|
|
|
20566
20554
|
<tr class="pf-v6-c-table__tr" role="row">
|
|
20567
20555
|
<td class="pf-v6-c-table__td pf-v6-c-table__favorite" role="cell">
|
|
20568
20556
|
<button
|
|
20569
|
-
class="pf-v6-c-button pf-m-plain"
|
|
20557
|
+
class="pf-v6-c-button pf-m-favorite pf-m-plain"
|
|
20570
20558
|
type="button"
|
|
20571
20559
|
aria-label="Not starred"
|
|
20572
20560
|
id="table-favorites-sortable-favorite-button2"
|
|
@@ -20593,7 +20581,7 @@ For sticky columns to function correctly, the parent table's width must be contr
|
|
|
20593
20581
|
<tr class="pf-v6-c-table__tr" role="row">
|
|
20594
20582
|
<td class="pf-v6-c-table__td pf-v6-c-table__favorite" role="cell">
|
|
20595
20583
|
<button
|
|
20596
|
-
class="pf-v6-c-button pf-m-plain"
|
|
20584
|
+
class="pf-v6-c-button pf-m-favorite pf-m-plain"
|
|
20597
20585
|
type="button"
|
|
20598
20586
|
aria-label="Not starred"
|
|
20599
20587
|
id="table-favorites-sortable-favorite-button4"
|
|
@@ -20620,7 +20608,7 @@ For sticky columns to function correctly, the parent table's width must be contr
|
|
|
20620
20608
|
<tr class="pf-v6-c-table__tr" role="row">
|
|
20621
20609
|
<td class="pf-v6-c-table__td pf-v6-c-table__favorite" role="cell">
|
|
20622
20610
|
<button
|
|
20623
|
-
class="pf-v6-c-button pf-m-plain"
|
|
20611
|
+
class="pf-v6-c-button pf-m-favorite pf-m-plain"
|
|
20624
20612
|
type="button"
|
|
20625
20613
|
aria-label="Not starred"
|
|
20626
20614
|
id="table-favorites-sortable-favorite-button5"
|
|
@@ -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. |
|