feat: cross-fade RecipientLoading skeleton into populated list (Closes #1285) - #1353
Open
waterWang wants to merge 1 commit into
Open
feat: cross-fade RecipientLoading skeleton into populated list (Closes #1285)#1353waterWang wants to merge 1 commit into
waterWang wants to merge 1 commit into
Conversation
Add a CSS content-fade-in animation that transitions the skeleton (RecipientLoading) into the populated RecipientStreams list. - Uses --transition-base (200ms ease-out) for the fade duration - Respects prefers-reduced-motion: no animation, instant swap - Applies to both RecipientLoading and RecipientStreams content - Does not delay the populated list becoming interactive Closes Fluxora-Org#1285
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a CSS cross-fade transition when
RecipientLoading(skeleton) resolves into the populatedRecipientStreamslist, replacing the current abrupt hard cut with a smooth visual transition.Changes
src/components/skeleton.css@keyframes content-fade-inthat transitions opacity from 0 to 1.content-fade-inutility class using--transition-base(200ms ease-out)prefers-reduced-motion: no animation, instant swapsrc/components/RecipientLoading.tsxcontent-fade-inclass to the skeleton wrapper for smooth appearancesrc/components/recipient/RecipientStreams.tsxcontent-fade-inclass to the populated content wrapperAccessibility
prefers-reduced-motiondisables the animation--transition-basedesign token, no new hardcoded durationsTesting
RecipientStreams.test.tsx: 7/7 tests passing