Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Added color prop to ProgressStep #2750

Closed
wants to merge 5 commits into from
Closed

Added color prop to ProgressStep #2750

wants to merge 5 commits into from

Conversation

qubis741
Copy link
Contributor

@qubis741 qubis741 commented Sep 7, 2023

[22.3.0] - 2023-09-07

Added

ProgressStep: color prop

Needed in https://teamleader.atlassian.net/browse/FRAF-2386

Design

https://www.figma.com/file/U6nkw6FKrk92id8ZKOQDPR/Multiple-deal-pipelines?type=design&node-id=4118-134022&mode=design&t=OeCOZnHNiovtbaMB-0

Screenshot

image

Manual check

  • open ui/src/components/progressTracker/progressTracker.stories.tsx
  • play with color prop on line 47 -> only that step changes its color
  • progress tracker works as before

@qubis741 qubis741 self-assigned this Sep 7, 2023
@qubis741 qubis741 requested review from a team, pidera, JordyDeGroeve, gdegirmenci, eniskraasniqi1 and JorenSaeyTL and removed request for a team September 7, 2023 11:22
@qubis741 qubis741 changed the title Fraf 2386 Added color prop to ProgressStep Sep 7, 2023
eniskraasniqi1
eniskraasniqi1 previously approved these changes Sep 7, 2023
Copy link
Contributor

@eniskraasniqi1 eniskraasniqi1 left a comment

Choose a reason for hiding this comment

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

Checked ✅

@@ -24,13 +27,17 @@ const ProgressStep: GenericComponent<ProgressStepProps> = ({
meta,
active = false,
completed = false,
color,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can't the default color be mint and use the color prop as the index for the theme instead of colorClassName?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no, because if ProgressTracker is ruby, then ProgressStep by default is mint and thats not what we want

@qubis741 qubis741 added the hold label Sep 8, 2023
@qubis741 qubis741 closed this Sep 8, 2023
@qubis741 qubis741 deleted the FRAF-2386 branch September 8, 2023 08:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants