Repository navigation
Add a start slot to SheetFooter - #224
Open
andrewhuhh wants to merge 2 commits into
Open
andrewhuhh wants to merge 2 commits into
andrewhuhh wants to merge 2 commits into
Conversation
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
💬 Discussion in Slack: #pr-review-cipher-224-add-a-start-slot-to-sheetfooter Posted by Review Police — reviews, comments, new commits, and CI failures will stream into this channel. |
[Low impact] The PR appears safe to merge.
|
…teps Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This branch has not been deployed
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.
SheetFooterjustifies its children to the end and never stretches them. A multi-step sheet that needs Back at the start had to wrap everything in its own row and force that row to fill the footer (style={{ flex: 1 }}withjustify="between"), and any footer that forgot the override pushed Back to the end with the other actions.SheetFooternow takesstart. Content passed to it is held at the start edge, and the children stay at the end. When the footer is too narrow for both, the end actions wrap to a second line, still aligned to the end. A falsystartrenders nothing, sostart={step > 1 && <Back />}works without a placeholder.The new "Back at the start of the footer" example on the sheet page is a two-step sheet. Here it is at 390px, on step two: