-
Notifications
You must be signed in to change notification settings - Fork 920
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
[navigation]feat: fix left nav in small screen #7962
[navigation]feat: fix left nav in small screen #7962
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7962 +/- ##
==========================================
+ Coverage 60.52% 60.59% +0.07%
==========================================
Files 3728 3738 +10
Lines 88297 88674 +377
Branches 13662 13783 +121
==========================================
+ Hits 53439 53731 +292
- Misses 31603 31661 +58
- Partials 3255 3282 +27
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
7fa6f36
to
6e5e075
Compare
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
@virajsanghvi @AMoo-Miki Would you mind taking a look? |
return ( | ||
<> | ||
{isNavOpen ? null : ( | ||
<EuiHideFor sizes={['xs', 's', 'm']}> |
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.
EuiHideFor
adds a resize
listener to window to fake responsiveness and the more we use it, the more sluggish the interface will feel. Can we move this logic to CSS and use media queries instead?
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 that, updated. But the change can not be applied to the left nav as there are some difference on the functionality.
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
* feat: fix left nav in small screen Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * Changeset file for PR #7962 created/updated * fix: snapshot update Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * feat: optimize style Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * fix: update snapshot Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * feat: show left nav in small screen Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * feat: update snapshot Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * feat: use css to hide Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * fix: cypress test Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * feat: update Signed-off-by: SuZhou-Joe <suzhou@amazon.com> --------- Signed-off-by: SuZhou-Joe <suzhou@amazon.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit dc62362) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* feat: fix left nav in small screen Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * Changeset file for PR #7962 created/updated * fix: snapshot update Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * feat: optimize style Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * fix: update snapshot Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * feat: show left nav in small screen Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * feat: update snapshot Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * feat: use css to hide Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * fix: cypress test Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * feat: update Signed-off-by: SuZhou-Joe <suzhou@amazon.com> --------- Signed-off-by: SuZhou-Joe <suzhou@amazon.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit dc62362) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* feat: fix left nav in small screen * Changeset file for PR #7962 created/updated * fix: snapshot update * feat: optimize style * fix: update snapshot * feat: show left nav in small screen * feat: update snapshot * feat: use css to hide * fix: cypress test * feat: update --------- (cherry picked from commit dc62362) Signed-off-by: SuZhou-Joe <suzhou@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
* feat: fix left nav in small screen * Changeset file for PR #7962 created/updated * fix: snapshot update * feat: optimize style * fix: update snapshot * feat: show left nav in small screen * feat: update snapshot * feat: use css to hide * fix: cypress test * feat: update --------- (cherry picked from commit dc62362) Signed-off-by: SuZhou-Joe <suzhou@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Description
The PR mainly optimize the experience of left nav in small screen like mobile device.
Issues Resolved
Screenshot
Collapsed in small screen
Expanded in small screen
Collapsed in large screen
Expanded in large screen
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration