Skip to content
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

Added is-fullheight-with-spaced-navbar modifier for navbars that use is-spaced. #3623

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

rayment
Copy link

@rayment rayment commented Feb 10, 2023

This is an improvement.

Proposed solution

Currently the hero layout with is-fullheight-with-navbar fails to account for is-spaced navbars resulting in an extra space at the bottom of the page. This PR adds a new modifier is-fullheight-with-spaced-navbar so that the spacing is accounted for on desktop and higher.

This problem has already been addressed in issue #2845 which in turn ended up going stale.

Tradeoffs

Users must now decide between is-fullheight-with-navbar and is-fullheight-with-spaced-navbar but we already differentiate between fixed-bars and regular bars so I don't see this as an unnecessary complication.

Testing Done

Minimal example:

<nav class="navbar is-light is-spaced" role="navigation">
  <div class="navbar-brand">
  </div>
</nav>
<section class="hero is-info is-fullheight-with-spaced-navbar">
  <div class="hero-body">
  </div>
</section>

Note how the page does not scroll when with-spaced-navbar is used.

Changelog updated?

No.

Added a new class is-fullheight-with-spaced-navbar to hero element.

Signed-off-by: Finn Rayment <finn@rayment.fr>
Signed-off-by: Finn Rayment <finn@rayment.fr>
Signed-off-by: Finn Rayment <finn@rayment.fr>
@rayment
Copy link
Author

rayment commented Aug 12, 2023

@jgthms ping?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant