-
Notifications
You must be signed in to change notification settings - Fork 2
CI-3648 Responsiveness Improvements #86
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
CI-3648 Responsiveness Improvements #86
Conversation
CI-3648 MVP [OS UI PLP]: Mobile Friendly Styles for Filters
Business Outcome:
Definition of done:
|
…-mobile-friendly-styles-for-filters
Mudaafi
left a comment
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 left some comments, but the one on using timeout for css transitions, let's discuss in our sync later today
| // Calculate windowSize on resize event | ||
| useEffect(() => { | ||
| const resize = () => { | ||
| const parentSize = Number(pagesRef.current?.parentElement?.clientWidth) || window.innerWidth; |
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.
Just so I'm clear, we're checking for the parentElement's width first if it exists, else we go with the window?
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.
yes, this is mainly for edge cases (domless scenarios like jest testing)
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.
no I think this is a good default. Most times, customers will use a container to host both the entire PLP, so setting the width to the container first is better
…-mobile-friendly-styles-for-filters
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.
LGTM! Thanks for making the changes ❤️ I'll ask the team if anyone wants to take a second look, if not we can merge some time next week
Pull Request Checklist
Before you submit a pull request, please make sure you have to following:
PR Type
What kind of change does this PR introduce?
Changes for mobile view
split header and 2-column grid

filters and sort options as modals


pagination resize with window
