@patternfly/patternfly 5.1.0-prerelease.10 → 5.1.0-prerelease.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Breadcrumb/breadcrumb.css +3 -0
- package/components/Breadcrumb/breadcrumb.scss +2 -0
- package/docs/components/Nav/examples/Navigation.css +3 -26
- package/docs/components/Nav/examples/Navigation.md +99 -0
- package/docs/components/Toolbar/examples/Toolbar.md +76 -60
- package/package.json +2 -2
- package/patternfly-no-globals.css +3 -0
- package/patternfly-theme-dark-unversioned.css +3 -0
- package/patternfly.css +3 -0
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
|
@@ -1,32 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
#ws-core-c-navigation-basic,
|
|
3
|
-
#ws-core-c-navigation-grouped,
|
|
4
|
-
#ws-core-c-navigation-grouped-nav,
|
|
5
|
-
#ws-core-c-navigation-grouped-nav-no-titles,
|
|
6
|
-
#ws-core-c-navigation-expanded,
|
|
7
|
-
#ws-core-c-navigation-expanded-with-subnav-titles,
|
|
8
|
-
#ws-core-c-navigation-mixed,
|
|
9
|
-
#ws-core-c-navigation-horizontal,
|
|
10
|
-
#ws-core-c-navigation-horizontal-overflow,
|
|
11
|
-
#ws-core-c-navigation-horizontal-subnav,
|
|
12
|
-
#ws-core-c-navigation-horizontal-subnav-overflow,
|
|
13
|
-
#ws-core-c-navigation-drilldown,
|
|
14
|
-
#ws-core-c-navigation-nav-with-drilldown-menu .pf-v5-c-nav,
|
|
15
|
-
#ws-core-c-navigation-level-2-drilldown,
|
|
16
|
-
#ws-core-c-navigation-level-3-drilldown,
|
|
17
|
-
#ws-core-c-navigation-nav-with-flyout .pf-v5-c-nav,
|
|
18
|
-
#ws-core-c-navigation-grouped-nav-no-titles-no-margin-top {
|
|
19
|
-
padding: 0;
|
|
20
|
-
background-color: var(--pf-v5-global--BackgroundColor--dark-300);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
#ws-core-c-navigation-expandable-third-level .pf-v5-c-nav {
|
|
1
|
+
.ws-core-c-navigation:not([id*="tertiary"]):not([id*="light-mode"]) .ws-preview-html {
|
|
24
2
|
background-color: var(--pf-v5-global--BackgroundColor--dark-300);
|
|
25
3
|
}
|
|
26
4
|
|
|
27
5
|
#ws-core-c-navigation-horizontal-in-masthead,
|
|
28
6
|
#ws-core-c-navigation-horizontal-in-masthead-overflow {
|
|
29
|
-
padding: 0;
|
|
30
7
|
grid-template-rows: auto;
|
|
31
8
|
}
|
|
32
9
|
|
|
@@ -58,6 +35,6 @@
|
|
|
58
35
|
|
|
59
36
|
#ws-core-c-navigation-nav-with-flyout .pf-v5-c-menu.pf-m-flyout.pf-m-nav {
|
|
60
37
|
position: absolute;
|
|
61
|
-
|
|
62
|
-
|
|
38
|
+
inset-block-start: 168px;
|
|
39
|
+
inset-inline-start: 256px;
|
|
63
40
|
}
|
|
@@ -2483,6 +2483,104 @@ cssPrefix: pf-v5-c-nav
|
|
|
2483
2483
|
|
|
2484
2484
|
```
|
|
2485
2485
|
|
|
2486
|
+
### Nav link text
|
|
2487
|
+
|
|
2488
|
+
When using anything other than a text node for the link text, wrap the link text in an element with `.pf-v5-c-nav__link-text`.
|
|
2489
|
+
|
|
2490
|
+
```html isBeta
|
|
2491
|
+
<nav class="pf-v5-c-nav" aria-label="Global">
|
|
2492
|
+
<ul class="pf-v5-c-nav__list" role="list">
|
|
2493
|
+
<li class="pf-v5-c-nav__item">
|
|
2494
|
+
<a href="#" class="pf-v5-c-nav__link">
|
|
2495
|
+
<span class="pf-v5-c-nav__link-text">
|
|
2496
|
+
Link 1
|
|
2497
|
+
<i class="fas fa-arrow-right" aria-hidden="true"></i>
|
|
2498
|
+
</span>
|
|
2499
|
+
</a>
|
|
2500
|
+
</li>
|
|
2501
|
+
<li class="pf-v5-c-nav__item pf-m-expandable pf-m-expanded">
|
|
2502
|
+
<button
|
|
2503
|
+
class="pf-v5-c-nav__link"
|
|
2504
|
+
id="nav-link-text-link2"
|
|
2505
|
+
aria-expanded="true"
|
|
2506
|
+
>
|
|
2507
|
+
<span class="pf-v5-c-nav__link-text">
|
|
2508
|
+
Link 2
|
|
2509
|
+
<small>(small text)</small>
|
|
2510
|
+
</span>
|
|
2511
|
+
<span class="pf-v5-c-nav__toggle">
|
|
2512
|
+
<span class="pf-v5-c-nav__toggle-icon">
|
|
2513
|
+
<i class="fas fa-angle-right" aria-hidden="true"></i>
|
|
2514
|
+
</span>
|
|
2515
|
+
</span>
|
|
2516
|
+
</button>
|
|
2517
|
+
<section
|
|
2518
|
+
class="pf-v5-c-nav__subnav"
|
|
2519
|
+
aria-labelledby="nav-link-text-link2"
|
|
2520
|
+
>
|
|
2521
|
+
<ul class="pf-v5-c-nav__list" role="list">
|
|
2522
|
+
<li class="pf-v5-c-nav__item">
|
|
2523
|
+
<a href="#" class="pf-v5-c-nav__link">
|
|
2524
|
+
<span class="pf-v5-c-nav__link-text">
|
|
2525
|
+
<i class="fas fa-user" aria-hidden="true"></i>
|
|
2526
|
+
Subnav link 1
|
|
2527
|
+
</span>
|
|
2528
|
+
</a>
|
|
2529
|
+
</li>
|
|
2530
|
+
<li class="pf-v5-c-nav__item">
|
|
2531
|
+
<a href="#" class="pf-v5-c-nav__link">
|
|
2532
|
+
<span class="pf-v5-c-nav__link-text">
|
|
2533
|
+
<i class="fas fa-user" aria-hidden="true"></i>
|
|
2534
|
+
Subnav link 2
|
|
2535
|
+
</span>
|
|
2536
|
+
</a>
|
|
2537
|
+
</li>
|
|
2538
|
+
</ul>
|
|
2539
|
+
</section>
|
|
2540
|
+
</li>
|
|
2541
|
+
<li class="pf-v5-c-nav__item pf-m-expandable pf-m-current">
|
|
2542
|
+
<button
|
|
2543
|
+
class="pf-v5-c-nav__link"
|
|
2544
|
+
id="nav-link-text-link4"
|
|
2545
|
+
aria-expanded="false"
|
|
2546
|
+
>
|
|
2547
|
+
<span class="pf-v5-c-nav__link-text">
|
|
2548
|
+
Link 3
|
|
2549
|
+
<strong>(strong text)</strong>
|
|
2550
|
+
</span>
|
|
2551
|
+
<span class="pf-v5-c-nav__toggle">
|
|
2552
|
+
<span class="pf-v5-c-nav__toggle-icon">
|
|
2553
|
+
<i class="fas fa-angle-right" aria-hidden="true"></i>
|
|
2554
|
+
</span>
|
|
2555
|
+
</span>
|
|
2556
|
+
</button>
|
|
2557
|
+
<section
|
|
2558
|
+
class="pf-v5-c-nav__subnav"
|
|
2559
|
+
aria-labelledby="nav-link-text-link4"
|
|
2560
|
+
hidden
|
|
2561
|
+
>
|
|
2562
|
+
<ul class="pf-v5-c-nav__list" role="list">
|
|
2563
|
+
<li class="pf-v5-c-nav__item">
|
|
2564
|
+
<a href="#" class="pf-v5-c-nav__link">Subnav link 1</a>
|
|
2565
|
+
</li>
|
|
2566
|
+
<li class="pf-v5-c-nav__item">
|
|
2567
|
+
<a
|
|
2568
|
+
href="#"
|
|
2569
|
+
class="pf-v5-c-nav__link pf-m-current"
|
|
2570
|
+
aria-current="page"
|
|
2571
|
+
>Subnav link 2</a>
|
|
2572
|
+
</li>
|
|
2573
|
+
<li class="pf-v5-c-nav__item">
|
|
2574
|
+
<a href="#" class="pf-v5-c-nav__link">Subnav link 3</a>
|
|
2575
|
+
</li>
|
|
2576
|
+
</ul>
|
|
2577
|
+
</section>
|
|
2578
|
+
</li>
|
|
2579
|
+
</ul>
|
|
2580
|
+
</nav>
|
|
2581
|
+
|
|
2582
|
+
```
|
|
2583
|
+
|
|
2486
2584
|
## Documentation
|
|
2487
2585
|
|
|
2488
2586
|
### Overview
|
|
@@ -2514,6 +2612,7 @@ The navigation system relies on several different sub-components:
|
|
|
2514
2612
|
| `.pf-v5-c-nav__list` | `<ul>` | Initiates nav list. |
|
|
2515
2613
|
| `.pf-v5-c-nav__item` | `<li>` | Initiates nav list item. |
|
|
2516
2614
|
| `.pf-v5-c-nav__link` | `<a>` | Initiates nav list link. |
|
|
2615
|
+
| `.pf-v5-c-nav__link-text` | `<span>` | Initiates nav list link text. |
|
|
2517
2616
|
| `.pf-v5-c-nav__section` | `<section>` | Initiates a nav section element. |
|
|
2518
2617
|
| `.pf-v5-c-nav__section-title` | `<h1>`, `<h2>`, `<h3>`, `<h4>`, `<h5>`, `<h6>` | Initiates a nav section title. |
|
|
2519
2618
|
| `.pf-v5-c-nav__toggle` | `<span>` | Initiates the nav toggle wrapper. |
|
|
@@ -3416,22 +3416,26 @@ The `.pf-m-toggle-group` controls when, and at which breakpoint, filters will be
|
|
|
3416
3416
|
</div>
|
|
3417
3417
|
|
|
3418
3418
|
<nav class="pf-v5-c-pagination__nav" aria-label="Pagination">
|
|
3419
|
-
<
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3419
|
+
<div class="pf-v5-c-pagination__nav-control pf-m-first">
|
|
3420
|
+
<button
|
|
3421
|
+
class="pf-v5-c-button pf-m-plain pf-m-disabled"
|
|
3422
|
+
type="button"
|
|
3423
|
+
aria-label="Go to first page"
|
|
3424
|
+
aria-disabled="true"
|
|
3425
|
+
>
|
|
3426
|
+
<i class="fas fa-angle-double-left" aria-hidden="true"></i>
|
|
3427
|
+
</button>
|
|
3428
|
+
</div>
|
|
3429
|
+
<div class="pf-v5-c-pagination__nav-control pf-m-prev">
|
|
3430
|
+
<button
|
|
3431
|
+
class="pf-v5-c-button pf-m-plain pf-m-disabled"
|
|
3432
|
+
type="button"
|
|
3433
|
+
aria-label="Go to previous page"
|
|
3434
|
+
aria-disabled="true"
|
|
3435
|
+
>
|
|
3436
|
+
<i class="fas fa-angle-left" aria-hidden="true"></i>
|
|
3437
|
+
</button>
|
|
3438
|
+
</div>
|
|
3435
3439
|
|
|
3436
3440
|
<div
|
|
3437
3441
|
class="pf-v5-c-pagination__nav-page-select"
|
|
@@ -3448,20 +3452,24 @@ The `.pf-m-toggle-group` controls when, and at which breakpoint, filters will be
|
|
|
3448
3452
|
</span>
|
|
3449
3453
|
<span aria-hidden="true">of 4</span>
|
|
3450
3454
|
</div>
|
|
3451
|
-
<
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3455
|
+
<div class="pf-v5-c-pagination__nav-control pf-m-next">
|
|
3456
|
+
<button
|
|
3457
|
+
class="pf-v5-c-button pf-m-plain"
|
|
3458
|
+
type="button"
|
|
3459
|
+
aria-label="Go to next page"
|
|
3460
|
+
>
|
|
3461
|
+
<i class="fas fa-angle-right" aria-hidden="true"></i>
|
|
3462
|
+
</button>
|
|
3463
|
+
</div>
|
|
3464
|
+
<div class="pf-v5-c-pagination__nav-control pf-m-last">
|
|
3465
|
+
<button
|
|
3466
|
+
class="pf-v5-c-button pf-m-plain"
|
|
3467
|
+
type="button"
|
|
3468
|
+
aria-label="Go to last page"
|
|
3469
|
+
>
|
|
3470
|
+
<i class="fas fa-angle-double-right" aria-hidden="true"></i>
|
|
3471
|
+
</button>
|
|
3472
|
+
</div>
|
|
3465
3473
|
</nav>
|
|
3466
3474
|
</div>
|
|
3467
3475
|
</div>
|
|
@@ -3959,22 +3967,26 @@ The `.pf-m-toggle-group` controls when, and at which breakpoint, filters will be
|
|
|
3959
3967
|
</div>
|
|
3960
3968
|
|
|
3961
3969
|
<nav class="pf-v5-c-pagination__nav" aria-label="Pagination">
|
|
3962
|
-
<
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3970
|
+
<div class="pf-v5-c-pagination__nav-control pf-m-first">
|
|
3971
|
+
<button
|
|
3972
|
+
class="pf-v5-c-button pf-m-plain pf-m-disabled"
|
|
3973
|
+
type="button"
|
|
3974
|
+
aria-label="Go to first page"
|
|
3975
|
+
aria-disabled="true"
|
|
3976
|
+
>
|
|
3977
|
+
<i class="fas fa-angle-double-left" aria-hidden="true"></i>
|
|
3978
|
+
</button>
|
|
3979
|
+
</div>
|
|
3980
|
+
<div class="pf-v5-c-pagination__nav-control pf-m-prev">
|
|
3981
|
+
<button
|
|
3982
|
+
class="pf-v5-c-button pf-m-plain pf-m-disabled"
|
|
3983
|
+
type="button"
|
|
3984
|
+
aria-label="Go to previous page"
|
|
3985
|
+
aria-disabled="true"
|
|
3986
|
+
>
|
|
3987
|
+
<i class="fas fa-angle-left" aria-hidden="true"></i>
|
|
3988
|
+
</button>
|
|
3989
|
+
</div>
|
|
3978
3990
|
|
|
3979
3991
|
<div
|
|
3980
3992
|
class="pf-v5-c-pagination__nav-page-select"
|
|
@@ -3991,20 +4003,24 @@ The `.pf-m-toggle-group` controls when, and at which breakpoint, filters will be
|
|
|
3991
4003
|
</span>
|
|
3992
4004
|
<span aria-hidden="true">of 4</span>
|
|
3993
4005
|
</div>
|
|
3994
|
-
<
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4006
|
+
<div class="pf-v5-c-pagination__nav-control pf-m-next">
|
|
4007
|
+
<button
|
|
4008
|
+
class="pf-v5-c-button pf-m-plain"
|
|
4009
|
+
type="button"
|
|
4010
|
+
aria-label="Go to next page"
|
|
4011
|
+
>
|
|
4012
|
+
<i class="fas fa-angle-right" aria-hidden="true"></i>
|
|
4013
|
+
</button>
|
|
4014
|
+
</div>
|
|
4015
|
+
<div class="pf-v5-c-pagination__nav-control pf-m-last">
|
|
4016
|
+
<button
|
|
4017
|
+
class="pf-v5-c-button pf-m-plain"
|
|
4018
|
+
type="button"
|
|
4019
|
+
aria-label="Go to last page"
|
|
4020
|
+
>
|
|
4021
|
+
<i class="fas fa-angle-double-right" aria-hidden="true"></i>
|
|
4022
|
+
</button>
|
|
4023
|
+
</div>
|
|
4008
4024
|
</nav>
|
|
4009
4025
|
</div>
|
|
4010
4026
|
</div>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/patternfly",
|
|
3
3
|
"description": "Assets, source, tooling, and content for PatternFly 4",
|
|
4
|
-
"version": "5.1.0-prerelease.
|
|
4
|
+
"version": "5.1.0-prerelease.12",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"scripts": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@commitlint/config-conventional": "^17.6.7",
|
|
46
46
|
"@fortawesome/fontawesome": "^1.1.8",
|
|
47
47
|
"@octokit/rest": "^20.0.1",
|
|
48
|
-
"@patternfly/documentation-framework": "5.1.
|
|
48
|
+
"@patternfly/documentation-framework": "5.1.9",
|
|
49
49
|
"@patternfly/patternfly-a11y": "4.3.1",
|
|
50
50
|
"@patternfly/react-code-editor": "5.0.0",
|
|
51
51
|
"@patternfly/react-core": "5.0.0",
|
|
@@ -6929,6 +6929,9 @@
|
|
|
6929
6929
|
line-height: 1;
|
|
6930
6930
|
color: var(--pf-v5-c-breadcrumb__item-divider--Color);
|
|
6931
6931
|
}
|
|
6932
|
+
:where(.ws-dir-rtl, .pf-v5-m-dir-rtl, [dir=rtl]) .pf-v5-c-breadcrumb__item-divider {
|
|
6933
|
+
scale: -1 1;
|
|
6934
|
+
}
|
|
6932
6935
|
|
|
6933
6936
|
.pf-v5-c-breadcrumb__link {
|
|
6934
6937
|
font-size: inherit;
|
|
@@ -7046,6 +7046,9 @@ button) {
|
|
|
7046
7046
|
line-height: 1;
|
|
7047
7047
|
color: var(--pf-v5-c-breadcrumb__item-divider--Color);
|
|
7048
7048
|
}
|
|
7049
|
+
:where(.ws-dir-rtl, .pf-v5-m-dir-rtl, [dir=rtl]) .pf-v5-c-breadcrumb__item-divider {
|
|
7050
|
+
scale: -1 1;
|
|
7051
|
+
}
|
|
7049
7052
|
|
|
7050
7053
|
.pf-v5-c-breadcrumb__link {
|
|
7051
7054
|
font-size: inherit;
|
package/patternfly.css
CHANGED
|
@@ -7046,6 +7046,9 @@ button) {
|
|
|
7046
7046
|
line-height: 1;
|
|
7047
7047
|
color: var(--pf-v5-c-breadcrumb__item-divider--Color);
|
|
7048
7048
|
}
|
|
7049
|
+
:where(.ws-dir-rtl, .pf-v5-m-dir-rtl, [dir=rtl]) .pf-v5-c-breadcrumb__item-divider {
|
|
7050
|
+
scale: -1 1;
|
|
7051
|
+
}
|
|
7049
7052
|
|
|
7050
7053
|
.pf-v5-c-breadcrumb__link {
|
|
7051
7054
|
font-size: inherit;
|