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

navbar-brand text not visible when burger is visible #122

Open
jluttine opened this issue Aug 2, 2024 · 1 comment
Open

navbar-brand text not visible when burger is visible #122

jluttine opened this issue Aug 2, 2024 · 1 comment

Comments

@jluttine
Copy link

jluttine commented Aug 2, 2024

I'm using text in navbar-brand instead of logo/image. Here's a snippet:

<nav class="navbar is-primary" role="navigation" aria-label="main navigation">
    <div class="navbar-brand">
        <a class="navbar-item" href="#">
            Awesome Company
        </a>
        <a role="button" class="navbar-burger" data-target="navbarMenu" aria-label="menu" aria-expanded="false">
            <span aria-hidden="true"></span>
            <span aria-hidden="true"></span>
            <span aria-hidden="true"></span>
        </a>
    </div>
</nav>

The text "Awesome Company" shows just fine when viewed on desktop but on mobile or narrow screen, the burger shows up and the text "Awesome Company" becomes invisible. It's still there, and becomes visible when I hover over it with my mouse but when I move the mouse away, it becomes invisible again.

If the CSS style makes a difference, I'm using flatly from bulmaswatch.

@jluttine
Copy link
Author

jluttine commented Aug 2, 2024

As a workaround, I added has-text-white to class of navbar-item.

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

1 participant