Skip to content

Commit 9ddd37d

Browse files
authored
feat: in-page navigation component (#5755)
* feat: setup base macro and examples for in page navigation * feat: duplicate side-navigation styles and create an in-page demo * feat: Style layout and sizing * feat: Add dropdown and scroll behaviour * feat: Add manual and full-page mode to macro * feat: update 'p-tooltip' to only applying style to first found 'p-tooltip__message' * feat: add JS to auto-build the navigation & for user interactions * feat: allow passing a list of 'excludes' to no include in the navigation when in 'full-page' mode * refactor: fix tooltip interactions * feat: Add examples * feat: Add documentation * chore: bum version & update release notes * refactor: apostrophe fixes * refactor: update documentation as per design comments * feat: add smooth scrolling * refactor: adjust intersection oberserver to focus the center of the screen * feat: align mobile/tablet view to screen edge * feat: focus headings when clicking navigation links * fix: background color mismatch * fix: spacing issue on horizontal navigation * feat: address design suggestions * refactor: address documentation suggestions * chore: update 'in page' to 'in-page' * feat: adjust IntersectionObserver focus point dependent on screen size * refactor: run formatter * feat: add custom positioning for tooltip in no overflow container * refactor: correct typos in docs * refactor: apply design suggestions * refactor: consolidate styles based on screen sizes * fix: linkchecker * chore: address comments from code review * chore: address code review comments * fix: run prettier * chore: bump parker.js stylesheet threshold to 532480
1 parent a7d0939 commit 9ddd37d

File tree

16 files changed

+1994
-4
lines changed

16 files changed

+1994
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vanilla-framework",
3-
"version": "4.44.0",
3+
"version": "4.45.0",
44
"author": {
55
"email": "webteam@canonical.com",
66
"name": "Canonical Webteam"

releases.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
- version: 4.45.0
2+
features:
3+
- component: In-page navigation
4+
url: /docs/patterns/in-page-navigation
5+
status: New
6+
notes: We've introduced a new in-page navigation pattern.
17
- version: 4.44.0
28
features:
39
- component: Hero section

scss/_base_placeholders.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,18 @@
9797
}
9898
}
9999

100+
%vf-pseudo-border--left {
101+
position: relative;
102+
103+
&::before {
104+
@extend %vf-pseudo-border;
105+
bottom: 0;
106+
height: auto;
107+
top: 0;
108+
width: 1px;
109+
}
110+
}
111+
100112
%hr {
101113
background: $colors--theme--border-default;
102114
border: 0;

0 commit comments

Comments
 (0)