Skip to content

component: standalone loading spinner / indicator #82

Description

@claude

Context

Same migration as #81 (loewen-digital/sveltekit-ai-starter-template#4) — replacing a bespoke design system with @webtides/element-library.

button's loading state already renders an internal spinner part, which covers in-button loading. We're missing a standalone loading indicator for section/page-level loading states (e.g. "loading this panel's data"), independent of any button.

Request

  • Element: el-spinner (or el-loading-indicator)
  • Attribute: size (small | medium | large, mirroring button's size vocabulary)
  • Presentational (role="status" with a visually-hidden label, or an aria-label attribute) so it's announced sensibly to assistive tech
  • Reads --el-color-accent and a shared --el-duration-md/--el-ease so it matches a themed page with no extra CSS

Bonus: if button's internal spinner could reuse this as a sub-component (via a part or shared internal helper), that'd keep the two visually in sync automatically.

Workaround

Keeping our existing bespoke Spinner.svelte (a small inline SVG) in the template for now, marked as an UPSTREAM workaround referencing this issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions