Navbar lable issue
See original GitHub issueNeed some help with navbar configuration. Currently, I am using the below config for the navbar. In local env, I can see navbar labels. But when I deploy app labels are not displaying. I am not sure what’s wrong.
navbar: {
hideOnScroll: false,
title: 'UI-Kit',
logo: {
alt: 'UI Kit Logo',
src: 'img/logo.svg',
href: 'https://ui-webkit.netlify.app/',
target: '_self',
},
items: [
{
to: '/docs',
activeBasePath: 'docs',
label: 'Docs',
position: 'left',
},
{to: '/blog', label: 'Blog', position: 'left'},
{to: '/Versions', label: 'All versions', position: 'right'},
{
href: 'https://github.com/krishnaUIDev/UI-Kit',
position: 'right',
className: 'header-github-link',
'aria-label': 'GitHub Repository',
},
],
},
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5
Top Results From Across the Web
Correct layout for Bootstrap label in navbar - Stack Overflow
Correct layout for Bootstrap label in navbar · I think you have to style it, remove margin from label and see if that...
Read more >Unexpected rendering with .navbar-text · Issue #8815 - GitHub
It appears that an element with class .navbar-text stacks above any following elements, including other elements of the same class. The behavior ...
Read more >The problem with multiple nav elements (and the simple ...
When we have multiple nav elements on a given page, it's important that we use aria- label to label them... most of the...
Read more >Navbar - Bootstrap
Documentation and examples for Bootstrap's powerful, responsive navigation header, the navbar. Includes support for branding, navigation, and more, ...
Read more >Labels go over navbar when scrolling - WordPress.org
Hi,. I installed your plugin to test it, and I got an issue with the label on my products. When I scroll, labels...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@krishnaUIDev , the navbar.items was previously navbar.links and renamed in alpha 59.
If you are not seeing navbar items, it’s because you are not in alpha 59, and you are trying to use navbar.items while the renaming didn’t happen yet 🤪
Also, you have both a yarn.lock and a package-lock. It is likely that you have differences between local dev and netlify because you use npm locally, and netlify uses yarn.
At some point you have to choose between npm or yarn.
Also, you have versions that do not match here, while they should (use alpha 60, just released for example)
What I’d do:
@slorber thanks. Its working as expected.