Materialize: 0.99.0 breaks nav search bar

Created on 23 Jun 2017  路  19Comments  路  Source: Dogfalo/materialize

Issue template:

Description

Nav search bar breaks after updating to 0.99.0

Repro Steps

Layout the steps to reproduce your issue.

Just check the example on official website: http://materializecss.com/navbar.html

Screenshots / Codepen

Add supplemental screenshots or code examples. Look for a codepen template in our Contributing Guidelines.

image

Navbar

Most helpful comment

I created a PR fixing this https://github.com/Dogfalo/materialize/pull/5049

updated my Codepen to show the fixes
https://codepen.io/alexisdiel/pen/RgLqWX

All 19 comments

Solution is to remove every :not(.browser-default) from /components/forms/_input-fields.scss

Solution is to remove every :not(.browser-default) from /components/forms/_input-fields.scss

Or add it to the other rules, because this fixed 2 other issues (#4041 #3975).
:not(.browser-default)
https://github.com/Dogfalo/materialize/blob/master/sass/components/_navbar.scss#L162
https://github.com/Dogfalo/materialize/blob/master/sass/components/forms/_input-fields.scss#L210

image

Some sort of regression. We just have to add the not pseudo class to more rules as they take precedence over the rules without it.

Fixed in 3b1a69d9

this commit brokes the input search
https://codepen.io/alexisdiel/pen/RgLqWX

This brokes the input search when not on navbar

Please review this commit.
This one broke the search input on other places on page
I created an codepen to show the problem
https://codepen.io/alexisdiel/pen/RgLqWX

And my PR: https://github.com/Dogfalo/materialize/pull/4893

Just to add to the pool, the search shouldn't have any lines in this nav bar when it's focussed. Sure, I can overwrite it with my own CSS, but a proper fix would be great. For now, I'm not leaving ver.0.98

Take a look on the Codepen, if it's ok, i'll update the PR
https://codepen.io/alexisdiel/pen/RgLqWX

100.1 nav search bar still has a border at the bottom when focussed. This is just frustrating...

@pingshunhuangalex maybe I'm a fool, but I cannot see any problem, only the icon is misaligned.

@fega , it goes against the material guideline

@fega Putting the icon issue aside, The teal bottom border there is what I'm talking about, not to mention @alexisdiel has already fixed it above and show in codepen. I don't understand how this end up going sideways in the actual update...
image

@pingshunhuangalex, i had found the problem, and i'll fix again on the next days, cuz i see that search icon has misaligned on this version.

I created a PR fixing this https://github.com/Dogfalo/materialize/pull/5049

updated my Codepen to show the fixes
https://codepen.io/alexisdiel/pen/RgLqWX

Awesome, thanks.

@alexisdiel Thank you, the fix works perfect in v0.100.2

This has been fixed in v1-dev

Was this page helpful?
0 / 5 - 0 ratings

Related issues

djensen47 picture djensen47  路  3Comments

ReiiYuki picture ReiiYuki  路  3Comments

ericlormul picture ericlormul  路  3Comments

heshamelmasry77 picture heshamelmasry77  路  3Comments

lpgeiger picture lpgeiger  路  3Comments