@patternfly/patternfly 5.1.0-prerelease.10 → 5.1.0-prerelease.11

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.
@@ -1,32 +1,9 @@
1
- #ws-core-c-navigation-default,
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
- inset-block-start: 168px;
62
- inset-inline-start: 256px;
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. |
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.10",
4
+ "version": "5.1.0-prerelease.11",
5
5
  "keywords": [],
6
6
  "license": "MIT",
7
7
  "scripts": {