-
Notifications
You must be signed in to change notification settings - Fork 107
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
Enable tooltips in NavLink
and add minor CSS fixes for Navigation
#186
Conversation
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.
I'm not fully familiar with this feature, but still was curious in it. So, I left few comments 😄.
How is this different from #183? 🤔 I see it's the same, just a new PR. Let me copy my comments over to make sure they don't get lost:
|
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.
Great stuff, thank you for all the fixes! 🙏
The tests look good. I just made a small change to make them a bit less verbose: 6500d8f. It's the same tests as you wrote, just putting some stuff into a variable to make it clearer.
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.
Hey @nadijagraca , great that you found a way to style the tooltips now! 🚀 Have some change requests mostly related to design and some default options.
It would be great if you could apply the Figma designs we have for tooltips here. I noticed some discrepancies. Ignore the comment, if the Figma designs are outdated and these are indeed our new designs?
According to the Figma designs, we would also need a fixed width for the tooltip, such that text wrapping is activated if the label is very long. I think that makes sense and should also be our default.
Could you double-check with @antonymilne whether the label indeed should be mandatory? For me it makes sense, that users can turn off the tooltips if they want. Currently that's not possible.
Could you update the accordion_inside_nav_bar.png
such that it also shows the last page in the Accordion? In the new screenshot it's currently cut off, but I think it makes sense to keep it in, as we're explaining the grouping in the docs section
vizro-core/changelog.d/20231201_152948_nadija_ratkusic_graca_navigation_css_refinements.md
Outdated
Show resolved
Hide resolved
NavLink
and add minor CSS fixes for Navigation
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 new tooltips look great now, love the box-shadowing on the light theme as well! 🚀 Thanks for incorporating all the changes :) Left one small comment and could you replace the screenshot as mentioned here:
Could you update the accordion_inside_nav_bar.png such that it also shows the last page in the Accordion? In the new screenshot it's currently cut off, but I think it makes sense to keep it in, as we're explaining the grouping in the docs section
The rest looks great! After updating the screenshot and just checking whether we need all the CSS properties defined in .mantine-Tooltip-tooltip
, feel free to merge after all the tests pass.
Description
Minor css fixes on navlink and accordion components:
Screenshot
Checklist
Types of changes
Notice
I acknowledge and agree that, by checking this box and clicking "Submit Pull Request":