Skip to content

feat(skeleton): forward a loadingLabel through the composed skeletons - #4

Merged
inureyes merged 1 commit into
mainfrom
feat/skeleton-loading-label
Aug 5, 2026
Merged

feat(skeleton): forward a loadingLabel through the composed skeletons#4
inureyes merged 1 commit into
mainfrom
feat/skeleton-loading-label

Conversation

@inureyes

@inureyes inureyes commented Aug 5, 2026

Copy link
Copy Markdown
Member

What

SkeletonCard, SkeletonText and SkeletonRow take a loadingLabel and forward it to every Skeleton they render.

Skeleton has always taken its accessible name as a prop with an English default, which is how a translated consumer supplies its own. The composed skeletons render Skeletons themselves and offered no way to pass one through, so a card's nine nested skeletons announced "Loading" however well the consumer was translated, and nothing in the consumer's code could change it.

Left undefined, the inner Skeleton falls back to its own default, so a consumer that does not pass one sees no change.

How it surfaced

The same way the stylesheets and the illustrations did: a consumer's migration reached the boundary and found there was no way across. The product being migrated resolves this label from its locale bundle today, and moving to the package would have quietly dropped it for every nested skeleton.

Verification

pnpm run verify green. Release as 0.1.0-alpha.4.

`Skeleton` takes its accessible name as a prop with an English default, which
is how a translated consumer supplies its own. `SkeletonCard`, `SkeletonText`
and `SkeletonRow` render Skeletons themselves and had no way to pass one
through, so a card's nine nested skeletons announced "Loading" however well
the consumer was translated, with nothing in its code able to change that.

Each now takes `loadingLabel` and forwards it. Left undefined, the inner
Skeleton falls back to its own default, so nothing changes for a consumer that
does not pass one.
@inureyes
inureyes merged commit 31d9070 into main Aug 5, 2026
3 checks passed
@inureyes
inureyes deleted the feat/skeleton-loading-label branch August 5, 2026 15:27
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