-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Fixed Onboarding page as requested #Fixes 5740 #5758
base: main
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.
PR Summary
- Enhanced
StyledContent
inModal.tsx
for better alignment and scrolling - Added media queries in
ModalLayout.tsx
for mobile responsiveness
@@ -6,6 +6,12 @@ import { ModalLayout } from '@/ui/layout/modal/components/ModalLayout'; | |||
const StyledContent = styled(ModalLayout.Content)` | |||
align-items: center; | |||
width: calc(400px - ${({ theme }) => theme.spacing(10 * 2)}); | |||
display: flex; | |||
flex-direction: column; |
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.
Duplicate 'align-items: center' property. Consider removing the redundant line.
@@ -42,6 +42,18 @@ const StyledModalDiv = styled(motion.div)<{ | |||
return 'auto'; | |||
} | |||
}}; | |||
|
|||
@media (max-width: 768px) { |
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.
@media (max-width: ${MOBILE_VIEWPORT}px) {
Could we keep the confirmation modal as it is today and make this PR affect only the onboarding flow? Desired behavior for modal: |
Hi @sagarhedaoo, thanks for taking on this issue! Regarding what I said above, we should introduce the concept of "variants" for the modal to differentiate the onboarding from the in-app alerts. Here are the specifications:
How does it sound? |
@Bonapara |
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.
PR Summary
(updates since last review)
- Added
inverted
prop toButton
component for alternative styling - Updated Button stories to include
inverted
prop for testing - Removed unique position check in
RecordPositionFactory
- Adjusted tests in
record-position.factory.spec.ts
to align with new logic - Introduced optional
backgroundColor
prop inComponentStorybookLayout
for customizable styling
Yes that'd be great, let's try to do something clean that fits all use-cases :). Thanks! |
Fixed the onboarding page as shown in figma design. if any further changes are required, I am happy to do that!