Skip to content

Commit 5001cc8

Browse files
committed
feat: Update changelog
1 parent 76ae658 commit 5001cc8

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

CHANGELOG-prerelease.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
## Prerelease 56 ( TBD )
1+
## Prerelease 59 ( 2021-04-21 )
2+
- [1549](https://github.com/patternfly/patternfly-elements/pull/1549) feat: Add nav-label to pfe-jump-links to support customized autobuild text in the pfe-jump-links-nav
3+
4+
## Prerelease 58 ( 2021-02-22 )
5+
6+
- [1391](https://github.com/patternfly/patternfly-elements/pull/1391) fix: Update pfe-jump-links to remove has_slot
7+
8+
## Prerelease 56 ( 2020-08-27 )
29

310
- [06a9b94](https://github.com/patternfly/patternfly-elements/commit/06a9b94505d1471d899f1db9704727c5a249a489) fix: move visual regression testing to merge script
411
- [7aad6b](https://github.com/patternfly/patternfly-elements/commit/7aad6b463920cad87de2697ee5fdf99b46eb628e) feat: Remove build from postinstall

elements/pfe-jump-links/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ No extra roles or aria labels are required because we're using standard html tag
7878

7979
- `pfe-c-autobuild`: Flips the switch on the component to create its own markup for the navigation. You can add `pfe-jump-links-panel__section` to each section that should show in the nav. If you want to use sub-sections add `has-sub-section` to the parent section that should always show and the `sub-section` class to the children of that section. If you use this attribute, keep in mind that non-JavaScript environments (some search engines, browsers with JS disabled) will not see the proper markup.
8080

81+
- `nav-label`: This attribute can be added to headings with the `pfe-jump-links-panel__section` class in order to inform the navigation text to be used in the pfe-jump-links-nav (only works when autobuild is set for the navigation element).
82+
8183
- `sr-text`: This attribute is read when the component upgrades to provide the innerText of the heading. If there is no `sr-text` attribute then the component defaults to "JUMP TO SECTION". This attribute is to enable translations and internationalization.
8284

8385
- `pfe-c-offset`: This attribute determines the distance from the top of the browser window to trigger a switch from one link being active to the next. For instance `pfe-c-offset="600"` would mean that threshold flips at 600px from the top. The default is set at 200, and if you desire 200px then you can leave this attribute off. The `pfe-c-offset` attribute should be placed on `pfe-jump-links-panel`. There is a css solution to control the offset, however the attribute value takes precedence over css. To read more about a css solution see below.

elements/pfe-jump-links/demo/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ <h4 slot="pfe-jump-links-nav--heading">Jump to section</h4>
104104
<div class="pfe-l-grid__item pfe-m-12-col pfe-m-9-col-on-lg">
105105
<pfe-jump-links-panel class="special" pfe-c-scrolltarget="jumplinks1">
106106
<div>
107-
<h1 class="pfe-jump-links-panel__section" id="section1" nav-label="First section">Section 1</h1>
107+
<h1 class="pfe-jump-links-panel__section" id="section1">Section 1</h1>
108108
<p>Lorem ipsum dolor amet umami vaporware actually church-key keytar, hell of roof party unicorn helvetica
109109
lomo pop-up fam taxidermy food truck dolore. Crucifix quinoa af eiusmod try-hard velit aesthetic freegan
110110
seitan readymade vinyl snackwave four dollar toast neutra. In ipsum blog tbh. Authentic la croix bespoke
@@ -577,7 +577,7 @@ <h4 slot="pfe-jump-links-nav--heading" id="pfe-jump-links-nav--heading">Jump to
577577
<div class="pfe-l-grid__item pfe-m-12-col pfe-m-9-col-on-lg">
578578
<pfe-jump-links-panel pfe-c-scrolltarget="jumplinks8">
579579
<div>
580-
<h1 class="pfe-jump-links-panel__section" id="section6">Section 6</h1>
580+
<h1 class="pfe-jump-links-panel__section" id="section6" nav-label="First section">Section 6</h1>
581581
<p>Lorem ipsum dolor amet umami vaporware actually church-key keytar, hell of roof party unicorn helvetica
582582
lomo pop-up fam taxidermy food truck dolore. Crucifix quinoa af eiusmod try-hard velit aesthetic freegan
583583
seitan readymade vinyl snackwave four dollar toast neutra. In ipsum blog tbh. Authentic la croix bespoke
@@ -611,7 +611,7 @@ <h1 class="pfe-jump-links-panel__section" id="section6">Section 6</h1>
611611
gentrify brooklyn fingerstache hoodie wolf. DIY veniam elit bushwick pok pok. Esse voluptate cillum, cred
612612
skateboard ethical forage aliqua master cleanse 90's cornhole. Id ut raclette swag ad keytar polaroid synth
613613
sunt williamsburg butcher woke lorem whatever squid. </p>
614-
<h1 class="pfe-jump-links-panel__section" id="section7">Section 7</h1>
614+
<h1 class="pfe-jump-links-panel__section" id="section7" nav-label="Next section">Section 7</h1>
615615
<p>Lorem ipsum dolor amet umami vaporware actually church-key keytar, hell of roof party unicorn helvetica
616616
lomo pop-up fam taxidermy food truck dolore. Crucifix quinoa af eiusmod try-hard velit aesthetic freegan
617617
seitan readymade vinyl snackwave four dollar toast neutra. In ipsum blog tbh. Authentic la croix bespoke

examples/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ <h1>Demo pages</h1>
5858
<pfe-cta pfe-priority="secondary" pfe-variant="wind"><a href="../elements/pfe-cta/demo">pfe-cta</a></pfe-cta>
5959
<pfe-cta pfe-priority="secondary" pfe-variant="wind"><a href="../elements/pfe-datetime/demo">pfe-datetime</a></pfe-cta>
6060
<pfe-cta pfe-priority="secondary" pfe-variant="wind"><a href="../elements/pfe-dropdown/demo">pfe-dropdown</a></pfe-cta>
61+
<pfe-cta pfe-priority="secondary" pfe-variant="wind"><a href="../elements/pfe-foo/demo">pfe-foo</a></pfe-cta>
6162
<pfe-cta pfe-priority="secondary" pfe-variant="wind"><a href="../elements/pfe-health-index/demo">pfe-health-index</a></pfe-cta>
6263
<pfe-cta pfe-priority="secondary" pfe-variant="wind"><a href="../elements/pfe-icon/demo">pfe-icon</a></pfe-cta>
6364
<pfe-cta pfe-priority="secondary" pfe-variant="wind"><a href="../elements/pfe-icon-panel/demo">pfe-icon-panel</a></pfe-cta>

0 commit comments

Comments
 (0)