Skip to content

Feature: Add a loading state for Toggle component - #5202

Open
jorycunningham wants to merge 1 commit into
cloudscape-design:mainfrom
jorycunningham:toggle-disabled-behavior
Open

jorycunningham wants to merge 1 commit into
cloudscape-design:mainfrom
jorycunningham:toggle-disabled-behavior

Conversation

@jorycunningham

@jorycunningham jorycunningham commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Description

This adds a loading state to toggle for situations where a toggle triggers an async event that needs to complete before the toggle can be used again.

This resolves a situation where some customers were simply making the Toggle disabled while loading, which caused a loss of focus that is not compatible with accessibility best practices.

Note: This has not been reviewed by Cloudscape Design and should be!

Cloudscape toggle is a lading state. The toggle greys out and has a circular spinner in the circular handle

How has this been tested?

Tested in-browser using the demo pages, which now feature this variant.

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • X Changes include appropriate documentation updates._
  • X Changes are backward-compatible if not indicated, see CONTRIBUTING.md._
  • X Changes do not include unsupported browser features, see CONTRIBUTING.md._
  • X Changes were manually tested for accessibility, see accessibility guidelines._

Security

Testing

  • X Changes are covered with new/existing unit tests?_
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@jorycunningham
jorycunningham requested a review from a team as a code owner October 28, 2026 18:42
@jorycunningham
jorycunningham requested review from SpyZzey and removed request for a team October 28, 2026 18:42

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant