bulma
bulma copied to clipboard
Fixes #3655
This is a bugfix.
Issue#3655 -> Update sass/components/navbar.sass:6 The variable $navbar-height is set to 3.25rem (52px) by default. However the navbar height changes to 3.5rem (56px) as soon as a button is added!
Proposed solution
Change default navbar height from 3.25rem to 3.5rem.
There is an alternate solution as well. We can reduce the default button size so that the navbar doesn't get disturbed
Testing Done
Unit testing has been done by linking my test project locally with bulma
I have:
- Cloned the bulma repo.
- Created a new react project named PGReact.
- Linked bulma locally with PGReact.
- Wrote this piece of code in App.js
<body class="has-navbar-fixed-top">
<nav class="navbar is-fixed-top has-background-light">
<a class="navbar-item">Link</a>
<div class="navbar-item">
<a class="button">Button</a>
</div>
</nav>
</body>
- Commented the code written between
<nav>
and</nav>
- The height of navbar didn't get disturbed
Changelog updated?
No.