Commit 9adb7ce
feat: pfe-jump-links (#858)
* got nested subsections working
* WIP and is working
* cleaned up a bit
* added autobuild feature to build with just content
* updated demo page
* cleaning up
* trigger a rerender of autobuilt nav in the panel's mutation observer
* cleaned up and added comments
* changed calling a function to an event listener triggered by the mutation observer
* changed list builder over to a template literal with a function
* added an attribute to customize offset
* wip horizontal nav
* playing around with the idea of two optional slots
* changed up the logo to not look gross
* making sure the ids are unique in the demo file
* making sure the links don't jump around on focus
* using this.emitEvent instead of dispatchEvent
* updating the hover style for the dark theme
* changed dark attribute to pfe-color=darkest
* styling updates for horizontal nav
* commented out all but one instance of the element to test in browserstack
* removed all mutation observers from firing
* missed one. Pushing up to test
* fixed a bug the nav was rebuilding when it shouldn't be
* cleaned up and reverted back to working demo
* removed the observer before re-rendering for IE11
* playing around with a lightweight ie11 fix
* making some observer updates and cleaning up commented out code
* removed border in default variant
* Update elements/pfe-jump-links/src/pfe-jump-links-nav.scss
Co-authored-by: Kendall Totten <[email protected]>
* Update elements/pfe-jump-links/src/pfe-jump-links-nav.scss
Co-authored-by: Kendall Totten <[email protected]>
* Update elements/pfe-jump-links/src/pfe-jump-links-nav.scss
Co-authored-by: Kendall Totten <[email protected]>
* Update elements/pfe-jump-links/src/pfe-jump-links-nav.scss
Co-authored-by: Kendall Totten <[email protected]>
* Update elements/pfe-jump-links/src/pfe-jump-links-nav.scss
Co-authored-by: Kendall Totten <[email protected]>
* Update elements/pfe-jump-links/src/pfe-jump-links-nav.scss
Co-authored-by: Kendall Totten <[email protected]>
* Update elements/pfe-jump-links/src/pfe-jump-links-nav.scss
Co-authored-by: Kendall Totten <[email protected]>
* updated stylesheet to use pfe-sass
* updated demo file to use pfe-cta
* adding tests
* added test case for scroll
* doesn't throw a warning if you're not using the sidebar pattern
* added warnings for using incorrect slots
* POC of using accordion as a disclosure
* POC of using accordion inside the template
* got accordion to work and look like our spec
* updated demo file
* fixed a bug where content was visible 'under' component in mobile
* made updates to be bem-ier
* switched back over to html selectors
* refactored some code to not require devs to add classes at all and added some documentation
* Adding support for local variables for padding, background color, border color, font size, heading font size.
* Bring back accordion overrides
* cleaning up a bit
* added attribute to pass in any text for a11y help text
* Added another instance to the bottom of the demo page to show the jump links with overrides. Cleaned up some of the spacing so that the links have more room, and added a couple more local variables
* Use pfe-breakpoint function, remove padding from heading only on desktop
* beautify demo file
* Add hover state to horizontal links
* added reportHeight function to add computed height to corresponding panel
* remove background color from first demo
* update dark demo margins
* tweaked styles to use vars and match spec
* added font family rule back in
* Remove extra demo override vars
* removed font styles from demo page
Co-authored-by: Daniel Faucette <[email protected]>
Co-authored-by: Kyle Buchanan <[email protected]>
Co-authored-by: Kendall Totten <[email protected]>1 parent 26139b5 commit 9adb7ce
File tree
20 files changed
+3411
-0
lines changed- elements/pfe-jump-links
- demo
- src
- test
- examples
20 files changed
+3411
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
0 commit comments