-
Couldn't load subscription status.
- Fork 401
[Merged by Bors] - Improve side menu in Book, Assets & Example #327
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
Conversation
|
Oooh this is pretty slick. I'll give it a run. |
|
Some assorted thoughts:
|
|
Since we're redesigning the side menu. We already have a dedicated column for the side menu, wouldn't it be a good idea to have the side menu fixed when having desktop width? Since there is no fixed burger menu when scrolling down for desktop means that there is no quick access to the side menu, and users have to be at the top. |
|
Now I see that maybe I over-stepped on some decisions, sorry for that. In any case, any of the points you mention should be easy to revert (although, looks like it won't be necessary 😅). Dimming of the non-selected items (as it's now in prod), sounds like a nice UX win; let me know if you prefer me to look into it. I did the chevron myself in Figma; it's actually in the same "file" as the chart in #290. Same for the hamburger and the "X" icons used in #315. I gave @alice-i-cecile the ownership of that file… but now that I think it, probably you should be the owner. ^_^ Oh, btw, the Tera macro is recursive so nested menus work as well. I just copied the "Getting Started" folder inside "FAQ" and it just works: @BlackPhlox yup, the sticky menu is done in #315. I've actually made this PR because of that PR, on mobile the docs menu looks a little bit off: small text, with small hit bboxes. Once I sync with this PR the mobile menu should look muuuuch better. |
|
Oh, btw, the idea/design is a copy from: https://docusaurus.io/docs 😇 |
Agreed.
I should be able to work around this in the book, but it can't hurt if it works.
I liked this too.
Yeah, I think that I'm fine either way here.
Ideally we'd have a Bevy organization, or a shared |
For now, if you can agree to give me full ownership / usage rights (or alternatively ... just license it permissively), I'd appreciate it. Until we get a legal Bevy org spun up, Id prefer to be the single steward of "legal assets" to simplify the transition, when it comes. |
|
I agree to give full ownership/usage rights of |
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.
Brilliant! I'm happy with the dimming. I think this is good to go
|
bors r+ |
- In preparation for #315, add new `tree-menu` CSS component - Update Books, Assets & Example to use this new component - In Books only the active book section is automatically opened, other sections with sub-sections start closed - Assets/Examples are always open, but are collapsible https://user-images.githubusercontent.com/188612/162277066-bf9ab366-79ce-402e-af02-691ed2c4a279.mp4 https://user-images.githubusercontent.com/188612/162277084-cbbd3a9a-d436-4388-a7df-8e34d77433f0.mp4 https://user-images.githubusercontent.com/188612/162277125-924d7f84-b66a-47fb-ae08-c771a6a80a5a.mp4
|
Pull request successfully merged into master. Build succeeded: |


tree-menuCSS componentbevy-tree-menu.mp4
bevy-tree-menu-long.mp4
bevy-tree-menu-responsive.mp4