-
Notifications
You must be signed in to change notification settings - Fork 127
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
Refactor SideNavigation #2872
base: next
Are you sure you want to change the base?
Refactor SideNavigation #2872
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Size Change: -683 B (-0.1%) Total Size: 674 kB
ℹ️ View Unchanged
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## next #2872 +/- ##
==========================================
+ Coverage 88.12% 88.17% +0.05%
==========================================
Files 228 228
Lines 13188 13177 -11
Branches 1809 1812 +3
==========================================
- Hits 11622 11619 -3
+ Misses 1512 1504 -8
Partials 54 54
|
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.
Code looks good!
.base > button { | ||
display: none; | ||
} |
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.
The mobile SideNavigation's close button is left-aligned to match the location of the hamburger button in the TopNavigation that likely opens it.
I wonder if it'd be better to right-align it for consistency with the other dialog components. When a user opens the SideNavigation, they'll likely scann the links and then look for the close button in the familiar top-right corner. WDYT?
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.
Although I am always for consistency, I like having the close button in the same spot as the hamburger. Its a pattern we had for a long time now, widely used in most websites, and since the button only concerns mobile, it makes it easier for users to tap the same spot to close than to stretch their thumbs all the way across the screen to the other side :lazy:
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.
it makes it easier for users to tap the same spot to close than to stretch their thumbs all the way across the screen to the other side :lazy:
That's exactly my point though: having the close button on the left side means users have to stretch further to reach the close button. They're not going to keep their thumb hovering at the same spot over the screen as that would obscure the navigation menu.
Addresses DSYS-905
Purpose
Replace ReactModal with the Dialog component in the SideNavigation and remove the usages of the
useMobileNavigation
hook and theModalProvider
in the SideNavigation.Definition of done