Repository navigation
[avatar] Remove fallback transition logic and premature image display - #4110
Merged
Merged
Conversation
commit: |
Bundle size report
Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
atomiks
force-pushed
the
codex/avatar-fallback-no-transition
branch
2 times, most recently
from
February 16, 2026 12:36
5877c30 to
2379287
Compare
atomiks
commented
Feb 16, 2026
Comment on lines
-77
to
-79
| export interface AvatarFallbackState extends AvatarRoot.State { | ||
| transitionStatus: TransitionStatus; | ||
| } |
Contributor
Author
There was a problem hiding this comment.
This was undocumented (in 1.2.0), should be safe to revert.
atomiks
marked this pull request as ready for review
February 16, 2026 12:40
Contributor
|
Automatic reviews are disabled for this repository. |
LukasTy
approved these changes
Feb 16, 2026
| }, [timeout, delay]); | ||
|
|
||
| const state: AvatarFallback.State = { | ||
| const state: AvatarRoot.State = { |
Member
There was a problem hiding this comment.
Suggested change
| const state: AvatarRoot.State = { | |
| const state: AvatarFallbackState = { |
atomiks
force-pushed
the
codex/avatar-fallback-no-transition
branch
from
February 16, 2026 12:49
2379287 to
d681182
Compare
atomiks
force-pushed
the
codex/avatar-fallback-no-transition
branch
from
February 16, 2026 12:58
d681182 to
1ef09fe
Compare
1 task done
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.
Setting visibility of the image to include
imageLoadingStatus === 'loading'causes the image to show prematurely. Additionally, transitioning the fallback component out is not particularly useful and regresses layout cases where the expectation is that only one is mounted at a time.Fixes #4109 (https://stackblitz.com/edit/sb1-urlzxstp?file=package.json,src%2FApp.tsx)
Image transition remains the same once it's loaded: https://deploy-preview-4110--base-ui.netlify.app/experiments/transition-attrs. If it hasn't been loaded yet (and not in the cache), it may not appear to play if its duration is short, as the image progressively loads in so it plays just before painting. For speed, this is likely preferable.