Repository navigation
docs(core): correct Carousel doc drift and translate the Chinese usage block - #3532
Merged
Merged
Conversation
|
@arham766 is attempting to deploy a commit to the Meta Open Source Team on Vercel. A member of the Team first needs to authorize it. |
arham766
force-pushed
the
docs/carousel-accuracy
branch
from
July 4, 2026 05:08
7059f45 to
57efb52
Compare
arham766
marked this pull request as ready for review
July 4, 2026 05:08
arham766
requested review from
cixzhang,
ejhammond,
imdreamrunner,
josephfarina,
marie-lucas,
nynexman4464 and
thedjpetersen
as code owners
July 4, 2026 05:08
arham766
force-pushed
the
docs/carousel-accuracy
branch
2 times, most recently
from
July 4, 2026 05:40
bd2aa6a to
418d4da
Compare
The anatomy claimed a scroll-driven scale effect that does not exist, and hasButtons was described as hover-triggered and desktop-only. The buttons are actually driven by per-edge overflow: each appears when the content can scroll in that direction. Descriptions now mirror the component JSDoc. The docsZh usage block was still in English; translate it in the same style as the other component translations.
arham766
force-pushed
the
docs/carousel-accuracy
branch
from
July 4, 2026 07:41
418d4da to
fe96165
Compare
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
Follow-up to #3332 — while working on that PR I noticed three more spots where
Carousel.doc.mjshad drifted from the component:Carousel.tsx.hasButtonswas described as "on hover (desktop only)" in the anatomy, the props table, the zh translation, and the dense variant. The buttons are actually driven by per-edge overflow: each button appears when the content can scroll in that direction (see theoverflowStart/overflowEndwiring and the component JSDoc, which already says "when content is scrollable").docsZh.usageblock was still entirely in English; translated it in the same style as the other component translations (e.g. AvatarGroup).Test plan
astryx component Carousel --denseand--zhrender the corrected contentpnpm -F @astryxdesign/core exec vitest run --root ../.. packages/core/src/Carousel/Carousel.test.tsx— 7/7 passpnpm -F @astryxdesign/core run typecheck:docs— clean