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

Dropdown menu title have to be a link #27

Open
gbetous opened this issue Nov 15, 2024 · 1 comment
Open

Dropdown menu title have to be a link #27

gbetous opened this issue Nov 15, 2024 · 1 comment

Comments

@gbetous
Copy link

gbetous commented Nov 15, 2024

Hi,

Thanks a lot for such a great work !

I noticed that if the dropdown menu item is not a link, the menu is horizontal instead of vertical.

You can try the homepage example simply modifying 'Menu ▾' item and you'll see the dropdown menu displayed horizontally.

<nav>
  <ul>
    <li>Brand</li>
    <li class="float-right sticky">Sticky Right</li>
    <li><a href="#">Item </a></li>
    <li>Menu ▾
      <ul>
        <li><a href="#">Menu 1</a></li>
        <li><a href="#">Menu 2</a></li>
      </ul>
    </li>
    <li class="float-right">Collapse</li>
  </ul>
</nav>

Is it on purpose ? How to fix that if I want to allow text only menu title ?

Thanks !

@gbetous gbetous changed the title Dropdown menu have to be a link Dropdown menu title have to be a link Nov 15, 2024
@emareg
Copy link
Owner

emareg commented Dec 5, 2024

Hi @gbetous, thanks for reaching out. The title does not need to be a link but it needs to be an element. Just plain text does not work (yet). You could put it inside a span element (<span>Menu ▾</span>) for a workaround.

I will look into this when I have time maybe I can improve it so that plain text also works.

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