This is about Bulma.
You added a box-shadow to navbar in v7.
I'm using Bulma version 7.0
I've been trying to figure out where the white line underneath my navbar came from and I finally figured out that's what it was.
I looked in the docs and there were no variables to control this new box-shadow. I had to manually turn it off in my root css file.
.navbar {
box-shadow: none !important;
}
See above.
A heads up in the docs when you make a change like this.
A white line appeared on the navbar of our site when we upgraded Bulma to v7.
Actually it is documented in the changelog, but I missed that too, probably a lot of people will do as well since it's at the bottom.
File
sass/components/navbar.sass
|
|
|---|---|
| Name | Value |
$navbar-box-shadow-size
|
0 2px 0 0
|
Doesn't appear in docs.
this sure bugs me a lot.
don't know why it's placed there by default.
I added is-shadowless class on the nav and it solved it.
The issue is that the design of navbar changed in v7 which means existing sites which upgrade bulma have their designs changed in unpredictable ways.
Iām not saying that these types of design changes shouldnāt happen, nor am I saying that they should be turned off by default. All Iām saying is if and when a design change happens, they should be listed in the release notes one by one with instructions on how to ādisableā each change, so to speak, to look like it did in the prior version, if possible.
I probably wasted 30 minutes in my already existing design trying to figure out why the white bar appeared and where it was coming from. When I finally scrolled down to the bottom of the element inspect styles panel and saw that .navbar now had a box-shadow, I went to the documentation for navbar and didnāt see any variable for said box-shadow. My first solution was the css override.
I would like to see breaking changes be more carefully handled. Not everyone using Bulma is on a greenfield project. Iāve had growing pains with upgrading Bulma before on other sites. This one was tougher because it was an undocumented change.
@stevensacks I can't help but feel that you brought this onto yourself. You upgraded without clearly reading the migration guide.
Also, Bulma is not at v7 but v0.7. I'd expect lots of breaking changes until we reach v1. I think you should be reading the migration guides more carefully going forward, for your own sake. :)
Jeremy did previously say that you should wait for v1 before using Bulma in production, but he kinda just gave in since people were impatient and used it in production anyways.
Bulma isnāt ready for use in production, except that thereās a book being advertised to me on every visit about how to build websites with it. Weāll agree to disagree on that point. š
As for the first two, youāre right. Truth be told, I didnāt even know about the migration guide. Iāve relied solely on the documentation. This ticket is about keeping the docs up to date when changes like this make their way into the code, but I will make sure to check the migration guide whenever I upgrade Bulma.
I use npm-check-updates daily on my projects to keep them as up-to-date as possible. When a new version of Bulma comes out, I want to take advantage of new features and bug fixes.
I didnāt expect the navbar to have a box shadow added because itās been around for a long time and seems pretty well designed, as is, except for one thing that I have had to hack in.
The choice that child components disappear on mobile (except brand) is something that I understand why it was done, but thereās no workaround in Bulma to change that behavior in cases where you donāt want that. And considering the breakpoint is 768, which is pretty wide, the navbar components are disappearing way sooner than they should.
My fix is pretty involved. Essentially, I have dropdown menus that I want to always be present even if the width is less than 768 and I have to override a lot of the Bulma properties to enable it.
@stevensacks We don't really disagree. I said that he previously said it wasn't ready for production but he changed his stance since people use it anyways. And business-wise it is better for him to release the book now even if he does believe that Bulma isn't ready yet (without saying so). Nevertheless, we don't have v1 yet so breaking changes should be expected. :)
And the docs not being up to date _is_ frustrating; that I'll give you. :) Hopefully it will be up-to-date soon.
Shouldn't this be closed now since the issue is resolved? The drop shadow can be removed with $navbar-box-shadow-size?
Has that been added to the navbar docs yet, or is it still just in the migration docs?
@stevensacks No, not yet I guess. :)
Once it is, then itās resolved and we can close the ticket. š
@stephenjude proposed a nice 'workaround' with .is-shadowless
Once itās added to the docs, then this ticket is resolved. I made my own workaround, as well. The issue isnāt a workaround, itās that this feature has not yet been added to the documentation.
Got hit by this one.
navbar can have is-shadowless or has-shadow but default is a box-shadow: 0 2px 0 0 whitesmoke;
This doesn't make sense to me.
.has-shadow is a relic of previous versions.
Before you could apply shadow with .has-shadow, now shadow is applyed by default and you could remove it with .is-shadowless.
It's a breaking change that needs to be documented.
if this was less opinionated it would be better, but it looks like this was done mainly for the purpose of redesign of bulma.io site itself and therefore serves for sites of white background while other of us who use hero of various colors are left to fix breaking change that could have been done with something like .is-shadow or any other name. so instead of adding it, we have to take it away.
very bad choice.
Sorry about this change. It is documented in the migration guide but not clearly enough. Of all of the changes that have happened for 0.7.0, this seems to be the only one causing problem.
Iāll push a fix today to make it optional.
Most helpful comment
I added
is-shadowlessclass on the nav and it solved it.