-
Notifications
You must be signed in to change notification settings - Fork 14
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: Style for onboarding flow #2516
base: master
Are you sure you want to change the base?
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.
Hey @mmioana congrats on getting started with your first PR.
The scope of the issue is to make the landing page, profile creation and colony creation flows responsive for mobile.
Currently, only desktop was built for these and they are not optimised for our mobile users. Tablet also needs to be considered as part of this scope.
In the issue you'll find a Figma link that shows the complete mobile flows and the landing page variations. Please let me know if you'd like a call to walk through what's needed for this issue. 👍
9bc521d
to
83ee976
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.
Hey again @mmioana nice start on this one! A big one to tackle.
Some feedback below to align the UI with the Figma designs and existing mobile interactions:
Landing page
- The padding between the 'Colony app' title and the 'Welcome to Colony' should match Figma.
![image](https://private-user-images.githubusercontent.com/82127904/339422107-f449396a-865d-4de2-a504-b0552a243978.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg3MTQ4OTgsIm5iZiI6MTcxODcxNDU5OCwicGF0aCI6Ii84MjEyNzkwNC8zMzk0MjIxMDctZjQ0OTM5NmEtODY1ZC00ZGUyLWE1MDQtYjA1NTJhMjQzOTc4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE4VDEyNDMxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJhM2I4YTNkNzM3YzhiMThjNjQyNTI3ODdiNTE0MTg2Y2Y2ZGE5MjdlODI2ZjhkMjBkN2U4ZGFlZTVjYjA3MTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.GdmN_DKaH4WKv25bswh6rQY4Y0xFcwR89SiXT0ClL9c)
- The blue pill should be removed on mobile as per Figma
![image](https://private-user-images.githubusercontent.com/82127904/339422255-f94966fc-b5fa-46f7-bd8a-a96a5c665584.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg3MTQ4OTgsIm5iZiI6MTcxODcxNDU5OCwicGF0aCI6Ii84MjEyNzkwNC8zMzk0MjIyNTUtZjk0OTY2ZmMtYjVmYS00NmY3LWJkOGEtYTk2YTVjNjY1NTg0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE4VDEyNDMxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM4ZjEzZWQ3OGNkMWUwODk4NGY1NzM0NGUxMWEyMDM0NWFjNDYwZDE4ZTZmYjBjOWNiMWZlYTFhNTQ2MjE1NDQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Vv9Tob-PD6AC7RXCtOEc3qth8ZgA4c9ODfcVJLm0tIc)
- The icon and background box should be aligned to the top of the content block to match the Figma design.
![image](https://private-user-images.githubusercontent.com/82127904/339422529-7fa12d15-0edb-4089-b4e7-1f50dc72f1f7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg3MTQ4OTgsIm5iZiI6MTcxODcxNDU5OCwicGF0aCI6Ii84MjEyNzkwNC8zMzk0MjI1MjktN2ZhMTJkMTUtMGVkYi00MDg5LWI0ZTctMWY1MGRjNzJmMWY3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE4VDEyNDMxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ0M2M0NjI0MmQ5OGZiMGIwYTJkNWY0NzU5ODA1YzU5N2ZkMTJhMWQwY2Y2YjZmNmIwMzM3ZWVhMWQ4MTFjOGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.kODn_TCKOAimALbzgbkQ4dv01ZrbzoOAkblYjovQTXA)
Flow
- The stepped navigation pills are missing the background styling.
![image](https://private-user-images.githubusercontent.com/82127904/339422766-4a49fc14-e0e8-4ce0-bda0-871d4bdab0da.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg3MTQ4OTgsIm5iZiI6MTcxODcxNDU5OCwicGF0aCI6Ii84MjEyNzkwNC8zMzk0MjI3NjYtNGE0OWZjMTQtZTBlOC00Y2UwLWJkYTAtODcxZDRiZGFiMGRhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE4VDEyNDMxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMzMjljZjYyMDdjZDg3YjE0NTM0MmJjMzUyNzUxOWFjNzE2Mzk5OWFlNmRhMThjOTYxOGVhNDU4Njc0OWNlNGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.TuIFnlwXs7dEeDgus-jhCgGIbBJ3WTP0YhbsHzlVyys)
- The buttons should be styled to match Figma.
![image](https://private-user-images.githubusercontent.com/82127904/339422967-3a798a1d-d485-4e07-9379-5b7f6179e34f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg3MTQ4OTgsIm5iZiI6MTcxODcxNDU5OCwicGF0aCI6Ii84MjEyNzkwNC8zMzk0MjI5NjctM2E3OThhMWQtZDQ4NS00ZTA3LTkzNzktNWI3ZjYxNzllMzRmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE4VDEyNDMxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTExNzBlMWFjYmIxMjUzOTE0Zjg1MWUxN2YzMDhmOGQ1M2IwNzE3ZTk0OGQwOGZjNjc0MjNjZWNmY2MyYWFiZTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.E6woKsoxDlvUHwQMXd4L-xGLVFBHjDkxP0dezgzG05I)
![image](https://private-user-images.githubusercontent.com/82127904/339424062-d465ca55-35fd-4234-b9f9-25df74eeddf2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg3MTQ4OTgsIm5iZiI6MTcxODcxNDU5OCwicGF0aCI6Ii84MjEyNzkwNC8zMzk0MjQwNjItZDQ2NWNhNTUtMzVmZC00MjM0LWI5ZjktMjVkZjc0ZWVkZGYyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE4VDEyNDMxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYxNTE4ZDI0NzExNGMyN2E1ZWY0ZWFiMzk4Njc3Nzg3ODc0ZDY1YjExNGYzMWFjYmM1ZmQ3ZWQ3Y2YzZWY1NTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.6NK2OxgCjZFXWWrK2CTRZpaTzwSdTk6GJYkGYFo02HA)
- I have my wallet connected, but the header doesn't display the connected state. I should see the chain, my avatar and the settings icon as per the Figma designs.
![image](https://private-user-images.githubusercontent.com/82127904/339423332-ae48b7b7-0dac-41a2-8d61-91e6a497e05d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg3MTQ4OTgsIm5iZiI6MTcxODcxNDU5OCwicGF0aCI6Ii84MjEyNzkwNC8zMzk0MjMzMzItYWU0OGI3YjctMGRhYy00MWEyLThkNjEtOTFlNmE0OTdlMDVkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE4VDEyNDMxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdmYzFkYjFmZjE5M2U3NWZiNzZlOTY2OTk4NjllY2U3ZGY1ZjMxODJhMGUzMmQ2OWNhNDJmYjhhODIzNmVhZmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.pFLULGGFsBGk4gmW-7WlUXj2SMJCEJAQ5_YpaswVjfQ)
- Padding between these two select boxes should match Figma.
![image](https://private-user-images.githubusercontent.com/82127904/339423814-415bd89a-586a-4657-a19b-67aecf56d9eb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg3MTQ4OTgsIm5iZiI6MTcxODcxNDU5OCwicGF0aCI6Ii84MjEyNzkwNC8zMzk0MjM4MTQtNDE1YmQ4OWEtNTg2YS00NjU3LWExOWItNjdhZWNmNTZkOWViLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE4VDEyNDMxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUzMTNiNjhiYmExZmRjODE1ZjdjOTMxZTZiNWZhODI5NjI4ZjBkNWMxMDIxY2IyZTM2ZWIyNTRlZDMxNjMxNzkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.rkb9_y8A5ZsVmQcN_o_8eZiUU55UEpFddrHnStwXcRY)
- These input fields should be aligned according to Figma (stacked for better touch interactions)
![image](https://private-user-images.githubusercontent.com/82127904/339424693-e28b72ad-d6fb-4745-9834-b418adf681dd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg3MTQ4OTgsIm5iZiI6MTcxODcxNDU5OCwicGF0aCI6Ii84MjEyNzkwNC8zMzk0MjQ2OTMtZTI4YjcyYWQtZDZmYi00NzQ1LTk4MzQtYjQxOGFkZjY4MWRkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE4VDEyNDMxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBkOWJhZjZiYzc3Y2Y5NjE4NDUwZDMzMzg5ZmI2NDYwODU0ZWFjZDA2NDI1Njc1N2M0MDhhMGIwNjkzZDk1ZmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.6rlcH5NtgNzzC1RlXkbv15jpYSrn0iMOgev8oRihLo0)
-
The button buttons should be sticky and the content scrolls.
-
These radios should use the existing component and match the desktop styling
![image](https://private-user-images.githubusercontent.com/82127904/339425661-b33ecded-9137-45e7-971c-2acfb56f655d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg3MTQ4OTgsIm5iZiI6MTcxODcxNDU5OCwicGF0aCI6Ii84MjEyNzkwNC8zMzk0MjU2NjEtYjMzZWNkZWQtOTEzNy00NWU3LTk3MWMtMmFjZmI1NmY2NTVkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE4VDEyNDMxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMwNzY5ZGE3MTgzOTg4MWM4M2Q3YmZlMjlhNDkxOTA4ODJhYWI0ODUzZDdkYjc0MDY2MGI0YmQyM2RlZmQ1ZTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.v9Bo6c0OVmfnT_cvADIePT-zVwh-KLzkLAfQ6u3cqXU)
![image](https://private-user-images.githubusercontent.com/82127904/339425661-b33ecded-9137-45e7-971c-2acfb56f655d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg3MTQ4OTgsIm5iZiI6MTcxODcxNDU5OCwicGF0aCI6Ii84MjEyNzkwNC8zMzk0MjU2NjEtYjMzZWNkZWQtOTEzNy00NWU3LTk3MWMtMmFjZmI1NmY2NTVkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE4VDEyNDMxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMwNzY5ZGE3MTgzOTg4MWM4M2Q3YmZlMjlhNDkxOTA4ODJhYWI0ODUzZDdkYjc0MDY2MGI0YmQyM2RlZmQ1ZTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.v9Bo6c0OVmfnT_cvADIePT-zVwh-KLzkLAfQ6u3cqXU)
- Can you make this button in the bottom widget within the modal full width?
![image](https://private-user-images.githubusercontent.com/82127904/339427589-a93fd46f-2159-42de-bee2-81fc526dc15a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg3MTQ4OTgsIm5iZiI6MTcxODcxNDU5OCwicGF0aCI6Ii84MjEyNzkwNC8zMzk0Mjc1ODktYTkzZmQ0NmYtMjE1OS00MmRlLWJlZTItODFmYzUyNmRjMTVhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE4VDEyNDMxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM5ZjE3MTRkMWM5MmM0NjEwMmIwZjYyODZkZGI1YWMzYTBlM2UyOTYwYTcyNjZmMzMxODk1MDFiY2ZhZjVjNDMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.R5HO6-a2gCa2TP__UmOx3yYRs0zoxFmm9-ECCADtHIY)
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.
const LandingPage = () => { | ||
const [, setHoveredItem] = useState<number>(1); | ||
const [, /* hoveredItemIndex */ setHoveredItemIndex] = useState<number>(1); |
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.
Is this a leftover from debugging ?
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.
As only one item on the page is enabled and setter is already used, thought to comment the actual state to use it after we enable the other items
headingText={MSG.createColonyTitle} | ||
headingDescription={MSG.createColonyDescription} | ||
icon={Layout} | ||
// imgSrc={CreateAColonyBanner} |
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.
Same here
} | ||
headingDescription={MSG.viewUserProfileDescription} | ||
icon={UserCircle} | ||
// imgSrc={CreateAProfileBanner} |
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.
Same here
Refactor landing page item to render children Fix styling issue on smaller devices Resolves #2111
Use stepper component for mobile wizard sidebar Adjust stepper component to snap to active step item
Refactor onboarding helper to compare against enum values
Fix styling issue on smaller devices
Fix lint issues
const Icon = icon || ICON_NAME_MAP[stage]; | ||
const isMobile = useMobile(); | ||
|
||
useEffect(() => { | ||
if (ref?.current && isHighlighted) { | ||
ref.current.scrollIntoView({ behavior: 'smooth', inline: 'end' }); |
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.
Great start on your 1st PR @mmioana ! 🥳
Code-wise all good apart from the ones mentioned! This is not a change request but thought I'd say this would be pretty cool as a hook i.e.
const { ref } = useScrollIntoView({ scrollCondition: yourCondition, ...otherParams })
or maybe expose a scroll
function for a more imperative approach
const { ref, scroll } = useScrollIntoView();
if (condition) {
scroll()
}
or a mixture of both! 😄
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.
Smashing work on your first PR, immediately a refactor, nice 😎
Codewise it looks good, will approve after the UI issues have been resolved!
Fix styling changes on smaller devices after review
Use custom useMediaQuery for mobile and tablet Update button row styling
83ee976
to
9601c46
Compare
Refactor declarative scroll into view behaviour into custom hook
Fix styling for checked radio buttons
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 @mmioana,
Nice work on the requested updates! Just one minor change is needed to align it with the Figma designs.
- This heading doesn't need to be shown and isn't in the designs, so please remove and match the paddings accordingly:
![image](https://private-user-images.githubusercontent.com/82127904/340287581-8fc5c7ae-87a1-436d-860e-7406c8e23049.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg3MTQ4OTgsIm5iZiI6MTcxODcxNDU5OCwicGF0aCI6Ii84MjEyNzkwNC8zNDAyODc1ODEtOGZjNWM3YWUtODdhMS00MzZkLTg2MGUtNzQwNmM4ZTIzMDQ5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE4VDEyNDMxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFmZDNhMDU0M2E1NjYxY2YyNjUyYjgzMGJjMDNkODU1MmZkOTg2NmRhMTY2ZDE0ZDg1YmIyYmYzN2M5MzdhNTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.qe2dmX3Aw-Bkc-WH8vxNaEbr4BDbcO3ASmI_jD3__ss)
Thanks again for your continued work on this! 🐞
Remove sidebar title on mobile Remove bottom margin
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 final fix on this PR @mmioana, appreciate your work! 🎉
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.
Nice changes, good job handling the myriad of required CSS fixes! 💪
Description
Refactor landing page item to render children
Fix styling issue on smaller devices
Testing
TODO: Button styling issue for actionable item list on landing page.
Resolves #2111