-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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(theme-classic): blog mobile secondary menu use consistent styles #7068
Conversation
✅ [V2]
To edit notification comments on pull requests, go to your Netlify site settings. |
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-7068--docusaurus-2.netlify.app/ |
Size Change: -27 B (0%) Total Size: 807 kB ℹ️ View Unchanged
|
This was an example of a design inconsistency, but we could theoretically apply the sidebar menu item class to latest post items in secondary menu, right? |
I'm not too sure if that would look good, considering we are mixing sidebar and menu styles together. I think font changes would be sufficient? |
I meant that in some clever way remove or replace the original (i.e. desktop) styling and apply those CSS classes that are intended for sidebar menu. |
I just realized our blog doesn't use any styles from Infima. Do you think we should use more Infima class names on both desktop and mobile, or is your goal simply to make the mobile secondary menu the same as primary menu? I'd still like the desktop and mobile sidebars have similar styling/layout though. |
Yes, that's all I mean. The fact that the blog sidebar is different from the doc sidebar is ok, since they are completely different types of menus. However, on mobile, it makes sense to stick to the same design for both of them. How difficult is it to implement? |
Not difficult at all, if we have a separate |
@lex111 Is that what you mean? |
Yess, it looks great now, thanks! |
Asked for opinions on Discord as well, waiting for more feedback. The idea is that if both the community and @slorber think the previous design is better, we can simply revert 04daa61 and merge this as a trivial fix of double scrolling. Do you have plans about how all this should work if we have more "blog sidebar items" in the future, as discussed in #5461? |
Without the actual design it is difficult to say, but I suppose it will also be presented as a sidebar menu, perhaps collapsible one with a label as a kind of heading. |
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, LGTM 👍
We'll figure this out but I guess we can have a context/hook so each item would be able to know if it's in a mobile/desktop layout and handle the 2 cases with some tweats 🤷♂️ (can also apply to navbar items btw instead of forwarding the |
Over time I start to appreciate this design as well. The only concern I have being extensibility in the future if the blog sidebar becomes richer. But anyways ¯_(ツ)_/¯ |
Motivation
Fix the double-scrolling problem reported.
@lex111 also wants to change the font, but I'm not quite sure if that's beneficial in the long term.
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan