-
-
Notifications
You must be signed in to change notification settings - Fork 31.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
[docs] Avoid confusing nav items with disabled items #23283
Conversation
It's definitely a challenging tradeoff, use the same color and the navigation nesting can be confusing (at least for me). Use a light font-weight and the links don't look great (at least for me). A couple of thoughts:
If we want to move in this direction, I think that the selected page should be font-weight bold, like on Gmail, this would look better. I'm personally leaning toward the current look but I think that if @mui-org/core-team finds the proposal better, we should change it, it's meant to work for the many. On a related note, there is one aspect of the navigation that I think that we could improve. I don't think that the subsections like "Layout", "Lab", "Data display" needs to have a nested layer, we could have them flat as subheader (e.g. "Base de données"): |
I'm not sure you're understanding Material guidelines. You can use a different theme with different colors and typography which material.io is doing (just like we're doing with our docs). material.io not copying the default guidelines is not an indicator that the guidelines are flawed.
Yes, but I also don't know their design system. You can't cherry-pick from other design systems. That simply does not work.
I'd be happy with removing any distinction in the typography. I don't find it useful. |
Based purely on personal preference, I find the bold text on the selected nav item easier to read. No issue with the other changes. Subsection headers rather than nesting makes sense. |
I guess this is a separate discussion how we want to handle selected vs unselected state. It would be weird though to break out of the design system here specifically. As far as I know we never change the font-weight on selected items. |
Why would we do that? The argument I made is pretty clear. If you disagree at certain points please tell me so. But cherry-picking design-systems is not OK. |
The rationale is for the label is so that we optimize for the many. If we have a majority from the core team that finds that the variation works better, then let's definitely change it. Otherwise, better waiting. The dimension on which I think the change is not helping:
Regarding disabled items, I don't understand why it's important to optimize for it as links can't be disabled. It's also using the secondary text design token, not the disabled one, these colors are different (but close). |
Sure. I wasn't trying to diverge from the disable / not disabled focus of this PR, it was just noticeable to me that the blue-on-blue text at the lower font-weight is less legible than before. I will pipe down 🙊 |
Could you explain to me why this didn't apply to the original change? Why did you ask on twitter?
That is not your opinion though so I'm confused why you'd make that argument. Otherwise why allow
Same as above: Why did you implement the prop for anchors then? That's all just very convenient cherry-picking of arguments depending on what end results you want. I know that reasoning people out of positions is hard if they didn't reason themselves into them but I'll keep this open until the dissonance is recognized. |
@eps1lon From what I understand in the original changes (#22780), no opposite point of view were raised related to the change of look. If it was the case, I think that it should have required the same treatment. Matt raised an issue with the lack of hover and focus-visible feedback that was fixed.
I have open https://twitter.com/olivtassinari/status/1323940410054615041 because no other core team members have really raised a preference here. This was meant to resolve if we should move forward or not. I think it answers the question. We shouldn't move forward as it's a step backward, we need to find a different solution.
This is my opinion. This a dimension that was meant to be optimized for in #22780, I was frequently "lost" in the navigation. I needed to pause a second to figure out at which level I was, was I on a leaf?
By anchor, do you mean the I think that this mixes two different subjects:
Considering the topic is visual, and heavily rely on a feeling, I can definitely understand why you come to this conclusion. I think that from somebody else's point of view, your argument will have the same effect. I would simply conclude with:
|
I missed this because you didn't properly describe your change. Instead you just dumped two screenshots.
So when did this opinion change and why don't you propose removing the distinction from the core components? |
Merging until we have properly discussed this e.g. in #23444. PRs should not apply an inconsistent state to documentation. |
This reverts commit b6e84b742cdb0b1489bbc3d33a2d5e8ba7d20t pc71.
Reverts the redesign of links in #22780 until #23444 is resolved.
The new styling of the nav items make them indistinguishable from disabled items. This is especially noticeable on top level links like "premium themes" and "blog". It doesn't really make sense to go against an existing design system.
next
:It's less noticeable on dark themes but the general issue exists there as well.
The argument for the redesign was that it's closer to the drawer in material.io but it was not specified why that is desired. Especially because it's simply used as an inspiration from a site that is black and white and therefore is not suited to copy only certain features. Maybe material.io is never using disabled items and can therefore appropriate those styles. Maybe the use a different styling for disabled items. But I don't think they intended to use "disabled"-styles for "inactive"-styles. The actual demos of a drawer do not grey-out inactive items.