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

v1.0 level is-mobile class does not seem to be horizontal any more #3797

Open
larryhynes opened this issue Apr 22, 2024 · 2 comments
Open

v1.0 level is-mobile class does not seem to be horizontal any more #3797

larryhynes opened this issue Apr 22, 2024 · 2 comments

Comments

@larryhynes
Copy link

This is about Bulma.

Overview of the problem

I'm using Bulma version 1.0
My browser is: Firefox / Safari / Desktop / Android
I am sure this issue is not a duplicate?

Description

Since upgrading to Bulma V1.0 the level is-mobile class does not seem to stay horizontal as it used to.

Steps to Reproduce

Create a nav element with the following syntax:

<nav class="level is-mobile">
  <div class="level-left">
    <a class="level-item" href="foo.html">Foo</a>
    <a class="level-item" href="bar.html">Bar</a>
   </div>
</nav>

Expected behavior

Links will appear in a horizontal level on mobile and desktop.

Actual behavior

Links appear in a vertical level on mobile and a horizontal level on desktop.

@willoma
Copy link

willoma commented Apr 23, 2024

If you remove the level-left div, it works as expected :

<nav class="level is-mobile">
    <a class="level-item" href="foo.html">Foo</a>
    <a class="level-item" href="bar.html">Bar</a>
</nav>

It has always been documented this way and I personally never tried with an intermediate level-left or level-right.

@larryhynes
Copy link
Author

larryhynes commented Apr 23, 2024

Hi

I hadn't tried that, thanks for the suggestion. I guess my primary point is that the markup shown used to work, and now doesn't: so I'm seeing it as either a bug (to be fixed) or a breaking change (to be accommodated), and I'd like to get a handle on which it is before I change all my existing markup, possibly unnecessarily.

(There is another issue with your proposal, which is that the elements would no longer be aligned left.)

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

No branches or pull requests

2 participants