Generic selectors

Exact matches only

Search in title

Search in content

Post Type Selectors

Scrollbar

The Scrollbar component helps users navigate scrollable content by indicating their position within a viewing window

scrollbar
  • Overview
  • Specs
  • Guidelines

Component

The Scrollbar component is a fundamental element of the user interface design that enhances the user experience by providing visual feedback and control over scrollable content.

It serves as a navigational help within interfaces where content extends beyond the visible viewport, allowing users to seamlessly explore and interact with extensive datasets, documents, or web pages.

scrollbar_anatomy
Scrollbar anatomy

A: Horizontal Variation

B: Vetical Variation

Scrollbar_selectbox
Scrollbar inside a selectbox

Used for:

Selectbox

To give the user access to additional information within the selectboxes, a vertical Scrollbar is used;

Modal

To give the user access to additional information inside modals, a vertical Scrollbar is used. For forms applied inside modals, an horizontal Scrollbar is used;

Flyout

When there is a form or a data selection within a flyout, which exceeds the height of the component, a Scrollbar is used to navigate;

Sidebar

As it is the case with th flyout, when the sidebar exceeds the vertical space available, a Scrollbar appears;

Don’t use for:

Fixed content size

When the content within a viewport is static and does not exceed the available space, Scrollbars may be unnecessary and could create visual clutter;

Mobile-First design

In interfaces designed primarily for mobile devices with limited screen space, using Scrollbars may not be ideal as it can occupy valuable space and detract from the overall user experience;

Gesture-Based navigation

In touch-based interfaces where users primarily navigate through gestures, such as swiping or tapping, relying solely on Scrollbars may not align with user expectations and could introduce unnecessary complexity;

Custom navigation solutions

In interfaces where custom navigation solutions, such as infinite scrolling, pagination, or tabbed browsing, are employed to manage content visibility and accessibility, traditional Scrollbars may not be needed or could conflict with the established navigation patterns.

No_Scrollbar_selectbox
No Scrollbar inside a selectbox with limited data

Demo

Access the Figma file and inspect the element using Dev Mode.

Scrollbar_demo
Scrollbar at Figma

Last Update

Current_Scrollbar
Current version of the Scrollbar
  • New component added to the design system;

Related

Selectbox

Select Box

The Select Box component allows users to make selections from a predetermined list of options …

Variations

Vertical

Enabled
.enabled {
  rotation: 0º;
  color: var(--grey-6);
}
Hover
.hover {
  rotation: 0º;
  color: var(--grey-7);
}
Drag
.drag {
  rotation: 0º;
  color: var(--grey-8);
}

Horizontal

Enabled
.enabled {
  rotation: 90º;
  color: var(--grey-6);
}
Hover
.hover {
  rotation: 90º;
  color: var(--grey-7);
}
Drag
.drag {
  rotation: 90º;
  color: var(--grey-8);
}

Useful links

guidelines figma accent icon

Consult our Figma file to access our assets and inspect them in dev mode.

polygon-framework

This component is or will be provided by the Polygon framework. See its documentation to learn more.

This element is in line with the guidelines of the CDS (Cegid Design System). Find out more.

Behavior

Size

To let the user know how much content exists on the screen, the Scrollbar height/width can vary to give a more controllable experience to the user.
When the scroll is consequent, the Scrollbar tends to be shorter to give that impression. On the other hand, the longer the Scrollbar, the shorter the extra content to be viewed.

Flyout_Scroll
Scrollbar applied in a flyout

Dos & Dont’s

Apply a Scrollbar keeping in mind the size of the extra content;

Apply a scrollbar with different colors;


Case Studies

Building a new Seamless User Experience

Using a design system is like having a set of building blocks for creating digital products. It ensures everything looks …

Discover the exciting features

Compose Design brings a host of thrilling and transformative new features designed to enhance your experience. Dive into our latest …

Benefits of a Design System

A design system is a collection of reusable components and guidelines that ensure consistency and efficiency in building digital products …

Outline