You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/jump-link/img/jump-links-expandable.svg
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/jump-link/jump-link.md
+25-15Lines changed: 25 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,25 +13,15 @@ import '../components.css';
13
13
14
14
1.**Label (optional):** A descriptive header for a list of jump links.
15
15
16
-
2.**Active section:** current section of the page the user is on.
16
+
2.**Active section:**The current section of the page the user is on.
17
17
18
-
3.**Inactive section:** other sections of the page that the user is not currently on. Clicking on an inactive section will bring the user to the selected section and make the section active.
18
+
3.**Inactive section:**The other sections of the page that the user is not currently on. Clicking on an inactive section will bring the user to the selected section and make the section active.
19
19
20
20
## Usage
21
21
Jump links provide a way to navigate through section headings on a page without scrolling. The highlighted active section changes as the user scrolls to the next section.
22
22
23
-
### Placement
24
-
Vertical jump links can be placed either to the left or the right of the content on the page. It is recommended to place the jump links on the left side of the content and remain consistent with the application you are working on. Only use jump links on the right when space allows and when there is an extensive nav on the left; otherwise, consider reverting to the left of the page. In both placements, the visual system is identical, including jump links with subsections. So use either according to your application’s needs.
25
-
26
-
<divclass="ws-docs-content-img">
27
-

28
-
</div>
29
-
<divclass="ws-docs-content-img">
30
-

31
-
</div>
32
-
33
23
### Jump links on mobile
34
-
On smaller screen sizes, jump links collapse into an expandable component that is shown above the content. This componentcan be expanded to display the jump links.
24
+
On smaller screen sizes, use [expandable jump links](#expandable-jump-links). This collapses a list of jump links into one component, which can be expanded to display the list of jump links.
35
25
36
26
<divclass="ws-docs-content-img">
37
27

@@ -48,7 +38,7 @@ As the user scrolls down the page, the active sections are highlighted from top
48
38
</div>
49
39
50
40
### Horizontal jump links
51
-
As the user scrolls down the page, the active sections are highlighted from left to right. A jump link can be displayed leftaligned or centeraligned and with an optional label.
41
+
As the user scrolls down the page, the active sections are highlighted from left to right. A jump link can be displayed left-aligned or center-aligned, and can display an optional label.
52
42
53
43
<divclass="ws-docs-content-img">
54
44

@@ -61,5 +51,25 @@ If the page has subsections, they are shown as indented jump links under the par
61
51

62
52
</div>
63
53
54
+
### Expandable jump links
55
+
Expandable jump links hide the list of links within a collapsed section by default. Once users expand the section, they will see the full list of links, which they can then interact with.
56
+
57
+
<divclass="ws-docs-content-img">
58
+

59
+
</div>
60
+
61
+
## Placement
62
+
Vertical jump links can be placed either to the left or the right of the content on the page. In both placements, the visual system is identical, including jump links with subsections.
63
+
64
+
We recommended placing jump links on the left side of the content and remaining consistent with the application you are working on. Only use jump links on the right when space allows and when there is an extensive nav on the left; otherwise, consider reverting to the left of the page.
65
+
66
+
<divclass="ws-docs-content-img">
67
+

68
+
</div>
69
+
70
+
<divclass="ws-docs-content-img">
71
+

72
+
</div>
73
+
64
74
## Accessibility
65
-
For information regarding accessibility, visit the [jump links accessibility](/components/jump-links/accessibility) tab.
75
+
For information regarding accessibility, visit the [jump links accessibility](/components/jump-links/accessibility) tab.
0 commit comments