@patternfly/patternfly 5.0.0-alpha.49 → 5.0.0-alpha.50
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/components/Breadcrumb/breadcrumb.css +1 -5
- package/components/Breadcrumb/breadcrumb.scss +1 -8
- package/components/Divider/divider.css +12 -12
- package/components/List/list.css +1 -1
- package/components/List/list.scss +1 -1
- package/components/LogViewer/log-viewer.css +0 -3
- package/components/LogViewer/log-viewer.scss +0 -4
- package/components/Masthead/masthead.css +12 -12
- package/components/MultipleFileUpload/multiple-file-upload.css +3 -3
- package/components/MultipleFileUpload/multiple-file-upload.scss +3 -3
- package/components/Pagination/pagination.css +12 -12
- package/components/Tabs/tabs.css +24 -24
- package/components/TextInputGroup/text-input-group.css +1 -5
- package/components/TextInputGroup/text-input-group.scss +1 -7
- package/components/Toolbar/toolbar.css +54 -54
- package/components/_all.scss +1 -2
- package/docs/components/AppLauncher/examples/application-launcher.md +8 -7
- package/docs/components/Chip/examples/Chip.md +713 -4
- package/docs/components/ContextSelector/examples/context-selector.md +12 -12
- package/docs/components/DualListSelector/examples/DualListSelector.md +32 -32
- package/docs/components/LogViewer/examples/LogViewer.md +40 -40
- package/docs/components/Menu/examples/Menu.md +20 -18
- package/docs/components/Select/examples/Select.md +16 -14
- package/docs/components/TextInputGroup/examples/TextInputGroup.css +0 -13
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +21 -21
- package/docs/components/Toolbar/examples/Toolbar.md +10 -10
- package/docs/components/TreeView/examples/TreeView.md +8 -7
- package/docs/demos/AboutModal/examples/AboutModal.md +21 -21
- package/docs/demos/Alert/examples/Alert.md +63 -63
- package/docs/demos/BackToTop/examples/BackToTop.md +21 -21
- package/docs/demos/Banner/examples/Banner.md +42 -42
- package/docs/demos/CardView/examples/CardView.md +21 -21
- package/docs/demos/ContextSelector/examples/ContextSelector.md +95 -91
- package/docs/demos/Dashboard/examples/Dashboard.md +21 -21
- package/docs/demos/DataList/examples/DataList.md +104 -105
- package/docs/demos/DescriptionList/examples/DescriptionList.md +63 -63
- package/docs/demos/Drawer/examples/Drawer.md +105 -105
- package/docs/demos/JumpLinks/examples/JumpLinks.md +126 -126
- package/docs/demos/Masthead/examples/Masthead.md +56 -55
- package/docs/demos/Modal/examples/Modal.md +126 -126
- package/docs/demos/Nav/examples/Nav.md +168 -168
- package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +105 -105
- package/docs/demos/Page/examples/Page.md +189 -189
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +153 -153
- package/docs/demos/Skeleton/examples/Skeleton.md +21 -21
- package/docs/demos/Table/examples/Table.md +339 -339
- package/docs/demos/Tabs/examples/Tabs.md +126 -126
- package/docs/demos/Toolbar/examples/Toolbar.md +50 -50
- package/docs/demos/Wizard/examples/Wizard.md +189 -189
- package/docs/layouts/Flex/examples/Flex.md +319 -215
- package/layouts/Flex/flex.css +738 -31
- package/layouts/Flex/flex.scss +101 -17
- package/package.json +1 -1
- package/patternfly-base-no-globals.css +1 -1
- package/patternfly-base.css +1 -1
- package/patternfly-no-globals.css +859 -389
- package/patternfly.css +859 -389
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/component-namespaces.scss +0 -3
- package/sass-utilities/functions.scss +9 -5
- package/sass-utilities/themes/dark/scss-variables.scss +1 -4
- package/components/Breadcrumb/themes/dark/breadcrumb.scss +0 -7
- package/components/SearchInput/search-input.css +0 -199
- package/components/SearchInput/search-input.scss +0 -231
- package/components/SearchInput/themes/dark/search-input.scss +0 -16
- package/docs/components/ChipGroup/examples/ChipGroup.md +0 -716
- package/docs/components/SearchInput/examples/SearchInput.css +0 -12
- package/docs/components/SearchInput/examples/SearchInput.md +0 -681
- /package/components/{ChipGroup → Chip}/chip-group.css +0 -0
- /package/components/{ChipGroup → Chip}/chip-group.scss +0 -0
|
@@ -1,716 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
id: Chip group
|
|
3
|
-
section: components
|
|
4
|
-
cssPrefix: pf-v5-c-chip-group
|
|
5
|
-
---## Examples
|
|
6
|
-
|
|
7
|
-
### Simple inline chip group overflow
|
|
8
|
-
|
|
9
|
-
```html
|
|
10
|
-
<div class="pf-v5-c-chip-group">
|
|
11
|
-
<div class="pf-v5-c-chip-group__main">
|
|
12
|
-
<ul
|
|
13
|
-
class="pf-v5-c-chip-group__list"
|
|
14
|
-
role="list"
|
|
15
|
-
aria-label="Chip group list"
|
|
16
|
-
>
|
|
17
|
-
<li class="pf-v5-c-chip-group__list-item">
|
|
18
|
-
<div class="pf-v5-c-chip">
|
|
19
|
-
<span class="pf-v5-c-chip__content">
|
|
20
|
-
<span
|
|
21
|
-
class="pf-v5-c-chip__text"
|
|
22
|
-
id="simple-inline-chip-group-overflowchip_one_select_collapsed"
|
|
23
|
-
>Chip one</span>
|
|
24
|
-
</span>
|
|
25
|
-
<span class="pf-v5-c-chip__actions">
|
|
26
|
-
<button
|
|
27
|
-
class="pf-v5-c-button pf-m-plain"
|
|
28
|
-
type="button"
|
|
29
|
-
aria-labelledby="simple-inline-chip-group-overflowremove_chip_one_select_collapsed simple-inline-chip-group-overflowchip_one_select_collapsed"
|
|
30
|
-
aria-label="Remove"
|
|
31
|
-
id="simple-inline-chip-group-overflowremove_chip_one_select_collapsed"
|
|
32
|
-
>
|
|
33
|
-
<i class="fas fa-times" aria-hidden="true"></i>
|
|
34
|
-
</button>
|
|
35
|
-
</span>
|
|
36
|
-
</div>
|
|
37
|
-
</li>
|
|
38
|
-
<li class="pf-v5-c-chip-group__list-item">
|
|
39
|
-
<div class="pf-v5-c-chip">
|
|
40
|
-
<span class="pf-v5-c-chip__content">
|
|
41
|
-
<span
|
|
42
|
-
class="pf-v5-c-chip__text"
|
|
43
|
-
id="simple-inline-chip-group-overflowchip_two_select_collapsed"
|
|
44
|
-
>Chip two</span>
|
|
45
|
-
</span>
|
|
46
|
-
<span class="pf-v5-c-chip__actions">
|
|
47
|
-
<button
|
|
48
|
-
class="pf-v5-c-button pf-m-plain"
|
|
49
|
-
type="button"
|
|
50
|
-
aria-labelledby="simple-inline-chip-group-overflowremove_chip_two_select_collapsed simple-inline-chip-group-overflowchip_two_select_collapsed"
|
|
51
|
-
aria-label="Remove"
|
|
52
|
-
id="simple-inline-chip-group-overflowremove_chip_two_select_collapsed"
|
|
53
|
-
>
|
|
54
|
-
<i class="fas fa-times" aria-hidden="true"></i>
|
|
55
|
-
</button>
|
|
56
|
-
</span>
|
|
57
|
-
</div>
|
|
58
|
-
</li>
|
|
59
|
-
<li class="pf-v5-c-chip-group__list-item">
|
|
60
|
-
<div class="pf-v5-c-chip">
|
|
61
|
-
<span class="pf-v5-c-chip__content">
|
|
62
|
-
<span
|
|
63
|
-
class="pf-v5-c-chip__text"
|
|
64
|
-
id="simple-inline-chip-group-overflowchip_three_select_collapsed"
|
|
65
|
-
>Chip three</span>
|
|
66
|
-
</span>
|
|
67
|
-
<span class="pf-v5-c-chip__actions">
|
|
68
|
-
<button
|
|
69
|
-
class="pf-v5-c-button pf-m-plain"
|
|
70
|
-
type="button"
|
|
71
|
-
aria-labelledby="simple-inline-chip-group-overflowremove_chip_three_select_collapsed simple-inline-chip-group-overflowchip_three_select_collapsed"
|
|
72
|
-
aria-label="Remove"
|
|
73
|
-
id="simple-inline-chip-group-overflowremove_chip_three_select_collapsed"
|
|
74
|
-
>
|
|
75
|
-
<i class="fas fa-times" aria-hidden="true"></i>
|
|
76
|
-
</button>
|
|
77
|
-
</span>
|
|
78
|
-
</div>
|
|
79
|
-
</li>
|
|
80
|
-
<li class="pf-v5-c-chip-group__list-item">
|
|
81
|
-
<button class="pf-v5-c-chip pf-m-overflow">
|
|
82
|
-
<span class="pf-v5-c-chip__content">
|
|
83
|
-
<span class="pf-v5-c-chip__text">2 more</span>
|
|
84
|
-
</span>
|
|
85
|
-
</button>
|
|
86
|
-
</li>
|
|
87
|
-
</ul>
|
|
88
|
-
</div>
|
|
89
|
-
</div>
|
|
90
|
-
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
### Simple inline chip group expanded
|
|
94
|
-
|
|
95
|
-
```html
|
|
96
|
-
<div class="pf-v5-c-chip-group">
|
|
97
|
-
<div class="pf-v5-c-chip-group__main">
|
|
98
|
-
<ul
|
|
99
|
-
class="pf-v5-c-chip-group__list"
|
|
100
|
-
role="list"
|
|
101
|
-
aria-label="Chip group list"
|
|
102
|
-
>
|
|
103
|
-
<li class="pf-v5-c-chip-group__list-item">
|
|
104
|
-
<div class="pf-v5-c-chip">
|
|
105
|
-
<span class="pf-v5-c-chip__content">
|
|
106
|
-
<span
|
|
107
|
-
class="pf-v5-c-chip__text"
|
|
108
|
-
id="simple-inline-chip-group-expandedchip_one_select"
|
|
109
|
-
>Chip one</span>
|
|
110
|
-
</span>
|
|
111
|
-
<span class="pf-v5-c-chip__actions">
|
|
112
|
-
<button
|
|
113
|
-
class="pf-v5-c-button pf-m-plain"
|
|
114
|
-
type="button"
|
|
115
|
-
aria-labelledby="simple-inline-chip-group-expandedremove_chip_one_select simple-inline-chip-group-expandedchip_one_select"
|
|
116
|
-
aria-label="Remove"
|
|
117
|
-
id="simple-inline-chip-group-expandedremove_chip_one_select"
|
|
118
|
-
>
|
|
119
|
-
<i class="fas fa-times" aria-hidden="true"></i>
|
|
120
|
-
</button>
|
|
121
|
-
</span>
|
|
122
|
-
</div>
|
|
123
|
-
</li>
|
|
124
|
-
<li class="pf-v5-c-chip-group__list-item">
|
|
125
|
-
<div class="pf-v5-c-chip">
|
|
126
|
-
<span class="pf-v5-c-chip__content">
|
|
127
|
-
<span
|
|
128
|
-
class="pf-v5-c-chip__text"
|
|
129
|
-
id="simple-inline-chip-group-expandedchip_two_select"
|
|
130
|
-
>Chip two</span>
|
|
131
|
-
</span>
|
|
132
|
-
<span class="pf-v5-c-chip__actions">
|
|
133
|
-
<button
|
|
134
|
-
class="pf-v5-c-button pf-m-plain"
|
|
135
|
-
type="button"
|
|
136
|
-
aria-labelledby="simple-inline-chip-group-expandedremove_chip_two_select simple-inline-chip-group-expandedchip_two_select"
|
|
137
|
-
aria-label="Remove"
|
|
138
|
-
id="simple-inline-chip-group-expandedremove_chip_two_select"
|
|
139
|
-
>
|
|
140
|
-
<i class="fas fa-times" aria-hidden="true"></i>
|
|
141
|
-
</button>
|
|
142
|
-
</span>
|
|
143
|
-
</div>
|
|
144
|
-
</li>
|
|
145
|
-
<li class="pf-v5-c-chip-group__list-item">
|
|
146
|
-
<div class="pf-v5-c-chip">
|
|
147
|
-
<span class="pf-v5-c-chip__content">
|
|
148
|
-
<span
|
|
149
|
-
class="pf-v5-c-chip__text"
|
|
150
|
-
id="simple-inline-chip-group-expandedchip_three_select"
|
|
151
|
-
>Chip three</span>
|
|
152
|
-
</span>
|
|
153
|
-
<span class="pf-v5-c-chip__actions">
|
|
154
|
-
<button
|
|
155
|
-
class="pf-v5-c-button pf-m-plain"
|
|
156
|
-
type="button"
|
|
157
|
-
aria-labelledby="simple-inline-chip-group-expandedremove_chip_three_select simple-inline-chip-group-expandedchip_three_select"
|
|
158
|
-
aria-label="Remove"
|
|
159
|
-
id="simple-inline-chip-group-expandedremove_chip_three_select"
|
|
160
|
-
>
|
|
161
|
-
<i class="fas fa-times" aria-hidden="true"></i>
|
|
162
|
-
</button>
|
|
163
|
-
</span>
|
|
164
|
-
</div>
|
|
165
|
-
</li>
|
|
166
|
-
<li class="pf-v5-c-chip-group__list-item">
|
|
167
|
-
<div class="pf-v5-c-chip">
|
|
168
|
-
<span class="pf-v5-c-chip__content">
|
|
169
|
-
<span
|
|
170
|
-
class="pf-v5-c-chip__text"
|
|
171
|
-
id="simple-inline-chip-group-expandedchip_four_select"
|
|
172
|
-
>Chip four</span>
|
|
173
|
-
</span>
|
|
174
|
-
<span class="pf-v5-c-chip__actions">
|
|
175
|
-
<button
|
|
176
|
-
class="pf-v5-c-button pf-m-plain"
|
|
177
|
-
type="button"
|
|
178
|
-
aria-labelledby="simple-inline-chip-group-expandedremove_chip_four_select simple-inline-chip-group-expandedchip_four_select"
|
|
179
|
-
aria-label="Remove"
|
|
180
|
-
id="simple-inline-chip-group-expandedremove_chip_four_select"
|
|
181
|
-
>
|
|
182
|
-
<i class="fas fa-times" aria-hidden="true"></i>
|
|
183
|
-
</button>
|
|
184
|
-
</span>
|
|
185
|
-
</div>
|
|
186
|
-
</li>
|
|
187
|
-
<li class="pf-v5-c-chip-group__list-item">
|
|
188
|
-
<div class="pf-v5-c-chip">
|
|
189
|
-
<span class="pf-v5-c-chip__content">
|
|
190
|
-
<span
|
|
191
|
-
class="pf-v5-c-chip__text"
|
|
192
|
-
id="simple-inline-chip-group-expandedchip_five_select"
|
|
193
|
-
>Chip five</span>
|
|
194
|
-
</span>
|
|
195
|
-
<span class="pf-v5-c-chip__actions">
|
|
196
|
-
<button
|
|
197
|
-
class="pf-v5-c-button pf-m-plain"
|
|
198
|
-
type="button"
|
|
199
|
-
aria-labelledby="simple-inline-chip-group-expandedremove_chip_five_select simple-inline-chip-group-expandedchip_five_select"
|
|
200
|
-
aria-label="Remove"
|
|
201
|
-
id="simple-inline-chip-group-expandedremove_chip_five_select"
|
|
202
|
-
>
|
|
203
|
-
<i class="fas fa-times" aria-hidden="true"></i>
|
|
204
|
-
</button>
|
|
205
|
-
</span>
|
|
206
|
-
</div>
|
|
207
|
-
</li>
|
|
208
|
-
<li class="pf-v5-c-chip-group__list-item">
|
|
209
|
-
<button class="pf-v5-c-chip pf-m-overflow">
|
|
210
|
-
<span class="pf-v5-c-chip__content">
|
|
211
|
-
<span class="pf-v5-c-chip__text">Show less</span>
|
|
212
|
-
</span>
|
|
213
|
-
</button>
|
|
214
|
-
</li>
|
|
215
|
-
</ul>
|
|
216
|
-
</div>
|
|
217
|
-
</div>
|
|
218
|
-
|
|
219
|
-
```
|
|
220
|
-
|
|
221
|
-
### Chip group with categories
|
|
222
|
-
|
|
223
|
-
```html
|
|
224
|
-
<div class="pf-v5-c-chip-group pf-m-category">
|
|
225
|
-
<div class="pf-v5-c-chip-group__main">
|
|
226
|
-
<span
|
|
227
|
-
class="pf-v5-c-chip-group__label"
|
|
228
|
-
aria-hidden="true"
|
|
229
|
-
id="chip-group-with-categories-label"
|
|
230
|
-
>Category one</span>
|
|
231
|
-
<ul
|
|
232
|
-
class="pf-v5-c-chip-group__list"
|
|
233
|
-
role="list"
|
|
234
|
-
aria-labelledby="chip-group-with-categories-label"
|
|
235
|
-
>
|
|
236
|
-
<li class="pf-v5-c-chip-group__list-item">
|
|
237
|
-
<div class="pf-v5-c-chip">
|
|
238
|
-
<span class="pf-v5-c-chip__content">
|
|
239
|
-
<span
|
|
240
|
-
class="pf-v5-c-chip__text"
|
|
241
|
-
id="chip-group-with-categorieschip_one_toolbar_collapsed"
|
|
242
|
-
>Chip one</span>
|
|
243
|
-
</span>
|
|
244
|
-
<span class="pf-v5-c-chip__actions">
|
|
245
|
-
<button
|
|
246
|
-
class="pf-v5-c-button pf-m-plain"
|
|
247
|
-
type="button"
|
|
248
|
-
aria-labelledby="chip-group-with-categoriesremove_chip_one_toolbar_collapsed chip-group-with-categorieschip_one_toolbar_collapsed"
|
|
249
|
-
aria-label="Remove"
|
|
250
|
-
id="chip-group-with-categoriesremove_chip_one_toolbar_collapsed"
|
|
251
|
-
>
|
|
252
|
-
<i class="fas fa-times" aria-hidden="true"></i>
|
|
253
|
-
</button>
|
|
254
|
-
</span>
|
|
255
|
-
</div>
|
|
256
|
-
</li>
|
|
257
|
-
<li class="pf-v5-c-chip-group__list-item">
|
|
258
|
-
<div class="pf-v5-c-chip">
|
|
259
|
-
<span class="pf-v5-c-chip__content">
|
|
260
|
-
<span
|
|
261
|
-
class="pf-v5-c-chip__text"
|
|
262
|
-
id="chip-group-with-categorieschip_two_toolbar_collapsed"
|
|
263
|
-
>Chip two</span>
|
|
264
|
-
</span>
|
|
265
|
-
<span class="pf-v5-c-chip__actions">
|
|
266
|
-
<button
|
|
267
|
-
class="pf-v5-c-button pf-m-plain"
|
|
268
|
-
type="button"
|
|
269
|
-
aria-labelledby="chip-group-with-categoriesremove_chip_two_toolbar_collapsed chip-group-with-categorieschip_two_toolbar_collapsed"
|
|
270
|
-
aria-label="Remove"
|
|
271
|
-
id="chip-group-with-categoriesremove_chip_two_toolbar_collapsed"
|
|
272
|
-
>
|
|
273
|
-
<i class="fas fa-times" aria-hidden="true"></i>
|
|
274
|
-
</button>
|
|
275
|
-
</span>
|
|
276
|
-
</div>
|
|
277
|
-
</li>
|
|
278
|
-
<li class="pf-v5-c-chip-group__list-item">
|
|
279
|
-
<div class="pf-v5-c-chip">
|
|
280
|
-
<span class="pf-v5-c-chip__content">
|
|
281
|
-
<span
|
|
282
|
-
class="pf-v5-c-chip__text"
|
|
283
|
-
id="chip-group-with-categorieschip_three_toolbar_collapsed"
|
|
284
|
-
>Chip three</span>
|
|
285
|
-
</span>
|
|
286
|
-
<span class="pf-v5-c-chip__actions">
|
|
287
|
-
<button
|
|
288
|
-
class="pf-v5-c-button pf-m-plain"
|
|
289
|
-
type="button"
|
|
290
|
-
aria-labelledby="chip-group-with-categoriesremove_chip_three_toolbar_collapsed chip-group-with-categorieschip_three_toolbar_collapsed"
|
|
291
|
-
aria-label="Remove"
|
|
292
|
-
id="chip-group-with-categoriesremove_chip_three_toolbar_collapsed"
|
|
293
|
-
>
|
|
294
|
-
<i class="fas fa-times" aria-hidden="true"></i>
|
|
295
|
-
</button>
|
|
296
|
-
</span>
|
|
297
|
-
</div>
|
|
298
|
-
</li>
|
|
299
|
-
</ul>
|
|
300
|
-
</div>
|
|
301
|
-
</div>
|
|
302
|
-
|
|
303
|
-
```
|
|
304
|
-
|
|
305
|
-
### Chip group with categories overflow
|
|
306
|
-
|
|
307
|
-
```html
|
|
308
|
-
<div class="pf-v5-c-chip-group pf-m-category">
|
|
309
|
-
<div class="pf-v5-c-chip-group__main">
|
|
310
|
-
<span
|
|
311
|
-
class="pf-v5-c-chip-group__label"
|
|
312
|
-
aria-hidden="true"
|
|
313
|
-
id="chip-group-with-categories-overflow-label"
|
|
314
|
-
>Category one</span>
|
|
315
|
-
<ul
|
|
316
|
-
class="pf-v5-c-chip-group__list"
|
|
317
|
-
role="list"
|
|
318
|
-
aria-labelledby="chip-group-with-categories-overflow-label"
|
|
319
|
-
>
|
|
320
|
-
<li class="pf-v5-c-chip-group__list-item">
|
|
321
|
-
<div class="pf-v5-c-chip">
|
|
322
|
-
<span class="pf-v5-c-chip__content">
|
|
323
|
-
<span
|
|
324
|
-
class="pf-v5-c-chip__text"
|
|
325
|
-
id="chip-group-with-categories-overflowchip_one_toolbar_collapsed"
|
|
326
|
-
>Chip one</span>
|
|
327
|
-
</span>
|
|
328
|
-
<span class="pf-v5-c-chip__actions">
|
|
329
|
-
<button
|
|
330
|
-
class="pf-v5-c-button pf-m-plain"
|
|
331
|
-
type="button"
|
|
332
|
-
aria-labelledby="chip-group-with-categories-overflowremove_chip_one_toolbar_collapsed chip-group-with-categories-overflowchip_one_toolbar_collapsed"
|
|
333
|
-
aria-label="Remove"
|
|
334
|
-
id="chip-group-with-categories-overflowremove_chip_one_toolbar_collapsed"
|
|
335
|
-
>
|
|
336
|
-
<i class="fas fa-times" aria-hidden="true"></i>
|
|
337
|
-
</button>
|
|
338
|
-
</span>
|
|
339
|
-
</div>
|
|
340
|
-
</li>
|
|
341
|
-
<li class="pf-v5-c-chip-group__list-item">
|
|
342
|
-
<div class="pf-v5-c-chip">
|
|
343
|
-
<span class="pf-v5-c-chip__content">
|
|
344
|
-
<span
|
|
345
|
-
class="pf-v5-c-chip__text"
|
|
346
|
-
id="chip-group-with-categories-overflowchip_two_toolbar_collapsed"
|
|
347
|
-
>Chip two</span>
|
|
348
|
-
</span>
|
|
349
|
-
<span class="pf-v5-c-chip__actions">
|
|
350
|
-
<button
|
|
351
|
-
class="pf-v5-c-button pf-m-plain"
|
|
352
|
-
type="button"
|
|
353
|
-
aria-labelledby="chip-group-with-categories-overflowremove_chip_two_toolbar_collapsed chip-group-with-categories-overflowchip_two_toolbar_collapsed"
|
|
354
|
-
aria-label="Remove"
|
|
355
|
-
id="chip-group-with-categories-overflowremove_chip_two_toolbar_collapsed"
|
|
356
|
-
>
|
|
357
|
-
<i class="fas fa-times" aria-hidden="true"></i>
|
|
358
|
-
</button>
|
|
359
|
-
</span>
|
|
360
|
-
</div>
|
|
361
|
-
</li>
|
|
362
|
-
<li class="pf-v5-c-chip-group__list-item">
|
|
363
|
-
<div class="pf-v5-c-chip">
|
|
364
|
-
<span class="pf-v5-c-chip__content">
|
|
365
|
-
<span
|
|
366
|
-
class="pf-v5-c-chip__text"
|
|
367
|
-
id="chip-group-with-categories-overflowchip_three_toolbar_collapsed"
|
|
368
|
-
>Chip three</span>
|
|
369
|
-
</span>
|
|
370
|
-
<span class="pf-v5-c-chip__actions">
|
|
371
|
-
<button
|
|
372
|
-
class="pf-v5-c-button pf-m-plain"
|
|
373
|
-
type="button"
|
|
374
|
-
aria-labelledby="chip-group-with-categories-overflowremove_chip_three_toolbar_collapsed chip-group-with-categories-overflowchip_three_toolbar_collapsed"
|
|
375
|
-
aria-label="Remove"
|
|
376
|
-
id="chip-group-with-categories-overflowremove_chip_three_toolbar_collapsed"
|
|
377
|
-
>
|
|
378
|
-
<i class="fas fa-times" aria-hidden="true"></i>
|
|
379
|
-
</button>
|
|
380
|
-
</span>
|
|
381
|
-
</div>
|
|
382
|
-
</li>
|
|
383
|
-
<li class="pf-v5-c-chip-group__list-item">
|
|
384
|
-
<button class="pf-v5-c-chip pf-m-overflow">
|
|
385
|
-
<span class="pf-v5-c-chip__content">
|
|
386
|
-
<span class="pf-v5-c-chip__text">2 more</span>
|
|
387
|
-
</span>
|
|
388
|
-
</button>
|
|
389
|
-
</li>
|
|
390
|
-
</ul>
|
|
391
|
-
</div>
|
|
392
|
-
</div>
|
|
393
|
-
|
|
394
|
-
```
|
|
395
|
-
|
|
396
|
-
### Chip group with categories overflow expanded
|
|
397
|
-
|
|
398
|
-
```html
|
|
399
|
-
<div class="pf-v5-c-chip-group pf-m-category">
|
|
400
|
-
<div class="pf-v5-c-chip-group__main">
|
|
401
|
-
<span
|
|
402
|
-
class="pf-v5-c-chip-group__label"
|
|
403
|
-
aria-hidden="true"
|
|
404
|
-
id="chip-group-with-categories-overflow-expanded-label"
|
|
405
|
-
>Category one</span>
|
|
406
|
-
<ul
|
|
407
|
-
class="pf-v5-c-chip-group__list"
|
|
408
|
-
role="list"
|
|
409
|
-
aria-labelledby="chip-group-with-categories-overflow-expanded-label"
|
|
410
|
-
>
|
|
411
|
-
<li class="pf-v5-c-chip-group__list-item">
|
|
412
|
-
<div class="pf-v5-c-chip">
|
|
413
|
-
<span class="pf-v5-c-chip__content">
|
|
414
|
-
<span
|
|
415
|
-
class="pf-v5-c-chip__text"
|
|
416
|
-
id="chip-group-with-categories-overflow-expandedchip_one_toolbar"
|
|
417
|
-
>Chip one</span>
|
|
418
|
-
</span>
|
|
419
|
-
<span class="pf-v5-c-chip__actions">
|
|
420
|
-
<button
|
|
421
|
-
class="pf-v5-c-button pf-m-plain"
|
|
422
|
-
type="button"
|
|
423
|
-
aria-labelledby="chip-group-with-categories-overflow-expandedremove_chip_one_toolbar chip-group-with-categories-overflow-expandedchip_one_toolbar"
|
|
424
|
-
aria-label="Remove"
|
|
425
|
-
id="chip-group-with-categories-overflow-expandedremove_chip_one_toolbar"
|
|
426
|
-
>
|
|
427
|
-
<i class="fas fa-times" aria-hidden="true"></i>
|
|
428
|
-
</button>
|
|
429
|
-
</span>
|
|
430
|
-
</div>
|
|
431
|
-
</li>
|
|
432
|
-
<li class="pf-v5-c-chip-group__list-item">
|
|
433
|
-
<div class="pf-v5-c-chip">
|
|
434
|
-
<span class="pf-v5-c-chip__content">
|
|
435
|
-
<span
|
|
436
|
-
class="pf-v5-c-chip__text"
|
|
437
|
-
id="chip-group-with-categories-overflow-expandedchip_two_toolbar"
|
|
438
|
-
>Chip two</span>
|
|
439
|
-
</span>
|
|
440
|
-
<span class="pf-v5-c-chip__actions">
|
|
441
|
-
<button
|
|
442
|
-
class="pf-v5-c-button pf-m-plain"
|
|
443
|
-
type="button"
|
|
444
|
-
aria-labelledby="chip-group-with-categories-overflow-expandedremove_chip_two_toolbar chip-group-with-categories-overflow-expandedchip_two_toolbar"
|
|
445
|
-
aria-label="Remove"
|
|
446
|
-
id="chip-group-with-categories-overflow-expandedremove_chip_two_toolbar"
|
|
447
|
-
>
|
|
448
|
-
<i class="fas fa-times" aria-hidden="true"></i>
|
|
449
|
-
</button>
|
|
450
|
-
</span>
|
|
451
|
-
</div>
|
|
452
|
-
</li>
|
|
453
|
-
<li class="pf-v5-c-chip-group__list-item">
|
|
454
|
-
<div class="pf-v5-c-chip">
|
|
455
|
-
<span class="pf-v5-c-chip__content">
|
|
456
|
-
<span
|
|
457
|
-
class="pf-v5-c-chip__text"
|
|
458
|
-
id="chip-group-with-categories-overflow-expandedchip_three_toolbar"
|
|
459
|
-
>Chip three</span>
|
|
460
|
-
</span>
|
|
461
|
-
<span class="pf-v5-c-chip__actions">
|
|
462
|
-
<button
|
|
463
|
-
class="pf-v5-c-button pf-m-plain"
|
|
464
|
-
type="button"
|
|
465
|
-
aria-labelledby="chip-group-with-categories-overflow-expandedremove_chip_three_toolbar chip-group-with-categories-overflow-expandedchip_three_toolbar"
|
|
466
|
-
aria-label="Remove"
|
|
467
|
-
id="chip-group-with-categories-overflow-expandedremove_chip_three_toolbar"
|
|
468
|
-
>
|
|
469
|
-
<i class="fas fa-times" aria-hidden="true"></i>
|
|
470
|
-
</button>
|
|
471
|
-
</span>
|
|
472
|
-
</div>
|
|
473
|
-
</li>
|
|
474
|
-
<li class="pf-v5-c-chip-group__list-item">
|
|
475
|
-
<div class="pf-v5-c-chip">
|
|
476
|
-
<span class="pf-v5-c-chip__content">
|
|
477
|
-
<span
|
|
478
|
-
class="pf-v5-c-chip__text"
|
|
479
|
-
id="chip-group-with-categories-overflow-expandedchip_four_toolbar"
|
|
480
|
-
>Chip four</span>
|
|
481
|
-
</span>
|
|
482
|
-
<span class="pf-v5-c-chip__actions">
|
|
483
|
-
<button
|
|
484
|
-
class="pf-v5-c-button pf-m-plain"
|
|
485
|
-
type="button"
|
|
486
|
-
aria-labelledby="chip-group-with-categories-overflow-expandedremove_chip_four_toolbar chip-group-with-categories-overflow-expandedchip_four_toolbar"
|
|
487
|
-
aria-label="Remove"
|
|
488
|
-
id="chip-group-with-categories-overflow-expandedremove_chip_four_toolbar"
|
|
489
|
-
>
|
|
490
|
-
<i class="fas fa-times" aria-hidden="true"></i>
|
|
491
|
-
</button>
|
|
492
|
-
</span>
|
|
493
|
-
</div>
|
|
494
|
-
</li>
|
|
495
|
-
<li class="pf-v5-c-chip-group__list-item">
|
|
496
|
-
<div class="pf-v5-c-chip">
|
|
497
|
-
<span class="pf-v5-c-chip__content">
|
|
498
|
-
<span
|
|
499
|
-
class="pf-v5-c-chip__text"
|
|
500
|
-
id="chip-group-with-categories-overflow-expandedchip_five_select"
|
|
501
|
-
>Chip five</span>
|
|
502
|
-
</span>
|
|
503
|
-
<span class="pf-v5-c-chip__actions">
|
|
504
|
-
<button
|
|
505
|
-
class="pf-v5-c-button pf-m-plain"
|
|
506
|
-
type="button"
|
|
507
|
-
aria-labelledby="chip-group-with-categories-overflow-expandedremove_chip_five_select chip-group-with-categories-overflow-expandedchip_five_select"
|
|
508
|
-
aria-label="Remove"
|
|
509
|
-
id="chip-group-with-categories-overflow-expandedremove_chip_five_select"
|
|
510
|
-
>
|
|
511
|
-
<i class="fas fa-times" aria-hidden="true"></i>
|
|
512
|
-
</button>
|
|
513
|
-
</span>
|
|
514
|
-
</div>
|
|
515
|
-
</li>
|
|
516
|
-
<li class="pf-v5-c-chip-group__list-item">
|
|
517
|
-
<button class="pf-v5-c-chip pf-m-overflow">
|
|
518
|
-
<span class="pf-v5-c-chip__content">
|
|
519
|
-
<span class="pf-v5-c-chip__text">Show less</span>
|
|
520
|
-
</span>
|
|
521
|
-
</button>
|
|
522
|
-
</li>
|
|
523
|
-
</ul>
|
|
524
|
-
</div>
|
|
525
|
-
</div>
|
|
526
|
-
|
|
527
|
-
```
|
|
528
|
-
|
|
529
|
-
### Chip group with categories removable
|
|
530
|
-
|
|
531
|
-
```html
|
|
532
|
-
<div class="pf-v5-c-chip-group pf-m-category">
|
|
533
|
-
<div class="pf-v5-c-chip-group__main">
|
|
534
|
-
<span
|
|
535
|
-
class="pf-v5-c-chip-group__label"
|
|
536
|
-
aria-hidden="true"
|
|
537
|
-
id="chip-group-with-categories-removable-label"
|
|
538
|
-
>Category one</span>
|
|
539
|
-
<ul
|
|
540
|
-
class="pf-v5-c-chip-group__list"
|
|
541
|
-
role="list"
|
|
542
|
-
aria-labelledby="chip-group-with-categories-removable-label"
|
|
543
|
-
>
|
|
544
|
-
<li class="pf-v5-c-chip-group__list-item">
|
|
545
|
-
<div class="pf-v5-c-chip">
|
|
546
|
-
<span class="pf-v5-c-chip__content">
|
|
547
|
-
<span
|
|
548
|
-
class="pf-v5-c-chip__text"
|
|
549
|
-
id="chip-group-with-categories-removablechip_one_toolbar"
|
|
550
|
-
>Chip one</span>
|
|
551
|
-
</span>
|
|
552
|
-
<span class="pf-v5-c-chip__actions">
|
|
553
|
-
<button
|
|
554
|
-
class="pf-v5-c-button pf-m-plain"
|
|
555
|
-
type="button"
|
|
556
|
-
aria-labelledby="chip-group-with-categories-removableremove_chip_one_toolbar chip-group-with-categories-removablechip_one_toolbar"
|
|
557
|
-
aria-label="Remove"
|
|
558
|
-
id="chip-group-with-categories-removableremove_chip_one_toolbar"
|
|
559
|
-
>
|
|
560
|
-
<i class="fas fa-times" aria-hidden="true"></i>
|
|
561
|
-
</button>
|
|
562
|
-
</span>
|
|
563
|
-
</div>
|
|
564
|
-
</li>
|
|
565
|
-
<li class="pf-v5-c-chip-group__list-item">
|
|
566
|
-
<div class="pf-v5-c-chip">
|
|
567
|
-
<span class="pf-v5-c-chip__content">
|
|
568
|
-
<span
|
|
569
|
-
class="pf-v5-c-chip__text"
|
|
570
|
-
id="chip-group-with-categories-removablechip_two_toolbar"
|
|
571
|
-
>Chip two</span>
|
|
572
|
-
</span>
|
|
573
|
-
<span class="pf-v5-c-chip__actions">
|
|
574
|
-
<button
|
|
575
|
-
class="pf-v5-c-button pf-m-plain"
|
|
576
|
-
type="button"
|
|
577
|
-
aria-labelledby="chip-group-with-categories-removableremove_chip_two_toolbar chip-group-with-categories-removablechip_two_toolbar"
|
|
578
|
-
aria-label="Remove"
|
|
579
|
-
id="chip-group-with-categories-removableremove_chip_two_toolbar"
|
|
580
|
-
>
|
|
581
|
-
<i class="fas fa-times" aria-hidden="true"></i>
|
|
582
|
-
</button>
|
|
583
|
-
</span>
|
|
584
|
-
</div>
|
|
585
|
-
</li>
|
|
586
|
-
<li class="pf-v5-c-chip-group__list-item">
|
|
587
|
-
<div class="pf-v5-c-chip">
|
|
588
|
-
<span class="pf-v5-c-chip__content">
|
|
589
|
-
<span
|
|
590
|
-
class="pf-v5-c-chip__text"
|
|
591
|
-
id="chip-group-with-categories-removablechip_three_toolbar"
|
|
592
|
-
>Chip three</span>
|
|
593
|
-
</span>
|
|
594
|
-
<span class="pf-v5-c-chip__actions">
|
|
595
|
-
<button
|
|
596
|
-
class="pf-v5-c-button pf-m-plain"
|
|
597
|
-
type="button"
|
|
598
|
-
aria-labelledby="chip-group-with-categories-removableremove_chip_three_toolbar chip-group-with-categories-removablechip_three_toolbar"
|
|
599
|
-
aria-label="Remove"
|
|
600
|
-
id="chip-group-with-categories-removableremove_chip_three_toolbar"
|
|
601
|
-
>
|
|
602
|
-
<i class="fas fa-times" aria-hidden="true"></i>
|
|
603
|
-
</button>
|
|
604
|
-
</span>
|
|
605
|
-
</div>
|
|
606
|
-
</li>
|
|
607
|
-
<li class="pf-v5-c-chip-group__list-item">
|
|
608
|
-
<div class="pf-v5-c-chip">
|
|
609
|
-
<span class="pf-v5-c-chip__content">
|
|
610
|
-
<span
|
|
611
|
-
class="pf-v5-c-chip__text"
|
|
612
|
-
id="chip-group-with-categories-removablechip_four_toolbar"
|
|
613
|
-
>Chip four</span>
|
|
614
|
-
</span>
|
|
615
|
-
<span class="pf-v5-c-chip__actions">
|
|
616
|
-
<button
|
|
617
|
-
class="pf-v5-c-button pf-m-plain"
|
|
618
|
-
type="button"
|
|
619
|
-
aria-labelledby="chip-group-with-categories-removableremove_chip_four_toolbar chip-group-with-categories-removablechip_four_toolbar"
|
|
620
|
-
aria-label="Remove"
|
|
621
|
-
id="chip-group-with-categories-removableremove_chip_four_toolbar"
|
|
622
|
-
>
|
|
623
|
-
<i class="fas fa-times" aria-hidden="true"></i>
|
|
624
|
-
</button>
|
|
625
|
-
</span>
|
|
626
|
-
</div>
|
|
627
|
-
</li>
|
|
628
|
-
<li class="pf-v5-c-chip-group__list-item">
|
|
629
|
-
<div class="pf-v5-c-chip">
|
|
630
|
-
<span class="pf-v5-c-chip__content">
|
|
631
|
-
<span
|
|
632
|
-
class="pf-v5-c-chip__text"
|
|
633
|
-
id="chip-group-with-categories-removablechip_five_toolbar"
|
|
634
|
-
>Chip five</span>
|
|
635
|
-
</span>
|
|
636
|
-
<span class="pf-v5-c-chip__actions">
|
|
637
|
-
<button
|
|
638
|
-
class="pf-v5-c-button pf-m-plain"
|
|
639
|
-
type="button"
|
|
640
|
-
aria-labelledby="chip-group-with-categories-removableremove_chip_five_toolbar chip-group-with-categories-removablechip_five_toolbar"
|
|
641
|
-
aria-label="Remove"
|
|
642
|
-
id="chip-group-with-categories-removableremove_chip_five_toolbar"
|
|
643
|
-
>
|
|
644
|
-
<i class="fas fa-times" aria-hidden="true"></i>
|
|
645
|
-
</button>
|
|
646
|
-
</span>
|
|
647
|
-
</div>
|
|
648
|
-
</li>
|
|
649
|
-
<li class="pf-v5-c-chip-group__list-item">
|
|
650
|
-
<div class="pf-v5-c-chip">
|
|
651
|
-
<span class="pf-v5-c-chip__content">
|
|
652
|
-
<span
|
|
653
|
-
class="pf-v5-c-chip__text"
|
|
654
|
-
id="chip-group-with-categories-removablechip_six_toolbar"
|
|
655
|
-
>Chip six</span>
|
|
656
|
-
</span>
|
|
657
|
-
<span class="pf-v5-c-chip__actions">
|
|
658
|
-
<button
|
|
659
|
-
class="pf-v5-c-button pf-m-plain"
|
|
660
|
-
type="button"
|
|
661
|
-
aria-labelledby="chip-group-with-categories-removableremove_chip_six_toolbar chip-group-with-categories-removablechip_six_toolbar"
|
|
662
|
-
aria-label="Remove"
|
|
663
|
-
id="chip-group-with-categories-removableremove_chip_six_toolbar"
|
|
664
|
-
>
|
|
665
|
-
<i class="fas fa-times" aria-hidden="true"></i>
|
|
666
|
-
</button>
|
|
667
|
-
</span>
|
|
668
|
-
</div>
|
|
669
|
-
</li>
|
|
670
|
-
</ul>
|
|
671
|
-
</div>
|
|
672
|
-
<div class="pf-v5-c-chip-group__close">
|
|
673
|
-
<button
|
|
674
|
-
class="pf-v5-c-button pf-m-plain"
|
|
675
|
-
type="button"
|
|
676
|
-
aria-labelledby="chip-group-with-categories-removable-button chip-group-with-categories-removable-label"
|
|
677
|
-
aria-label="Close chip group"
|
|
678
|
-
id="chip-group-with-categories-removable-button"
|
|
679
|
-
>
|
|
680
|
-
<i class="fas fa-times-circle" aria-hidden="true"></i>
|
|
681
|
-
</button>
|
|
682
|
-
</div>
|
|
683
|
-
</div>
|
|
684
|
-
|
|
685
|
-
```
|
|
686
|
-
|
|
687
|
-
### Overview
|
|
688
|
-
|
|
689
|
-
A chip group is constrained to the width of its container and will wrap when it exceeds that width. An overflow value can be set and when the number of chips exceeds that value, additional chips will be hidden by default. The default overflow value will be set to 3 chips but this can be adjusted per application needs. The toggle button after the last chip allows the group to be expanded (or collapsed).
|
|
690
|
-
|
|
691
|
-
If you want to create sub-groupings of chips to represent multiple values applied against the same category, chips can be grouped by category. This can be useful in filtering use cases, for example, where you want all items that match more than one value of the same attribute, e.g., ‘status = down OR needs maintenance’.
|
|
692
|
-
|
|
693
|
-
The chip group requires the [chip component](/components/chip).
|
|
694
|
-
|
|
695
|
-
### Accessibility
|
|
696
|
-
|
|
697
|
-
**All single chip accessibility and usage requirements apply.**
|
|
698
|
-
|
|
699
|
-
| Attributes for closable chip group button | Applied to | Outcome |
|
|
700
|
-
| -- | -- | -- |
|
|
701
|
-
| `role="list"` | `.pf-v5-c-chip-group__list` | Indicates that the chip group list is a list element. This role is redundant since `.pf-v5-c-chip-group__list` is a `<ul>` but is required for screen readers to announce the list propertly. **Required** |
|
|
702
|
-
| `aria-label="[button label text]"` | `.pf-v5-c-chip-group__close > button` | Provides an accessible name for a chip group close when an icon is used instead of text. Required when an icon is used with no supporting text. **Required** |
|
|
703
|
-
| `aria-labelledby="[id value of .pf-v5-c-chip-group__close > button] [id value of .pf-v5-c-chip-group__label]"` | `.pf-v5-c-chip-group__close > button` | Provides an accessible name for the button. **Required** |
|
|
704
|
-
|
|
705
|
-
### Usage
|
|
706
|
-
|
|
707
|
-
| Class | Applied to | Outcome |
|
|
708
|
-
| -- | -- | -- |
|
|
709
|
-
| `.pf-v5-c-chip-group` | `<div>` | Initiates the chip group component. **Required.** |
|
|
710
|
-
| `.pf-v5-c-chip-group__list` | `<ul>` | Initiates the container for a list of chips. **Required.** |
|
|
711
|
-
| `.pf-v5-c-chip-group__list-item` | `<li>` | Initiates the list item inside of the chip group. **Required.** |
|
|
712
|
-
| `.pf-v5-c-chip-group__label` | `<span>` | Initiates the label to be used in the chip group. |
|
|
713
|
-
| `.pf-v5-c-chip-group__close` | `<div>` | Initiates the container used for the button to remove the chip group. |
|
|
714
|
-
| `.pf-v5-c-chip-group__main` | `<div>` | Initiates the container for the label and list elements so that they wrap together. **Required** |
|
|
715
|
-
| `.pf-v5-c-button` | `.pf-v5-c-chip-group__close <button>` | Initiates the button used to remove the chip group. |
|
|
716
|
-
| `.pf-m-category` | `.pf-v5-c-chip-group` | Modifies the chip group to support category styling. |
|