[New] - progress bar component #1407
Replies: 7 comments 5 replies
-
Thanks for submitting @jaynguyenslng, the suggested template above looks good 👍 Just a couple of additional questions / suggestions from me:
Any questions please give me a shout 🙂 |
Beta Was this translation helpful? Give feedback.
-
After a discussion with @jaynguyenslng, we proposed that we could do the following: From the designs, it looks like we need two independent components: Example API:
To make it a bit easier to use in the templates,
A possible extra input could be
|
Beta Was this translation helpful? Give feedback.
-
Here are a few thoughts/suggestions on accessibility:
Just one more thought, I wonder if the tag available in Canopy should be called |
Beta Was this translation helpful? Give feedback.
-
Good shout @ashB100! If it not a part of the canopy component, but a part of a form journey then we can use it like this
Else, if it's a part of the
|
Beta Was this translation helpful? Give feedback.
-
Looks good - only comment from me is that the progress indicator was intended to either allow:
|
Beta Was this translation helpful? Give feedback.
-
Here is what I got so far, minor change from what discussed above. I tried to be as much as modular as possible with the components. At the end, I created 3 basic components and 1 composite component. <lg-progress-journey [max]="max" [value]="value" [showAsPercentage]="showAsPercentage" [showProgressBar]="showProgressBar">
Journey title
</lg-progress-journey>
<lg-progress-bar [max]="max" [value]="value"></lg-progress-bar>
<lg-progress-header>
Step Heading
</lg-progress-header> For the wrapper component, it provides a single html tag that make it easy to use. <lg-progress-indicator [max]="max" [value]="value" [name]="name" [showAsPercentage]="showAsPercentage" [showProgressBar]="showProgressBar">
Step heading
</lg-progress-indicator> @owensgit let's me know if it follows the correct practice, especially with the naming convention - if it's not am happy to correct it :D |
Beta Was this translation helpful? Give feedback.
-
Since I also worked on journeys, I'm wondering - isn't the Journey title the main header? 🤔 |
Beta Was this translation helpful? Give feedback.
-
For the form journey component used in MYA and PI, there isn't a progress bar component on canopy.
Design for progress indicator:
https://www.figma.com/design/hJUsMXF6fNJVoa57SJuMpX/Components?node-id=2977-15323&t=V4oXRSxAMxahdcIk-0
Hence, I'd like to add the progress bar as the sub component under the form component
Suggest template:
This would serve as a basic block either as a part of the progress indicator component or the complete form journey component.
Beta Was this translation helpful? Give feedback.
All reactions