Add FCollapsible.axis for horizontal collapsing#1066
Merged
Conversation
* Add `FCollapsible.axis` (defaults to `Axis.vertical`); horizontal collapses the child's width instead of its height. * Add golden (`half expanded horizontal`) and behavioral coverage. * Surface `axis` in the usage snippet and update the changelog. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
Documentation Preview
You're seeing this because the docs/samples were updated. |
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.
Describe the changes
Closes #974 (the axis half of the request).
FCollapsible.axis(defaults toAxis.vertical).Axis.horizontalcollapses the child along its width instead of its height; the render box and clipper now branch on the axis.Axis.verticaldefault is byte-identical to the previous hardcoded behavior, soFAccordionItemandFSidebarItemare unaffected.half expanded horizontalgolden and rename the verticalhalf expandedgolden tohalf-expanded-vertical(thefully expanded/fully collapsedcases render identically on both axes, so they stay unqualified).axisin the usage snippet and add aCHANGELOG.mdentry.half-expanded-{vertical,horizontal}.pngbaselines will be produced by the golden CI workflow when it resumes.Checklist
🤖 Generated with Claude Code