[Composable] Skeleton

Overview

The skeleton item is a specialized menu item that serves as a placeholder when the menu items are not yet loaded. It uses the 'S1' loading pattern for rendering fidelity.


Design

 
 

Box Model

 

This composable uses the following visual styles.

  • Left Region : 16x16px
    A left region is present to differentiate from other single region skeleton's and provides a visual appeal for a better look and feel.
  • Main Region: 16px Height, Width flexes with the content
    A standard region that represents menu item data.
  • Left / Main Region Corner radius: 1px
    Both the left and main region's rounded edges provide a softer and more inviting look and feel.
  • Region Color: neutral-080 (#EBEDF0)
    Both regions maintain a neutral color fill to provide sufficient contrast over the background for proper presentation.
  • Background: neutral-000 (#FFFFFF)
    The background maintains a neutral color fill to provide sufficient contrast with the foreground content for proper presentation.
  • Margin / Padding: Left / Right 16px, Top / Bottom 8px
    This composable comes with pre-set spacing values to ensure correct spacing and consistent styling, which follow Dim Sum standards.
  • Min-Height: 32 RT
    Uses the standard menu styles.
  • Min-Width: Stretches to fit content
    The width stretches over the minimum size to fit the content as best possible.
  • Max-Width: Stretches to fit parent
    Uses the standard menu styles.
 

Responsive

Same as the standard menu item

 

States

StateDefault GraphicDefault Styling
Idle[vs standard idle]
background: neutral-000 (#FFFFFF)
skeleton: neutral-080 (#EBEDF0)
Focus[vs standard idle]
background: brand-200 (#EBF6FF)
border: 1px solid brand-500 (#1394E5)
Hover[vs standard idle]
background: brand-200 (#EBF6FF)
DisabledN/A (no required cases)N/A
Read-onlyN/A (no required cases)N/A
ErrorN/A (no required cases)N/A

Configurations

Not applicable


Use Cases

Original Scenario (Use Case)Dim Sum Version (Proposed Solution with DS Components)Scenario Description
Skeleton showing a skeleton loading pattern in an Activation Menu located in a Toolbar above a Data Table (using an overflow icon-only button)
 

Examples

Scenario GraphicScenario SolutionText Resize and Reflow (200%)Scenario Description
Skeleton Activation Menu uses the Skeleton 'S1' loading pattern for rendering fidelity.
 

Digital Accessibility

Same as the standard menu item


Variants

Not applicable


Usage Warnings

In the rare case where the menu items are progressively loaded and by the time the user interacts with the content of the menu, the items are not yet loaded, the skeleton item can be used to indicate that the menu (or the specific menu item) is loading.

The Dimsum team is not aware of valid scenario of usage for this, but it is available as part of the "skeleton" effort that is still being refined and not yet published.

While usage is not directly discouraged, we do encourage you to consult with Dimsum team regarding your scenario in case any a11y consideration needs to be taken into account.


Reference

Not applicable