@patternfly/patternfly 6.1.0-prerelease.1 → 6.1.0-prerelease.10
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/README.md +5 -5
- package/components/Button/button.css +18 -2
- package/components/Button/button.scss +19 -3
- package/components/CodeEditor/code-editor.css +15 -0
- package/components/CodeEditor/code-editor.scss +16 -1
- package/components/Content/content.css +9 -0
- package/components/Content/content.scss +7 -0
- package/components/DataList/data-list.css +6 -0
- package/components/DataList/data-list.scss +7 -0
- package/components/Label/label-group.css +12 -0
- package/components/Label/label-group.scss +14 -0
- package/components/Label/label.css +5 -0
- package/components/Label/label.scss +5 -0
- package/components/Menu/menu.css +7 -3
- package/components/Menu/menu.scss +5 -3
- package/components/MenuToggle/menu-toggle.css +27 -11
- package/components/MenuToggle/menu-toggle.scss +24 -17
- package/components/Page/page.css +4 -1
- package/components/Page/page.scss +3 -2
- package/components/Table/table-grid.css +12 -12
- package/components/Table/table-grid.scss +4 -4
- package/components/Table/table-tree-view.css +4 -4
- package/components/Table/table-tree-view.scss +4 -4
- package/components/Table/table.css +7 -4
- package/components/Table/table.scss +9 -5
- package/components/Title/title.css +4 -0
- package/components/Title/title.scss +7 -0
- package/components/Wizard/wizard.css +1 -1
- package/components/Wizard/wizard.scss +1 -1
- package/components/_index.css +131 -38
- package/docs/components/Button/examples/Button.md +1 -1
- package/docs/components/CodeEditor/examples/CodeEditor.css +3 -0
- package/docs/components/CodeEditor/examples/CodeEditor.md +158 -7
- package/docs/components/Content/examples/Content.md +8 -7
- package/docs/components/DataList/examples/DataList.md +15 -13
- package/docs/components/InlineEdit/examples/InlineEdit.md +3 -18
- package/docs/components/Label/examples/Label.css +12 -0
- package/docs/components/Label/examples/Label.md +162 -0
- package/docs/components/Menu/examples/Menu.md +24 -32
- package/docs/components/MenuToggle/examples/MenuToggle.md +1309 -533
- package/docs/components/Page/examples/Page.css +1 -1
- package/docs/components/Page/examples/Page.md +10 -7
- package/docs/components/Table/examples/Table.md +469 -2769
- package/docs/components/Title/examples/Title.md +10 -0
- package/docs/demos/AboutModal/examples/AboutModal.md +2 -4
- package/docs/demos/Alert/examples/Alert.md +6 -12
- package/docs/demos/BackToTop/examples/BackToTop.md +2 -4
- package/docs/demos/Banner/examples/Banner.md +4 -8
- package/docs/demos/Card/examples/Card.css +4 -0
- package/docs/demos/Card/examples/Card.md +13 -21
- package/docs/demos/CardView/examples/CardView.md +2 -4
- package/docs/demos/Dashboard/examples/Dashboard.md +2 -4
- package/docs/demos/DataList/examples/DataList.md +13 -46
- package/docs/demos/DescriptionList/examples/DescriptionList.md +11 -42
- package/docs/demos/Drawer/examples/Drawer.md +6 -12
- package/docs/demos/JumpLinks/examples/JumpLinks.md +8 -16
- package/docs/demos/Masthead/examples/Masthead.md +18 -36
- package/docs/demos/Modal/examples/Modal.md +12 -24
- package/docs/demos/Nav/examples/Nav.md +12 -24
- package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +10 -20
- package/docs/demos/Page/examples/Page.md +24 -48
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +14 -28
- package/docs/demos/Skeleton/examples/Skeleton.md +2 -4
- package/docs/demos/Table/examples/Table.md +191 -984
- package/docs/demos/Tabs/examples/Tabs.md +18 -60
- package/docs/demos/Toolbar/examples/Toolbar.md +16 -80
- package/docs/demos/Wizard/examples/Wizard.md +18 -36
- package/docs/layouts/Level/examples/Level.css +1 -2
- package/docs/layouts/Level/examples/Level.md +15 -3
- package/docs/layouts/Split/examples/Split.css +1 -2
- package/docs/layouts/Split/examples/Split.md +4 -4
- package/docs/layouts/Stack/examples/Stack.css +1 -2
- package/docs/layouts/Stack/examples/Stack.md +4 -4
- package/layouts/Split/split.css +1 -2
- package/layouts/Split/split.scss +4 -3
- package/layouts/Stack/stack.css +1 -2
- package/layouts/Stack/stack.scss +4 -3
- package/layouts/_index.css +2 -4
- package/package.json +3 -3
- package/patternfly-no-globals.css +133 -42
- package/patternfly.css +133 -42
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/functions.scss +6 -0
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
id: Code editor
|
|
3
3
|
section: components
|
|
4
4
|
cssPrefix: pf-v6-c-code-editor
|
|
5
|
-
|
|
5
|
+
---import './CodeEditor.css';
|
|
6
|
+
|
|
7
|
+
## Examples
|
|
6
8
|
|
|
7
9
|
### Default
|
|
8
10
|
|
|
@@ -49,11 +51,11 @@ cssPrefix: pf-v6-c-code-editor
|
|
|
49
51
|
</div>
|
|
50
52
|
</div>
|
|
51
53
|
<div class="pf-v6-c-code-editor__main">
|
|
52
|
-
<
|
|
54
|
+
<div dir="ltr" class="pf-v6-c-code-editor__code">
|
|
53
55
|
<pre class="pf-v6-c-code-editor__code-pre">
|
|
54
56
|
code goes here
|
|
55
57
|
</pre>
|
|
56
|
-
</
|
|
58
|
+
</div>
|
|
57
59
|
</div>
|
|
58
60
|
</div>
|
|
59
61
|
|
|
@@ -104,11 +106,11 @@ cssPrefix: pf-v6-c-code-editor
|
|
|
104
106
|
</div>
|
|
105
107
|
</div>
|
|
106
108
|
<div class="pf-v6-c-code-editor__main">
|
|
107
|
-
<
|
|
109
|
+
<div dir="ltr" class="pf-v6-c-code-editor__code">
|
|
108
110
|
<pre class="pf-v6-c-code-editor__code-pre">
|
|
109
111
|
code goes here
|
|
110
112
|
</pre>
|
|
111
|
-
</
|
|
113
|
+
</div>
|
|
112
114
|
</div>
|
|
113
115
|
</div>
|
|
114
116
|
|
|
@@ -267,11 +269,158 @@ cssPrefix: pf-v6-c-code-editor
|
|
|
267
269
|
</div>
|
|
268
270
|
</div>
|
|
269
271
|
<div class="pf-v6-c-code-editor__main">
|
|
270
|
-
<
|
|
272
|
+
<div dir="ltr" class="pf-v6-c-code-editor__code">
|
|
271
273
|
<pre class="pf-v6-c-code-editor__code-pre">
|
|
272
274
|
code goes here
|
|
273
275
|
</pre>
|
|
274
|
-
</
|
|
276
|
+
</div>
|
|
277
|
+
</div>
|
|
278
|
+
</div>
|
|
279
|
+
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
### With optional code editor container
|
|
283
|
+
|
|
284
|
+
This is an extra container used in React to prevent event propagation if upload is enabled or there is a provided empty state.
|
|
285
|
+
|
|
286
|
+
```html
|
|
287
|
+
<div class="pf-v6-c-code-editor">
|
|
288
|
+
<div role="presentation" tabindex="0" class="pf-v6-c-code-editor__container">
|
|
289
|
+
<div class="pf-v6-c-code-editor__header">
|
|
290
|
+
<div class="pf-v6-c-code-editor__header-content">
|
|
291
|
+
<div class="pf-v6-c-code-editor__controls">
|
|
292
|
+
<button
|
|
293
|
+
class="pf-v6-c-button pf-m-plain"
|
|
294
|
+
type="button"
|
|
295
|
+
aria-label="Copy to clipboard"
|
|
296
|
+
>
|
|
297
|
+
<span class="pf-v6-c-button__icon">
|
|
298
|
+
<i class="fas fa-copy" aria-hidden="true"></i>
|
|
299
|
+
</span>
|
|
300
|
+
</button>
|
|
301
|
+
<button
|
|
302
|
+
class="pf-v6-c-button pf-m-plain"
|
|
303
|
+
type="button"
|
|
304
|
+
aria-label="Download code"
|
|
305
|
+
>
|
|
306
|
+
<span class="pf-v6-c-button__icon">
|
|
307
|
+
<i class="fas fa-download" aria-hidden="true"></i>
|
|
308
|
+
</span>
|
|
309
|
+
</button>
|
|
310
|
+
<button
|
|
311
|
+
class="pf-v6-c-button pf-m-plain"
|
|
312
|
+
type="button"
|
|
313
|
+
aria-label="Upload code"
|
|
314
|
+
>
|
|
315
|
+
<span class="pf-v6-c-button__icon">
|
|
316
|
+
<i class="fas fa-upload" aria-hidden="true"></i>
|
|
317
|
+
</span>
|
|
318
|
+
</button>
|
|
319
|
+
</div>
|
|
320
|
+
</div>
|
|
321
|
+
<div class="pf-v6-c-code-editor__tab">
|
|
322
|
+
<span class="pf-v6-c-code-editor__tab-icon">
|
|
323
|
+
<i class="fas fa-code"></i>
|
|
324
|
+
</span>
|
|
325
|
+
<span class="pf-v6-c-code-editor__tab-text">HTML</span>
|
|
326
|
+
</div>
|
|
327
|
+
</div>
|
|
328
|
+
<div class="pf-v6-c-code-editor__main">
|
|
329
|
+
<div class="pf-v6-c-code-editor__upload">
|
|
330
|
+
<div class="pf-v6-c-empty-state">
|
|
331
|
+
<div class="pf-v6-c-empty-state__content">
|
|
332
|
+
<div class="pf-v6-c-empty-state__header">
|
|
333
|
+
<div class="pf-v6-c-empty-state__icon">
|
|
334
|
+
<i class="fas fa- fa-code" aria-hidden="true"></i>
|
|
335
|
+
</div>
|
|
336
|
+
<div class="pf-v6-c-empty-state__title">
|
|
337
|
+
<h1 class="pf-v6-c-empty-state__title-text">Start editing</h1>
|
|
338
|
+
</div>
|
|
339
|
+
</div>
|
|
340
|
+
|
|
341
|
+
<div
|
|
342
|
+
class="pf-v6-c-empty-state__body"
|
|
343
|
+
>Drag a file here or browse to upload.</div>
|
|
344
|
+
|
|
345
|
+
<div class="pf-v6-c-empty-state__footer">
|
|
346
|
+
<div class="pf-v6-c-empty-state__actions">
|
|
347
|
+
<button class="pf-v6-c-button pf-m-primary" type="button">
|
|
348
|
+
<span class="pf-v6-c-button__text">Browse</span>
|
|
349
|
+
</button>
|
|
350
|
+
</div>
|
|
351
|
+
<div class="pf-v6-c-empty-state__actions">
|
|
352
|
+
<button class="pf-v6-c-button pf-m-link" type="button">
|
|
353
|
+
<span class="pf-v6-c-button__text">Start from scratch</span>
|
|
354
|
+
</button>
|
|
355
|
+
</div>
|
|
356
|
+
</div>
|
|
357
|
+
</div>
|
|
358
|
+
</div>
|
|
359
|
+
</div>
|
|
360
|
+
</div>
|
|
361
|
+
</div>
|
|
362
|
+
</div>
|
|
363
|
+
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
### With full height modifier
|
|
367
|
+
|
|
368
|
+
```html
|
|
369
|
+
<div class="pf-v6-c-code-editor pf-m-full-height">
|
|
370
|
+
<div class="pf-v6-c-code-editor__header">
|
|
371
|
+
<div class="pf-v6-c-code-editor__header-content">
|
|
372
|
+
<div class="pf-v6-c-code-editor__controls">
|
|
373
|
+
<button
|
|
374
|
+
class="pf-v6-c-button pf-m-plain"
|
|
375
|
+
type="button"
|
|
376
|
+
aria-label="Copy to clipboard"
|
|
377
|
+
>
|
|
378
|
+
<span class="pf-v6-c-button__icon">
|
|
379
|
+
<i class="fas fa-copy" aria-hidden="true"></i>
|
|
380
|
+
</span>
|
|
381
|
+
</button>
|
|
382
|
+
<button
|
|
383
|
+
class="pf-v6-c-button pf-m-plain"
|
|
384
|
+
type="button"
|
|
385
|
+
aria-label="Download code"
|
|
386
|
+
>
|
|
387
|
+
<span class="pf-v6-c-button__icon">
|
|
388
|
+
<i class="fas fa-download" aria-hidden="true"></i>
|
|
389
|
+
</span>
|
|
390
|
+
</button>
|
|
391
|
+
<button
|
|
392
|
+
class="pf-v6-c-button pf-m-plain"
|
|
393
|
+
type="button"
|
|
394
|
+
aria-label="Upload code"
|
|
395
|
+
>
|
|
396
|
+
<span class="pf-v6-c-button__icon">
|
|
397
|
+
<i class="fas fa-upload" aria-hidden="true"></i>
|
|
398
|
+
</span>
|
|
399
|
+
</button>
|
|
400
|
+
</div>
|
|
401
|
+
<div class="pf-v6-c-code-editor__header-main">Header main content</div>
|
|
402
|
+
<div class="pf-v6-c-code-editor__keyboard-shortcuts">
|
|
403
|
+
<button class="pf-v6-c-button pf-m-link" type="button">
|
|
404
|
+
<span class="pf-v6-c-button__icon pf-m-start">
|
|
405
|
+
<i class="fas fa-question-circle" aria-hidden="true"></i>
|
|
406
|
+
</span>
|
|
407
|
+
<span class="pf-v6-c-button__text">View shortcuts</span>
|
|
408
|
+
</button>
|
|
409
|
+
</div>
|
|
410
|
+
</div>
|
|
411
|
+
<div class="pf-v6-c-code-editor__tab">
|
|
412
|
+
<span class="pf-v6-c-code-editor__tab-icon">
|
|
413
|
+
<i class="fas fa-code"></i>
|
|
414
|
+
</span>
|
|
415
|
+
<span class="pf-v6-c-code-editor__tab-text">HTML</span>
|
|
416
|
+
</div>
|
|
417
|
+
</div>
|
|
418
|
+
<div class="pf-v6-c-code-editor__main">
|
|
419
|
+
<div dir="ltr" class="pf-v6-c-code-editor__code">
|
|
420
|
+
<pre class="pf-v6-c-code-editor__code-pre">
|
|
421
|
+
code goes here
|
|
422
|
+
</pre>
|
|
423
|
+
</div>
|
|
275
424
|
</div>
|
|
276
425
|
</div>
|
|
277
426
|
|
|
@@ -295,3 +444,5 @@ cssPrefix: pf-v6-c-code-editor
|
|
|
295
444
|
| `.pf-v6-c-code-editor__tab-text` | `<span>` | Initiates the code editor tab text. |
|
|
296
445
|
| `.pf-v6-c-code-editor__tab-icon` | `<span>` | Initiates the code editor tab icon. |
|
|
297
446
|
| `.pf-v6-c-code-editor__upload` | `<div>` | Initiates the code editor upload border. |
|
|
447
|
+
| `.pf-v6-c-code-editor__container` | `<div>` | Initiates the container used inside `.pf-v6-c-code-editor` in PatternFly React. This is used in PatternFly React to prevent event propagation if upload is enabled or there is a provided empty state. |
|
|
448
|
+
| `.pf-m-full-height` | `.pf-v6-c-code-editor` | Modifies for full-height style. |
|
|
@@ -7,7 +7,7 @@ cssPrefix: pf-v6-c-content
|
|
|
7
7
|
### Basic
|
|
8
8
|
|
|
9
9
|
```html
|
|
10
|
-
<h1 class="pf-v6-c-content--h1">Hello world</h1>
|
|
10
|
+
<h1 class="pf-v6-c-content--h1 pf-m-page-title">Hello world</h1>
|
|
11
11
|
<p
|
|
12
12
|
class="pf-v6-c-content--p"
|
|
13
13
|
>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque. Sub works as well!</p>
|
|
@@ -179,7 +179,7 @@ cssPrefix: pf-v6-c-content
|
|
|
179
179
|
|
|
180
180
|
```html
|
|
181
181
|
<div class="pf-v6-c-content">
|
|
182
|
-
<h1>Hello world</h1>
|
|
182
|
+
<h1 class="pf-m-page-title">Hello world</h1>
|
|
183
183
|
<p
|
|
184
184
|
class
|
|
185
185
|
>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque. Sub works as well!</p>
|
|
@@ -329,7 +329,7 @@ cssPrefix: pf-v6-c-content
|
|
|
329
329
|
### Long-form/editorial content
|
|
330
330
|
|
|
331
331
|
```html
|
|
332
|
-
<h1 class="pf-v6-c-content--h1 pf-m-editorial">Hello world</h1>
|
|
332
|
+
<h1 class="pf-v6-c-content--h1 pf-m-page-title pf-m-editorial">Hello world</h1>
|
|
333
333
|
<p
|
|
334
334
|
class="pf-v6-c-content--p pf-m-editorial"
|
|
335
335
|
>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque. Sub works as well!</p>
|
|
@@ -425,7 +425,7 @@ cssPrefix: pf-v6-c-content
|
|
|
425
425
|
</p>
|
|
426
426
|
<hr class="pf-v6-c-content--hr pf-m-editorial" />
|
|
427
427
|
<h3 class="pf-v6-c-content--h3 pf-m-editorial">Plain list example</h3>
|
|
428
|
-
<ol class="pf-v6-c-content--ol pf-m-
|
|
428
|
+
<ol class="pf-v6-c-content--ol pf-m-plain pf-m-editorial">
|
|
429
429
|
<li
|
|
430
430
|
class="pf-v6-c-content--li pf-m-editorial"
|
|
431
431
|
>Donec blandit a lorem id convallis.</li>
|
|
@@ -446,7 +446,7 @@ cssPrefix: pf-v6-c-content
|
|
|
446
446
|
>Cras gravida arcu at diam gravida gravida.</li>
|
|
447
447
|
<li class="pf-v6-c-content--li pf-m-editorial">
|
|
448
448
|
Integer in volutpat libero.
|
|
449
|
-
<ol class="pf-v6-c-content--ol pf-m-
|
|
449
|
+
<ol class="pf-v6-c-content--ol pf-m-plain pf-m-editorial">
|
|
450
450
|
<li class="pf-v6-c-content--li pf-m-editorial">Nested plain list</li>
|
|
451
451
|
<li
|
|
452
452
|
class="pf-v6-c-content--li pf-m-editorial"
|
|
@@ -469,7 +469,7 @@ cssPrefix: pf-v6-c-content
|
|
|
469
469
|
<hr class="pf-v6-c-content--hr pf-m-editorial" />
|
|
470
470
|
<h3 class="pf-v6-c-content--h3 pf-m-editorial">Visited link example</h3>
|
|
471
471
|
<p class="pf-v6-c-content--p pf-m-editorial">
|
|
472
|
-
<a class="pf-v6-c-content--a pf-m-
|
|
472
|
+
<a class="pf-v6-c-content--a pf-m-plain pf-m-editorial" href>Visited link</a>
|
|
473
473
|
</p>
|
|
474
474
|
<hr class="pf-v6-c-content--hr pf-m-editorial" />
|
|
475
475
|
<p class="pf-v6-c-content--p pf-m-editorial">
|
|
@@ -533,7 +533,7 @@ cssPrefix: pf-v6-c-content
|
|
|
533
533
|
|
|
534
534
|
```html
|
|
535
535
|
<div class="pf-v6-c-content pf-m-editorial">
|
|
536
|
-
<h1>Hello world</h1>
|
|
536
|
+
<h1 class="pf-m-page-title">Hello world</h1>
|
|
537
537
|
<p
|
|
538
538
|
class
|
|
539
539
|
>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque. Sub works as well!</p>
|
|
@@ -704,3 +704,4 @@ This component is an exception to the variable system since we style type select
|
|
|
704
704
|
| `.pf-m-visited` | `.pf-v6-c-content`, `<a>` | Modifies all links in a content block to include visited styles. Can also be applied to a single link in a content block. |
|
|
705
705
|
| `.pf-m-plain` | `<ul>`, `<ol>` | Removes the list marker and indentation. |
|
|
706
706
|
| `.pf-m-editorial` | `.pf-v6-c-content*` | Applies long-form, editorial content styles to a block of content or individual content elements. |
|
|
707
|
+
| `.pf-m-page-title` | `.pf-v6-c-content--[h1, h2, h3, h4, h5, h6]`, `.pf-v6-c-content [h1, h2, h3, h4, h5, h6]` | Applies page title styles. **Note:** `.pf-m-page-title` should only apply to the heading that serves as the title for the current page. |
|
|
@@ -573,7 +573,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
573
573
|
</div>
|
|
574
574
|
<div class="pf-v6-c-data-list__item-action">
|
|
575
575
|
<button
|
|
576
|
-
class="pf-v6-c-menu-toggle pf-m-plain"
|
|
576
|
+
class="pf-v6-c-menu-toggle pf-m-plain pf-m-small"
|
|
577
577
|
type="button"
|
|
578
578
|
aria-expanded="false"
|
|
579
579
|
aria-label="Menu toggle"
|
|
@@ -637,7 +637,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
637
637
|
</div>
|
|
638
638
|
<div class="pf-v6-c-data-list__item-action">
|
|
639
639
|
<button
|
|
640
|
-
class="pf-v6-c-menu-toggle pf-m-plain"
|
|
640
|
+
class="pf-v6-c-menu-toggle pf-m-plain pf-m-small"
|
|
641
641
|
type="button"
|
|
642
642
|
aria-expanded="false"
|
|
643
643
|
aria-label="Menu toggle"
|
|
@@ -702,7 +702,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
702
702
|
</div>
|
|
703
703
|
<div class="pf-v6-c-data-list__item-action">
|
|
704
704
|
<button
|
|
705
|
-
class="pf-v6-c-menu-toggle pf-m-plain"
|
|
705
|
+
class="pf-v6-c-menu-toggle pf-m-plain pf-m-small"
|
|
706
706
|
type="button"
|
|
707
707
|
aria-expanded="false"
|
|
708
708
|
aria-label="Menu toggle"
|
|
@@ -1115,7 +1115,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1115
1115
|
</div>
|
|
1116
1116
|
<div class="pf-v6-c-data-list__item-action">
|
|
1117
1117
|
<button
|
|
1118
|
-
class="pf-v6-c-menu-toggle pf-m-plain"
|
|
1118
|
+
class="pf-v6-c-menu-toggle pf-m-plain pf-m-small"
|
|
1119
1119
|
type="button"
|
|
1120
1120
|
aria-expanded="false"
|
|
1121
1121
|
aria-label="Menu toggle"
|
|
@@ -1160,7 +1160,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1160
1160
|
</div>
|
|
1161
1161
|
<div class="pf-v6-c-data-list__item-action pf-m-hidden-on-lg">
|
|
1162
1162
|
<button
|
|
1163
|
-
class="pf-v6-c-menu-toggle pf-m-plain"
|
|
1163
|
+
class="pf-v6-c-menu-toggle pf-m-plain pf-m-small"
|
|
1164
1164
|
type="button"
|
|
1165
1165
|
aria-expanded="false"
|
|
1166
1166
|
aria-label="Menu toggle"
|
|
@@ -1174,10 +1174,10 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1174
1174
|
<div
|
|
1175
1175
|
class="pf-v6-c-data-list__item-action pf-m-hidden pf-m-visible-on-lg"
|
|
1176
1176
|
>
|
|
1177
|
-
<button class="pf-v6-c-button pf-m-primary" type="button">
|
|
1177
|
+
<button class="pf-v6-c-button pf-m-small pf-m-primary" type="button">
|
|
1178
1178
|
<span class="pf-v6-c-button__text">Primary</span>
|
|
1179
1179
|
</button>
|
|
1180
|
-
<button class="pf-v6-c-button pf-m-secondary" type="button">
|
|
1180
|
+
<button class="pf-v6-c-button pf-m-small pf-m-secondary" type="button">
|
|
1181
1181
|
<span class="pf-v6-c-button__text">Secondary</span>
|
|
1182
1182
|
</button>
|
|
1183
1183
|
</div>
|
|
@@ -1215,7 +1215,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1215
1215
|
</div>
|
|
1216
1216
|
<div class="pf-v6-c-data-list__item-action pf-m-hidden-on-xl">
|
|
1217
1217
|
<button
|
|
1218
|
-
class="pf-v6-c-menu-toggle pf-m-plain"
|
|
1218
|
+
class="pf-v6-c-menu-toggle pf-m-plain pf-m-small"
|
|
1219
1219
|
type="button"
|
|
1220
1220
|
aria-expanded="false"
|
|
1221
1221
|
aria-label="Menu toggle"
|
|
@@ -1229,16 +1229,16 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1229
1229
|
<div
|
|
1230
1230
|
class="pf-v6-c-data-list__item-action pf-m-hidden pf-m-visible-on-xl"
|
|
1231
1231
|
>
|
|
1232
|
-
<button class="pf-v6-c-button pf-m-primary" type="button">
|
|
1232
|
+
<button class="pf-v6-c-button pf-m-small pf-m-primary" type="button">
|
|
1233
1233
|
<span class="pf-v6-c-button__text">Primary</span>
|
|
1234
1234
|
</button>
|
|
1235
|
-
<button class="pf-v6-c-button pf-m-secondary" type="button">
|
|
1235
|
+
<button class="pf-v6-c-button pf-m-small pf-m-secondary" type="button">
|
|
1236
1236
|
<span class="pf-v6-c-button__text">Secondary</span>
|
|
1237
1237
|
</button>
|
|
1238
|
-
<button class="pf-v6-c-button pf-m-secondary" type="button">
|
|
1238
|
+
<button class="pf-v6-c-button pf-m-small pf-m-secondary" type="button">
|
|
1239
1239
|
<span class="pf-v6-c-button__text">Secondary</span>
|
|
1240
1240
|
</button>
|
|
1241
|
-
<button class="pf-v6-c-button pf-m-secondary" type="button">
|
|
1241
|
+
<button class="pf-v6-c-button pf-m-small pf-m-secondary" type="button">
|
|
1242
1242
|
<span class="pf-v6-c-button__text">Secondary</span>
|
|
1243
1243
|
</button>
|
|
1244
1244
|
</div>
|
|
@@ -1321,6 +1321,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1321
1321
|
</div>
|
|
1322
1322
|
</li>
|
|
1323
1323
|
</ul>
|
|
1324
|
+
|
|
1324
1325
|
<h2 class="Preview__section-title">Flex modifiers - example 2</h2>
|
|
1325
1326
|
<ul
|
|
1326
1327
|
class="pf-v6-c-data-list"
|
|
@@ -1379,6 +1380,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1379
1380
|
</div>
|
|
1380
1381
|
</li>
|
|
1381
1382
|
</ul>
|
|
1383
|
+
|
|
1382
1384
|
<h2 class="Preview__section-title">Flex modifiers - example 3</h2>
|
|
1383
1385
|
<ul
|
|
1384
1386
|
class="pf-v6-c-data-list"
|
|
@@ -1755,7 +1757,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1755
1757
|
id="draggable-help"
|
|
1756
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>
|
|
1757
1759
|
<ul
|
|
1758
|
-
class="pf-v6-c-data-list
|
|
1760
|
+
class="pf-v6-c-data-list"
|
|
1759
1761
|
role="list"
|
|
1760
1762
|
aria-label="Draggable data list rows"
|
|
1761
1763
|
id="data-list-draggable"
|
|
@@ -470,12 +470,7 @@ Inline edit **action-group** contains save and cancel actions and is only visibl
|
|
|
470
470
|
<caption class="pf-v6-c-table__caption">This is the table caption</caption>
|
|
471
471
|
|
|
472
472
|
<thead class="pf-v6-c-table__thead">
|
|
473
|
-
<tr
|
|
474
|
-
class="pf-v6-c-table__tr"
|
|
475
|
-
role&#x3D;&quot;row&quot;
|
|
476
|
-
[object
|
|
477
|
-
Object]
|
|
478
|
-
>
|
|
473
|
+
<tr class="pf-v6-c-table__tr" role="row">
|
|
479
474
|
<th class="pf-v6-c-table__th" role="columnheader">Text input</th>
|
|
480
475
|
|
|
481
476
|
<th class="pf-v6-c-table__th" role="columnheader">Disabled text input</th>
|
|
@@ -505,12 +500,7 @@ Inline edit **action-group** contains save and cancel actions and is only visibl
|
|
|
505
500
|
</thead>
|
|
506
501
|
|
|
507
502
|
<tbody class="pf-v6-c-table__tbody" role="rowgroup">
|
|
508
|
-
<tr
|
|
509
|
-
class="pf-v6-c-table__tr pf-m-inline-editable"
|
|
510
|
-
role&#x3D;&quot;row&quot;
|
|
511
|
-
[object
|
|
512
|
-
Object]
|
|
513
|
-
>
|
|
503
|
+
<tr class="pf-v6-c-table__tr pf-m-inline-editable" role="row">
|
|
514
504
|
<th
|
|
515
505
|
class="pf-v6-c-table__th"
|
|
516
506
|
role="columnheader"
|
|
@@ -699,12 +689,7 @@ Inline edit **action-group** contains save and cancel actions and is only visibl
|
|
|
699
689
|
</td>
|
|
700
690
|
</tr>
|
|
701
691
|
|
|
702
|
-
<tr
|
|
703
|
-
class="pf-v6-c-table__tr"
|
|
704
|
-
role&#x3D;&quot;row&quot;
|
|
705
|
-
[object
|
|
706
|
-
Object]
|
|
707
|
-
>
|
|
692
|
+
<tr class="pf-v6-c-table__tr" role="row">
|
|
708
693
|
<th
|
|
709
694
|
class="pf-v6-c-table__th"
|
|
710
695
|
role="columnheader"
|
|
@@ -11,3 +11,15 @@
|
|
|
11
11
|
#ws-core-c-label-overflow .pf-v6-c-label {
|
|
12
12
|
margin: 4px;
|
|
13
13
|
}
|
|
14
|
+
|
|
15
|
+
#ws-core-c-label-labels-with-truncation .ws-preview-html {
|
|
16
|
+
max-width: 320px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.pf-v6-c-label-truncate--example {
|
|
20
|
+
max-width: 100%;
|
|
21
|
+
padding: var(--pf-t--global--spacer--sm);
|
|
22
|
+
overflow: auto;
|
|
23
|
+
resize: horizontal;
|
|
24
|
+
border: var(--pf-t--global--border--width--box--default) solid var(--pf-t--global--border--color--default);
|
|
25
|
+
}
|
|
@@ -6582,6 +6582,41 @@ Use a label group to display multiple labels at once.
|
|
|
6582
6582
|
</div>
|
|
6583
6583
|
</div>
|
|
6584
6584
|
|
|
6585
|
+
<br />
|
|
6586
|
+
<br />
|
|
6587
|
+
|
|
6588
|
+
<div class="pf-v6-c-label-group">
|
|
6589
|
+
<div class="pf-v6-c-label-group__main">
|
|
6590
|
+
<ul
|
|
6591
|
+
class="pf-v6-c-label-group__list"
|
|
6592
|
+
role="list"
|
|
6593
|
+
aria-label="Group of labels"
|
|
6594
|
+
>
|
|
6595
|
+
<li class="pf-v6-c-label-group__list-item">
|
|
6596
|
+
<span class="pf-v6-c-label">
|
|
6597
|
+
<span class="pf-v6-c-label__content">
|
|
6598
|
+
<span class="pf-v6-c-label__text">A</span>
|
|
6599
|
+
</span>
|
|
6600
|
+
</span>
|
|
6601
|
+
</li>
|
|
6602
|
+
<li class="pf-v6-c-label-group__list-item">
|
|
6603
|
+
<span class="pf-v6-c-label pf-m-blue">
|
|
6604
|
+
<span class="pf-v6-c-label__content">
|
|
6605
|
+
<span class="pf-v6-c-label__text">T</span>
|
|
6606
|
+
</span>
|
|
6607
|
+
</span>
|
|
6608
|
+
</li>
|
|
6609
|
+
<li class="pf-v6-c-label-group__list-item">
|
|
6610
|
+
<span class="pf-v6-c-label pf-m-green">
|
|
6611
|
+
<span class="pf-v6-c-label__content">
|
|
6612
|
+
<span class="pf-v6-c-label__text">I</span>
|
|
6613
|
+
</span>
|
|
6614
|
+
</span>
|
|
6615
|
+
</li>
|
|
6616
|
+
</ul>
|
|
6617
|
+
</div>
|
|
6618
|
+
</div>
|
|
6619
|
+
|
|
6585
6620
|
```
|
|
6586
6621
|
|
|
6587
6622
|
### Label group with overflow
|
|
@@ -7785,6 +7820,133 @@ In addition to the JavaScript management of [editable labels](/components/label#
|
|
|
7785
7820
|
|
|
7786
7821
|
```
|
|
7787
7822
|
|
|
7823
|
+
### Labels with truncation
|
|
7824
|
+
|
|
7825
|
+
```html
|
|
7826
|
+
<div class="pf-v6-c-label-truncate--example">
|
|
7827
|
+
<strong>Label</strong>
|
|
7828
|
+
<br />
|
|
7829
|
+
<br />
|
|
7830
|
+
<span class="pf-v6-c-label">
|
|
7831
|
+
<span class="pf-v6-c-label__content">
|
|
7832
|
+
<span
|
|
7833
|
+
class="pf-v6-c-label__text"
|
|
7834
|
+
id="-truncated-with-icon-text"
|
|
7835
|
+
style="--pf-v6-c-label__text--MaxWidth: 38ch"
|
|
7836
|
+
>Label with set max-width truncation</span>
|
|
7837
|
+
</span>
|
|
7838
|
+
<span class="pf-v6-c-label__actions">
|
|
7839
|
+
<button
|
|
7840
|
+
class="pf-v6-c-button pf-m-no-padding pf-m-plain"
|
|
7841
|
+
type="button"
|
|
7842
|
+
id="-truncated-with-icon-button"
|
|
7843
|
+
aria-label="Remove"
|
|
7844
|
+
aria-labelledby="-truncated-with-icon-button -truncated-with-icon-text"
|
|
7845
|
+
>
|
|
7846
|
+
<span class="pf-v6-c-button__icon">
|
|
7847
|
+
<i class="fas fa-times fa-fw" aria-hidden="true"></i>
|
|
7848
|
+
</span>
|
|
7849
|
+
</button>
|
|
7850
|
+
</span>
|
|
7851
|
+
</span>
|
|
7852
|
+
<br />
|
|
7853
|
+
<br />
|
|
7854
|
+
<strong>Label group</strong>
|
|
7855
|
+
<br />
|
|
7856
|
+
<br />
|
|
7857
|
+
<div class="pf-v6-c-label-group">
|
|
7858
|
+
<div class="pf-v6-c-label-group__main">
|
|
7859
|
+
<ul
|
|
7860
|
+
class="pf-v6-c-label-group__list"
|
|
7861
|
+
role="list"
|
|
7862
|
+
aria-label="Group of labels"
|
|
7863
|
+
>
|
|
7864
|
+
<li class="pf-v6-c-label-group__list-item">
|
|
7865
|
+
<span class="pf-v6-c-label pf-m-blue">
|
|
7866
|
+
<span class="pf-v6-c-label__content">
|
|
7867
|
+
<span class="pf-v6-c-label__icon">
|
|
7868
|
+
<i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
|
|
7869
|
+
</span>
|
|
7870
|
+
<span class="pf-v6-c-label__text">Label 1</span>
|
|
7871
|
+
</span>
|
|
7872
|
+
</span>
|
|
7873
|
+
</li>
|
|
7874
|
+
<li class="pf-v6-c-label-group__list-item">
|
|
7875
|
+
<span class="pf-v6-c-label pf-m-green">
|
|
7876
|
+
<span class="pf-v6-c-label__content">
|
|
7877
|
+
<span class="pf-v6-c-label__icon">
|
|
7878
|
+
<i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
|
|
7879
|
+
</span>
|
|
7880
|
+
<span class="pf-v6-c-label__text">Label 2</span>
|
|
7881
|
+
</span>
|
|
7882
|
+
</span>
|
|
7883
|
+
</li>
|
|
7884
|
+
<li class="pf-v6-c-label-group__list-item">
|
|
7885
|
+
<span class="pf-v6-c-label">
|
|
7886
|
+
<span class="pf-v6-c-label__content">
|
|
7887
|
+
<span class="pf-v6-c-label__icon">
|
|
7888
|
+
<i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
|
|
7889
|
+
</span>
|
|
7890
|
+
<span
|
|
7891
|
+
class="pf-v6-c-label__text"
|
|
7892
|
+
>Label 3 has a lot of text lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pretium est a porttitor vehicula</span>
|
|
7893
|
+
</span>
|
|
7894
|
+
</span>
|
|
7895
|
+
</li>
|
|
7896
|
+
</ul>
|
|
7897
|
+
</div>
|
|
7898
|
+
</div>
|
|
7899
|
+
<br />
|
|
7900
|
+
<br />
|
|
7901
|
+
<strong>Label group vertical</strong>
|
|
7902
|
+
<br />
|
|
7903
|
+
<br />
|
|
7904
|
+
<div class="pf-v6-c-label-group pf-m-vertical">
|
|
7905
|
+
<div class="pf-v6-c-label-group__main">
|
|
7906
|
+
<ul
|
|
7907
|
+
class="pf-v6-c-label-group__list"
|
|
7908
|
+
role="list"
|
|
7909
|
+
aria-label="Group of labels"
|
|
7910
|
+
>
|
|
7911
|
+
<li class="pf-v6-c-label-group__list-item">
|
|
7912
|
+
<span class="pf-v6-c-label">
|
|
7913
|
+
<span class="pf-v6-c-label__content">
|
|
7914
|
+
<span class="pf-v6-c-label__icon">
|
|
7915
|
+
<i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
|
|
7916
|
+
</span>
|
|
7917
|
+
<span class="pf-v6-c-label__text">Label 1</span>
|
|
7918
|
+
</span>
|
|
7919
|
+
</span>
|
|
7920
|
+
</li>
|
|
7921
|
+
<li class="pf-v6-c-label-group__list-item">
|
|
7922
|
+
<span class="pf-v6-c-label pf-m-blue">
|
|
7923
|
+
<span class="pf-v6-c-label__content">
|
|
7924
|
+
<span class="pf-v6-c-label__icon">
|
|
7925
|
+
<i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
|
|
7926
|
+
</span>
|
|
7927
|
+
<span class="pf-v6-c-label__text">Label 2</span>
|
|
7928
|
+
</span>
|
|
7929
|
+
</span>
|
|
7930
|
+
</li>
|
|
7931
|
+
<li class="pf-v6-c-label-group__list-item">
|
|
7932
|
+
<span class="pf-v6-c-label pf-m-green">
|
|
7933
|
+
<span class="pf-v6-c-label__content">
|
|
7934
|
+
<span class="pf-v6-c-label__icon">
|
|
7935
|
+
<i class="fas fa-fw fa-info-circle" aria-hidden="true"></i>
|
|
7936
|
+
</span>
|
|
7937
|
+
<span
|
|
7938
|
+
class="pf-v6-c-label__text"
|
|
7939
|
+
>Label 3 has a lot of text lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pretium est a porttitor vehicula</span>
|
|
7940
|
+
</span>
|
|
7941
|
+
</span>
|
|
7942
|
+
</li>
|
|
7943
|
+
</ul>
|
|
7944
|
+
</div>
|
|
7945
|
+
</div>
|
|
7946
|
+
</div>
|
|
7947
|
+
|
|
7948
|
+
```
|
|
7949
|
+
|
|
7788
7950
|
## Documentation
|
|
7789
7951
|
|
|
7790
7952
|
### Label usage
|