Skip to content

Align loading states and documentation to the latest design guidance#1218

Open
MisRob wants to merge 1 commit intolearningequality:developfrom
MisRob:loading
Open

Align loading states and documentation to the latest design guidance#1218
MisRob wants to merge 1 commit intolearningequality:developfrom
MisRob:loading

Conversation

@MisRob
Copy link
Member

@MisRob MisRob commented Mar 16, 2026

Description

Documentation

  • Updates the Loaders documentation page to the latest design guidance (especially delay and minimum visible time values)
  • Centralizes general guidance on the Loaders page, while leaving component pages to focus only on Vue-specific usage. Removes duplicate or obsolete sections from other pages related to loading states.
  • Few smaller improvements on pages related to loading states

User experience

  • Align minimum visible time value for card skeleton loader with the guidance
  • Align KCircularLoader and KLinearLoader delay value with the guidance (change from 1s delay to 300ms delay)
    • Since we very rarely use truthy delay (search results), likely due to 1s being to long, impact will be minimal. I only see 3 places (here, here, and here) that have truthy value.

Issue addressed

Based on past conversations with designers & recent fine-tuning loading state with Tomiwa during work on Studio. While delay and minimum visible time values may change, we've at least arrived to values that felt good enough as a universal guidance for majority of our use-cases.

However it only addresses KDS side. The idea is for future or refactored features to follow this guidance. To align all previously existing places fully, we'd need to make further updates in Kolibri.

Changelog

  • Description: Align minimum visible time value for card skeleton loader with the design guidance

  • Products impact: ux

  • Addresses: -

  • Components: KCardGrid, KCard

  • Breaking: no

  • Impacts a11y: -

  • Guidance: -

  • Description: Align delay value for KCircularLoader and KLinearLoader with the design guidance

  • Products impact: ux

  • Addresses: -

  • Components: KCircularLoader, KLinearLoader`

  • Breaking: no

  • Impacts a11y: -

  • Guidance: -

  • Description: Updates the Loaders documentation page to the latest design guidance. Centralizes general guidance on the Loaders page, while leaving component pages to focus only on Vue-specific usage. Removes duplicate or obsolete sections from other pages related to loading states.

  • Products impact: documentation

  • Addresses: -

  • Components: Loaders page, KCircularLoader, KLinearLoader , useKShow, KCardGrid, KCard

  • Breaking: no

  • Impacts a11y: -

  • Guidance: -

Steps to test

Preview affected places at the following pages:

@github-actions
Copy link
Contributor

github-actions bot commented Mar 16, 2026

Percy Visual Test Results

Percy Dashboard: View Detailed Report

Environment:

  • Node.js Version: 18.x
  • OS: Ubuntu-latest

Instructions for Reviewers:

  • Click on the Percy Dashboard link to view detailed visual diffs.
  • Review the visual changes highlighted in the report.
  • Approve or request changes based on the visual differences.

// https://design-system.learningequality.org/loaders
const LOADING_DELAY = 300;
const MIN_LOADING_TIME = 300;
const MIN_LOADING_TIME = 400;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The previous 300ms wasn't intentional here ~ in one of my previous PRs I intended to align it with the guidance that I was later going to introduce in this PR, but made a mistake.

@MisRob MisRob marked this pull request as ready for review March 16, 2026 12:42
@MisRob MisRob added the TODO: needs review Waiting for review label Mar 16, 2026
to the latest design guidance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

TODO: needs review Waiting for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant