Skip to main content Home
About About the Design SystemRoadmap
Get started OverviewDesignersDevelopers
Foundations OverviewColorGridIconographyInteractionsSpacingTypography
Tokens Overview Global colorbox shadowTypographyborderopacityspacelengthIconBreakpointsMedia Queries
Elements All elements Accordion Alert Announcement Audio player Avatar Back to top Badge Blockquote Breadcrumb Button Card Chip Code block Call to action Dialog Disclosure Footer Health index Icon Jump links Navigation (primary) Navigation (secondary) Pagination PopoverPlanned Progress stepsPlanned Site status Skip link Spinner Statistic Subnavigation Surface Switch Table Tabs Tag Tile Timestamp Tooltip Video embed
Theming OverviewColor PalettesCustomizingDevelopers
Patterns All PatternsCardTabsFilterFormLink with iconLogo wallSearch barSticky bannerSticky cardTile
Personalization All Personalization PatternsAnnouncement
Accessibility FundamentalsAccessibility toolsAssistive technologiesCI/CDContentContributorsDesignDevelopmentManual testingResourcesScreen readers
Design/code status Release notes Get support

Jump links

OverviewStyleGuidelinesCodeAccessibilityDemos
General usageVertical vs. horizontalWriting contentLayoutBehaviorResponsive designBest practicesGeneral usageVertical vs. horizontalWriting contentLayoutBehaviorResponsive designBest practices

General usage

In general, use jump links as a sticky or persistent navigation to help users move through sections of content without scrolling.

Vertical vs. horizontal

There are two available orientations that offer several benefits and risks.

Orientation Benefits Risks
Vertical
  • Flexible placement
  • Does not cover other content when scrolling
  • Can display lots of headings with lots of words
  • Less visually prominent
  • Layout can get narrow and show lots of lines
Horizontal
  • More visually prominent
  • Spans the entire page width
  • Layout does not change
  • Less flexible placement
  • Sometimes covers other content when scrolling
  • On small screens, some jump links are not visible

Writing content

Title text

The title should always be included and should default to “Jump to section” if something else is not provided. Use sentence case only and limit title text to 25 characters max.

Layout

Placement

Vertical jump links are place on the left side of content by default and aligned to the top edge. However, in situations where there is already and element on the left side like a menu, jump links can be placed on the right side of content.

Jump links on the left with gray blocks representing content in another column on the right. Three column layout with a menu or element on the left, content in the middle, and jump links on the right.

Mobile

On small screens, both vertical and horizontal jump links collapse into a disclosure which is always located above content. When the disclosure is expanded, jump links are displayed and any page content below is pushed down.

Two jump links screens shown in mobile viewports. The left has a collapsed disclosure with jump links inside. The right has an expanded disclosure with visible jump links inside the disclosure.

Behavior

Order of operations

When a page loads, both vertical and horizontal jump links are anchored to the top edge of content or a container before becoming sticky. There are a few things that can happen from here:

  • The first section on top is highlighted with a thick red border
  • When a user selects a jump link, they are moved down to their chosen section
  • The new active section is highlighted
  • When a user selects another jump link, they are moved up or down
  • When a user scrolls, active sections are highlighted as they pass by

Nested jump links are indented under the parent section. They are hidden by default and become visible when the parent section becomes active by a user clicking on it or scrolling to it. They can be individually selected, but only one level max is recommended.

Helpful tip

Only the vertical orientation can display nested jump links.

Two sets of jump links. The left shows the third jump link collapsed. The right shows the third jump link with its nested jump links under it.

Scrolling on backgrounds

If jump links are scrolling on top of different background or surface colors, the jump links container needs to have a background color to avoid color contrast issues. If jump links are scrolling on top of a uniform color, no background is needed. Follow these specs as well:

  • Use a background color that generally matches the color scheme of the rest of the page
  • The border radius must use --rh-border-radius-default token
  • Padding on all sides must use the --rh-space-lg token
Two sets of jump links. On the left, jump links on a gray background. On the right, sticky jump links scrolling between a gray and black rear background with a white background applied to the jump links.

Responsive design

Vertical

Vertical jump links can occupy a specific amount of space like a number of grid columns. However, longer text means more line breaks.

Two sets of jump links and content displayed over top of a 12 column grid. The top links are shown at desktop viewports and the jump link text doesn't wrap. The bottom jump links are shown at tablet viewports and the jump link text wraps 1-3 lines.

Horizontal

Horizontal jump links span the entire page width. However, if the container is not wide enough to display everything, overflow buttons will appear.

Three sets of horizontal jump links. The top jump links shown a a desktop viewport. The middle shows a tablet viewport without overflow or scroll arrows. The last jump links have overflow or scroll arrows to scroll horizontally.

Disclosure

To save space, both vertical and horizontal jump links collapse into a disclosure at specific screen sizes.

Learn more about the Disclosure element.

Orientation Collapse into disclosure
Vertical 991px and below
Horizontal 767px and below

Best practices

No title

Jump links with a custom title at the top

Write a custom title or uses the default which is “Jump to section”.

Jump links without a custom title at the top

Do not hide the title or else it might be confusing to users what this element does.

Long headings

A jump links title and a sole four word jump link

Write short headings so that short jump links are created.

Jump links where the third jump link is a sentence instead of a few words as the link

Be aware that long headings will create even longer jump links.

Two sets of jump links. The left jump links set has five items. The right has five outer items and two nested items under the third jump link.

Include a max of eight jump links or use nesting.

A set of jump links with 22 different jump links.

Don't overload jump links with too many parent section links.

© 2021-2025 Red Hat, Inc. Deploys by Netlify