Repository navigation
feat: add a SheetAside to MultiStep sheets - #421
Open
andrewhuhh wants to merge 3 commits into
Open
andrewhuhh wants to merge 3 commits into
andrewhuhh wants to merge 3 commits into
Conversation
MultiStep with variant="sheet" takes an aside ({ content, mainLabel, label? }) that renders a SheetAside: the title, media, description and badges move into it, and below the pane collapse width it becomes the Details tab. In a two-pane sheet, the main pane's subheader now sits below the narrow tabs, hides with the main pane while Details shows, and clears the close button when it opens the pane.
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge; no new actionable issues were found.
|
With aside set, the flow title moves into the aside pane, so a one-step flow now shows the step's heading and badges above its fields. The example gains a one-step case and moves to the end of the page. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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.
Adds a
detailsprop to MultiStep for the sheet presentation. It renders a SheetAside beside the steps, which suits flows that act on an existing record, such as rotating a database credential. The flow's title, media, description and badges move into that aside, and its content (usually a DataList) sits under them. Below the pane collapse width, the details pane becomes a Details tab next to a tab for the steps, labelled withmainLabel.The prop takes
{ content, mainLabel, label? }and is typed only forvariant="sheet". Dialogs, pages and sheet views reject it at compile time. There is one details pane for the whole flow, so the panes and tabs stay put between steps. To show step-specific details, rendercontentfrom the current step.It is named
detailsso it does not clash withlayout="aside"or the per-stepaside.Two-pane sheets had not been used with a subheader in the main pane, and MultiStep puts its step meter there. In the narrow layout the subheader now sits under the tabs and hides while Details is open, and in the wide layout it clears the close button. Existing sheets without a subheader look the same.
A new example, "Sheet aside", shows a record that has never been rotated, a typical one, and one with long values. I checked it open in a browser at desktop width and at 390px.