-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dagit] Make the left nav stay open/closed (#8173)
### Summary & Motivation Modify the logic and behavior for rendering the left nav as open or closed. - Remove the flag and any route-based logic for hiding the nav. - If the user is using a small viewport: - The hamburger button will open and close the nav. Same as before. - When navigating, the nav will close. - If the user is using a large viewport: - The hamburger button is now present, and shows/hides the nav. The main contents are rendered next to the nav, not beneath it. - There is no animation for opening/closing the nav. - The nav will not hide when navigating. - Open/closed state is tracked in localStorage. This way, the user's preference is tracked across sessions. - If the user switches to a small viewport, the large viewport preference is saved, but behavior will go back to small viewport. - If the user switches back to a large viewport, the large viewport preference is used. ### How I Tested These Changes Test the situations described above. Verify that the nav behaves as expected, and writes to localStorage properly.
- Loading branch information
Showing
6 changed files
with
63 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters