Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested stepped tracker #3803

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open

Nested stepped tracker #3803

wants to merge 30 commits into from

Conversation

tomhazledine
Copy link
Contributor

@tomhazledine tomhazledine commented Jul 11, 2024

Closes #1869
Adds support for nesting steps in a vertical SteppedTracker.

Nesting is achieved via the depth prop on the TrackerStep component. When a step has nested children, the step icon will show an "in progress" icon when some of the children are completed, and a "completed" icon when all children are completed.

Screenshot 2024-08-16 at 11 36 34 Screenshot 2024-08-16 at 11 36 22

Copy link

changeset-bot bot commented Jul 11, 2024

🦋 Changeset detected

Latest commit: 1cc1e86

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@salt-ds/lab Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Jul 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
saltdesignsystem ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 23, 2024 11:38am

Copy link
Contributor

@origami-z origami-z left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If our stage holder is happen with this, we should merge this in and ask them to use it in lab.

level vs depth is the only doubt for me

/**
* The nesting depth of the TrackerStep
*/
depth?: Depth;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure whether this is compared with NavigationItem's level.

Worth to point out this will take no effect when horizontal?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

level makes sense (and I'm always in favour of consistency)

.saltTrackerStepWrapper-nested-group[aria-hidden="true"] {
grid-template-rows: 0fr;
opacity: 0;
visibility: hidden;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure whether hidden on HTML will solve this?

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.

Stepped Tracker sub-step support
2 participants