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
Navbar Migration #1931
Navbar Migration #1931
Conversation
akshaaatt
commented
Mar 27, 2022
•
edited
edited
- Bootstrap imports have been fixed in this PR so that JS can be worked on as well.
- The navbar broke after switching from version 3 to 5 and hence the necessary fixes have been made.
Looks like I would need I would also expect that the goal of this PR is to recreate the current navbar, but there are currently lots of changes here from colors to fonts to spacing. |
Edit: no I don't think so, looking at the BS docs, it looks like it's the |
(Sorry, wrong button !) |
4afbc78
to
42cf4dd
Compare
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.
Nice to see it all work!
Thanks for working on this, it's not an easy cycle you've started, good work so far :)
I have a few items of feedback, happy to discuss with you at your convenience:
- Navbar dropdowns
I find the navbar dropdowns too narrow, which results in a lot of unnecessarily wrapping text:
Modifying the .dropdown-menu
class to have a wider min-width (for example 13rem
instead of 10rem
) or even using width: max-content;
gives the container a bit more width to avoid wrapping text, which results in less space on the page:
Considering these changes would have to be done in the design system (IIUC), they don't necessarily need to be done for this PR; I'm sure we will have other css changes to do and it seems somehow wasteful to deploy a new version for a one number change :)
-
Navbar items hover
Did we decide to use the orange color as hover color for the menu items?
I did like that each project's navbar had a bit of flavor each with its own color.
Similarly, I'm not in love with the gray color of the navbar items' text or the font change, and the hover color should (probably?) be lighter and not darker. Grey/dark gray on orange is not very readable IMO; for comparison here it is with white text:
-
One last non-navbar related thing: I definitely definitely think the absence of any padding on the page is very jarring and looks like a mistake.
// Navs | ||
// ------------------------- | ||
|
||
@nav-link-padding: 10px 15px; | ||
@nav-link-hover-bg: @gray-lighter; | ||
|
||
@nav-disabled-link-color: @gray-light; | ||
@nav-disabled-link-hover-color: @gray-light; | ||
|
||
@nav-open-link-hover-color: @white; | ||
@nav-open-caret-border-color: #fff; | ||
|
||
// Tabs | ||
@nav-tabs-border-color: #ddd; | ||
|
||
@nav-tabs-link-hover-border-color: @gray-lighter; | ||
|
||
@nav-tabs-active-link-hover-bg: @body-bg; | ||
@nav-tabs-active-link-hover-color: @gray; | ||
@nav-tabs-active-link-hover-border-color: #ddd; | ||
|
||
@nav-tabs-justified-link-border-color: #ddd; | ||
@nav-tabs-justified-active-link-border-color: @body-bg; | ||
|
||
// Pills | ||
@nav-pills-active-link-hover-bg: @component-active-bg; | ||
@nav-pills-active-link-hover-color: @white; |
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.
Bootstrap imports corrects and navbar.html fixed Fix navbar implementstaion Update main.less Fix Search bar Fix navbar Fixed dropdowns
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.
That looks a lot better, thanks!
There is still one comment from the previous review that is still relevant:
I'm not sure we should be removing the nav-tabs-…
and nav-pills-…
LESS rules.
Navbar one yes, but nav ones are more general…
<a class="dropdown-toggle" data-toggle="dropdown" href="#"> | ||
Explore<span class="caret"></span> | ||
<li class="nav-item dropdown"> | ||
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown"> |
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.
Fixes cursor pointer style on hover:
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown"> | |
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button"> |
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.
Fixed
<a class="dropdown-toggle" data-toggle="dropdown" href="#"> | ||
About<span class="caret"></span> | ||
<li class="nav-item dropdown"> | ||
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown"> |
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.
Fixes cursor pointer style on hover:
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown"> | |
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button"> |
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.
Fixed
Makes sense! Fixed |