Bar loaders show the progression of a system operation: downloading, uploading, processing, etc., in a visual way. They can represent either determinate or indeterminate progress.
Determinate is the default usage for the bar loader, but it can be determinate or indeterminate.
Bar loaders come in two different sizes: large and small. Use the large version when there is a single loading operation displayed prominently on the page. Use the small version when there are multiple loading operations happening at the same time in a more confined space (tables, cards, etc.)
Bar loaders can include a label when necessary. This label gives context about the operation being performed. When the label is displayed, the associated percentage value is also displayed. Both items are placed above the track.
When a loader needs to be placed on top of a colored background, use the over background loader. This loader uses a white opaque color no matterthe background. Make sure the background offers enough contrast for the loader to be legible.
When the label is too long for the available horizontal space, it wraps to form another line. The value is always shown in full and never wraps or truncates.
Both bar and circle loaders can show either determinate or indeterminate progress. The given area should help determine if a bar or circle is best for that space. Bar loaders are preferred in vertically narrow areas (tables, cards, etc.) Use a circle loader for full page loading or in very small areas. Use a bar loader in a loader dialog.
Use the built-in style for showing a label associated with the operation. The built-in style always has a left aligned label and a right aligned percentage value above the track. The label should be in sentence case.
Do use the built-in label style.
For RTL (right-to-left) languages, the layout of the bar loader is mirrored for both determinate and indeterminate options. The label is right-aligned, the value is left-aligned, and the fill progresses from right to left. Keep in mind that the placement of the percent sign differs depending on the locale.
|Dec 12, 2019||5.1.1|
|Aug 22, 2019||5.1.0|
|Apr 19, 2019||5.0.0|
Includes all interactive states that are applicable (hover, down, focus, keyboard focus, disabled).
Includes relevant options (variant, style, size, orientation, optional iconography, decorations, selection, error state, etc.)
Works properly across all four color themes (lightest, light, dark, darkest).
Includes a desktop scale (UWP, macOS, web desktop) and a mobile scale (iOS, Android, web mobile).
Includes guidelines for layout (wrapping, truncation, overflow), animation, interactions, etc.
Includes a list of dos and don’ts that highlight best practices and common mistakes.
Follows WCAG 2.0 standards for contrast (AA).
Works properly across various locales and includes guidelines for bi-directionality (RTL).
Follows WCAG 2.0 standards for keyboard accessibility guidelines and includes a description of the keyboard interactions.
Includes a downloadable XD file that has been generated by code and shows multiple variations, states, color themes, and scales.
All design attributes (color, typography, layout, animation, etc.) are included in Spectrum DNA.