-
Notifications
You must be signed in to change notification settings - Fork 15
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
fix: styles update #2126
fix: styles update #2126
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm good with the style / logic changes here, with the exception of the Tooltip
component which really needs to be refactored, as we keep putting more and more props in it, and it's really not sustainable at this point.
@@ -11,6 +11,7 @@ const displayName = 'Extensions.Tooltip'; | |||
const Tooltip: FC<PropsWithChildren<TooltipProps>> = ({ | |||
children, | |||
tooltipContent, | |||
tooltipStyle, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not the right approach here, as we are already passing in a className
prop, that just sets classes on the wrapper. Plus we have isSuccess
and isFullWidthContent
which are just switches for yet more styles
The solution here is to refactor Tooltip
to accept either themes, or the className
prop to be more configurable and account for all the places we need to customize styles.
Otherwise, we'll just end up jamming in various props when we need to customize more things (like the arrow color for example)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't make it work using className, it had to be done by styles.
src/components/v5/common/ActionSidebar/partials/Motions/steps/OutcomeStep/hooks.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @joanna-pagepro - thanks for picking up my issue and great work so far.
A couple of pickups.
- The Voting widget has empty space at the top
![image](https://private-user-images.githubusercontent.com/82127904/320412494-97e6b371-7b93-470a-b9f0-e45e14bf4e2d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTY1ODksIm5iZiI6MTczOTI1NjI4OSwicGF0aCI6Ii84MjEyNzkwNC8zMjA0MTI0OTQtOTdlNmIzNzEtN2I5My00NzBhLWI5ZjAtZTQ1ZTE0YmY0ZTJkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDA2NDQ0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVlYmQzMWNiMmFjMmQ0MjMwM2M3MzNlNzgwMWZhZjcwZTdmODMzM2M3NmM4OWUyZDZlNzhhY2NjNWY0ZTNkZWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.sQx5ovjJJ-OKK3dt4YdeDK_0NKBny0Qz8XJ6UZdw94c)
- The percentage font is wrong in the outcome widget - see Figma below.
![image](https://private-user-images.githubusercontent.com/82127904/320413507-a41b0d34-06bf-455d-89e9-b9e71bae0870.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTY1ODksIm5iZiI6MTczOTI1NjI4OSwicGF0aCI6Ii84MjEyNzkwNC8zMjA0MTM1MDctYTQxYjBkMzQtMDZiZi00NTVkLTg5ZTktYjllNzFiYWUwODcwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDA2NDQ0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTViMjQ1MWZiMjY1ZDI2NzI1ODFlNzRiYmQ5ZDYzMjI0NjJmZjhiNDE4MGMzZjZkMTUxYWRjZDU5YTZiNWYzN2ImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.znmCTSqFvYBmgrKHCVZFkpBt7UkLfnNKaCDHMvpBlvo)
it's also impacting this component globally as you can see the dashboard font has also changed in the percentage bar -
![image](https://private-user-images.githubusercontent.com/82127904/320413763-1a9d7caa-5ee3-48de-ac69-1d7c74e6ddd4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTY1ODksIm5iZiI6MTczOTI1NjI4OSwicGF0aCI6Ii84MjEyNzkwNC8zMjA0MTM3NjMtMWE5ZDdjYWEtNWVlMy00OGRlLWFjNjktMWQ3Yzc0ZTZkZGQ0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDA2NDQ0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFmMDc0Nzk4OTU0NmU3MDBlYjIwYmE0N2E4MGU4NzBhNzQyOGFkM2YwNmNmZWQ5ZjVlMzlmNzM1ZmEwZjIxM2QmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.XxafkfWc9yXAKIDaYVBtGQ4etb2fasaKUAV4UYPfbq0)
- The gray background of the percentage bar is wrong across all widgets
![image](https://private-user-images.githubusercontent.com/82127904/320414086-1bbdddd9-fff8-4185-9fb5-569fd1d93e49.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTY1ODksIm5iZiI6MTczOTI1NjI4OSwicGF0aCI6Ii84MjEyNzkwNC8zMjA0MTQwODYtMWJiZGRkZDktZmZmOC00MTg1LTlmYjUtNTY5ZmQxZDkzZTQ5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDA2NDQ0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA0YjY4OWM2YjE3MGZkM2Y3OTgwOTYwYzBmOTdmZTg3NTA0YzJjOTBiZGQwNDZmYzZhMmEzNmVmZjJkZDBkNTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ogCpF7sbPItNYg_ZepcvOIxy3UcbLpJXPWdxIVXFG70)
- There is added spacing in some widgets but not in others between the value and the % symbol.
Currently:
![image](https://private-user-images.githubusercontent.com/82127904/320414934-a375ba33-fa4b-4159-b5bd-339109194501.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTY1ODksIm5iZiI6MTczOTI1NjI4OSwicGF0aCI6Ii84MjEyNzkwNC8zMjA0MTQ5MzQtYTM3NWJhMzMtZmE0Yi00MTU5LWI1YmQtMzM5MTA5MTk0NTAxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDA2NDQ0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ0MjQ1MWRhZGM1MDRlZmExOTBiNDE0NTE4N2Y0NTgzMTFiNzE2YTFiMzllNjIyNDUyNDZlYzAyMjgyMjAwNGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.qL0w3fzrQmGfUobZp6U8y1ZXQRfCVxS_A_PtweNDcLs)
![image](https://private-user-images.githubusercontent.com/82127904/320415052-171318a3-6b1a-4402-b448-b04d5ec4013b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTY1ODksIm5iZiI6MTczOTI1NjI4OSwicGF0aCI6Ii84MjEyNzkwNC8zMjA0MTUwNTItMTcxMzE4YTMtNmIxYS00NDAyLWI0NDgtYjA0ZDVlYzQwMTNiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDA2NDQ0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFkMTQwZWI1ZDVhZWE0Nzg1ZGNlMDUyMGY4MzgxMzE1Yjg5YTFhNWM0OTllY2EwMmY3OTYwOTgxOTRlOWVmMGEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.j8nhhMcBqqWn734kDVJBEOj8VTU1OteArTvRX9mq6zw)
- In the case where there are little users showing in the outcome widget, can we fill the empty space with the progress bar.
So currently, there is extra space to the right of the avatar
However, in Figma the avatars sit on the right and the progress bar fills the space.
Link to example: https://www.figma.com/file/l1dOM5qiQYwF0ElvKDqqjg/Design-System---Colony-v3?type=design&node-id=3134-9308&mode=design&t=fui5vBndDT4Ds1kj-4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the changes! Left a small comment regarding the code, plus I still see that some of Mel's issues are still alive and kicking. Dunno if they are being handled separately.
src/components/v5/common/ActionSidebar/partials/Motions/steps/OutcomeStep/hooks.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @joanna-pagepro / @CzarekDryl,
Thanks for working on my feedback.
To clarify, there are needs to be two variations of the progress bar component with different % font sizes.
-
Uses the extra small font and is featured at the top of motion widgets. Marked in green.
-
Uses the small font and is used globally outside of motions in places like the dashboard objective widgets and in the main content of the motion widgets.
![image](https://private-user-images.githubusercontent.com/82127904/320810384-27bbccda-8d14-468c-87b5-a503061cc8b2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTY1ODksIm5iZiI6MTczOTI1NjI4OSwicGF0aCI6Ii84MjEyNzkwNC8zMjA4MTAzODQtMjdiYmNjZGEtOGQxNC00NjhjLTg3YjUtYTUwMzA2MWNjOGIyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDA2NDQ0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMxNDdiMWY3ZDgyNmNhZjgyYWIxYzNkZGVmOTk3ZGJkZjEyODgyMzg3OTRjODMxNTFjNDRmM2RmMTc2Njg4ZTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.UbSfX_bY9Ep_X65zVZHbG9fofUKSOSUH_7ZZa9Ysv_k)
Currently, these keep being changed back and forth because when a change is requested when they need different fonts to match the context and placement.
This needs to be resolved across the top of all motion widgets where the percentage, vote numbers, reveal numbers etc is shown etc.
- There is a padding issue above the main CTA inside the vote widget once a vote has been placed.
![image](https://private-user-images.githubusercontent.com/82127904/320811749-559dfbc9-5b90-42fa-b1ec-dcd46e9d284d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTY1ODksIm5iZiI6MTczOTI1NjI4OSwicGF0aCI6Ii84MjEyNzkwNC8zMjA4MTE3NDktNTU5ZGZiYzktNWI5MC00MmZhLWIxZWMtZGNkNDZlOWQyODRkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDA2NDQ0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ5M2RmNDQ0NzhmNjAzNTIzODQ4MDBjYzdhYmFkZmY3NWY2MTRkYWFiMGE0ZmE0OWYxODRiNTc0Y2MwMDUwNjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.OmWtsBLPlZCwD5ADto8pIylTU0tmmKse2hnDJW1xqAU)
eedc0f6
to
b1b53b6
Compare
@ArmandoGraterol @melyndav Now everything should be fine |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👌 Thank you for the changes!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @CzarekDryl thanks for the further changes. Everything is looking correct now with the % font sizes.
However, the issue in the voting widget has popped up again, with extra space showing at the top of the widget.
![image](https://private-user-images.githubusercontent.com/82127904/321575623-46bbd827-fa9d-4ab6-b3f4-fe50957f50d8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTY1ODksIm5iZiI6MTczOTI1NjI4OSwicGF0aCI6Ii84MjEyNzkwNC8zMjE1NzU2MjMtNDZiYmQ4MjctZmE5ZC00YWI2LWIzZjQtZmU1MDk1N2Y1MGQ4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDA2NDQ0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNmMDE3NTI3NzQyZDRlYmQzZjgwMzYzNzMzZTRmMzYxYTMzMDE3YTMzZjJkODZhMThhYjhkOTEyMjQyM2M3NDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.B0BEuI5IwQni_CALkpaqtVNMo7_nQ6sIBASERLSBFkA)
72813b9
to
21043d2
Compare
@melyndav Margin fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @CzarekDryl thanks again for fixing the issues.
- On mobile, all progress bars in the top information section should be full width of th widget and not match the text.
Here below, the progress bar/voting numbers in the reveal step isn't full width.
![image](https://private-user-images.githubusercontent.com/82127904/322403293-dc2217a1-cdd3-43ba-a913-04a6fe9fa1fb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTY1ODksIm5iZiI6MTczOTI1NjI4OSwicGF0aCI6Ii84MjEyNzkwNC8zMjI0MDMyOTMtZGMyMjE3YTEtY2RkMy00M2JhLWE5MTMtMDRhNmZlOWZhMWZiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDA2NDQ0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJjMGQ0MzEzNDdiODBlODQ4YjYwNDlkZTg2ZTQzNmQwNDdhN2M2ZTQyOTE1Nzk1MTNiNGI3Zjg0OWRmOWUwMWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.LUSBp3Gp7Y62WRuWegLS0r1NnTodQ_ka6xFKVtm_EE4)
But in the voting widget in the previous step is full width
- On mobile, the team reputation percentage data doesn't show in the widget
![image](https://private-user-images.githubusercontent.com/82127904/322404092-fe04e8a3-e098-4a91-8d5d-332437e6bed1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTY1ODksIm5iZiI6MTczOTI1NjI4OSwicGF0aCI6Ii84MjEyNzkwNC8zMjI0MDQwOTItZmUwNGU4YTMtZTA5OC00YTkxLThkNWQtMzMyNDM3ZTZiZWQxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDA2NDQ0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTEzZGZkOWIxNTM0MTY1NTkzZjQ2YWE3ZDJhOTllMzM1MjkwZmRiYmJhNWQ3Njc2MDFiMTg5NWExNzZlZTQ5ZTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.tw4vll7uwJEZQvcCz4N7nKAKUeSMeHe9N1yLa6HftRA)
On the desktop version you data see it visible
- On mobile again, when I confirmed the reveal stage it moved to the finalise step, but the top navigation doesn't move along with it to show the active step.
![image](https://private-user-images.githubusercontent.com/82127904/322404574-be5113bc-6687-4218-8d41-1ec1064cae0c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTY1ODksIm5iZiI6MTczOTI1NjI4OSwicGF0aCI6Ii84MjEyNzkwNC8zMjI0MDQ1NzQtYmU1MTEzYmMtNjY4Ny00MjE4LThkNDEtMWVjMTA2NGNhZTBjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDA2NDQ0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNiNDkyMjBjZDU2MDAyOWRkMjg3ZWVjMGIzY2Y5YjBmMmM2ZDg4YjkzNjA2OTEwOTM1YzU0OGNmMWE0YmI4ZjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.MM6cKm1_xTIgK5_eLSBvxz11GlQoudmWaPmW_nNLCmE)
@melyndav Please check it once again :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! I've noticed the issues Sam and Mel pointed out are fixed for me. Thank you for the changes
if (!inView) { | ||
setHiddenItem(name); | ||
} else { | ||
setHiddenItem(undefined); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick but we could make this simpler by doing this: setHiddenItem(!inView ? name : undefined)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates on this.
Timer padding is looking better on both mobile and desktop.
![Screenshot 2024-04-26 at 15 21 01](https://private-user-images.githubusercontent.com/34915414/326011670-e76c0485-726e-43ba-b8a2-e9237dc9998e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTY1ODksIm5iZiI6MTczOTI1NjI4OSwicGF0aCI6Ii8zNDkxNTQxNC8zMjYwMTE2NzAtZTc2YzA0ODUtNzI2ZS00M2JhLWI4YTItZTkyMzdkYzk5OThlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDA2NDQ0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZhZmNhYTIxMWRjNWIxMTdkODMwM2YxYWM5ZTFjMGYxNzdkMzIyNTM4OGJhYzE5MzE5MzNlZDk2M2RkNTk0MTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.I_mYsxRNkyvA7rM9qqU0nHtFlB1KHurG_opggOrT9YA)
And tooltips on mobile are working fine too:
![Screenshot 2024-04-26 at 15 21 11](https://private-user-images.githubusercontent.com/34915414/326011792-62797568-df9c-4847-b119-12ebb180fce7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTY1ODksIm5iZiI6MTczOTI1NjI4OSwicGF0aCI6Ii8zNDkxNTQxNC8zMjYwMTE3OTItNjI3OTc1NjgtZGY5Yy00ODQ3LWIxMTktMTJlYmIxODBmY2U3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDA2NDQ0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc4ZjA0MTc3ZjBkMzQ4YTdmOGNkYmU2Y2I0NGM2YTc1MjY1MTA3MTdlMGQwODEyYTczM2Q4NmU3ZWQxOTJlNTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.3g9Vt1DQPrF164TNMR9rfW_goc6cAqhXUROyqKxSGMw)
Only one final issue I can find. On certain breakpoints, when you reveal your vote, the 'finalize' pill won't be visible and nor will the arrows to scroll to it. If the 'active' pill is out of view, it should automatically scroll to that pill when that step becomes active.
Screen.Recording.2024-04-26.at.15.26.22.mov
cfa5fab
to
6767240
Compare
@iamsamgibbs I can't reproduce this bug with no arrows on mobile. |
I think it specifically happens when revealing your vote as the additional pill for supported / rejected gets added. |
6767240
to
862106d
Compare
@iamsamgibbs This should be fixed now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me now! Thanks for the fix!
Screen.Recording.2024-05-29.at.19.36.49.mov
9eea0e7
to
b0b5194
Compare
b0b5194
to
b67918d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there! Looking good, just noticed some things than can be improved.
When these are resolved, I think we are good to go!
src/components/v5/shared/Stepper/partials/StepperButton/StepperButton.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the changes, code looks good to me, styles too, nice work on this PR, now 🤞 we get it over the finish line!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CzarekDryl this one is a good to go from my end!! I do not see any more issues. I know this had been a very long process, but great work throughout it! 💯
Description
There are a number of UI issues occurring across various motion widgets for all responsive sizing including desktop and mobile. These issues should be resolved to ensure they match Figma SOT and create a consistent and strong level of UX across the CDapp.
The issues should be tested and resolved across all responsive sizes unless stated.
Testing
Resolves #2062