Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Emphasis styling on a navbar menu #39413

Closed
2 tasks done
khalyomede opened this issue Nov 16, 2023 · 0 comments
Closed
2 tasks done

Emphasis styling on a navbar menu #39413

khalyomede opened this issue Nov 16, 2023 · 0 comments
Labels

Comments

@khalyomede
Copy link

Prerequisites

Proposal

navbar documentation

I have a navbar implemented in production on Predzo. The navbar works very well.

Current navbar

As the navbar starts to have a few menus, I would like to drive the focus of the user on the "Plans" menu.

Maybe we could have a new class to emphasis a menu :

<nav class="navbar navbar-expand-lg bg-light">
  <div class="container-fluid">
    <a class="navbar-brand" href="#">Navbar</a>
    <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent"
      aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav me-auto mb-2 mb-lg-0">
        <li class="nav-item">
          <a class="nav-link emphasized" aria-current="page" href="#">Home</a> <!-- here -->
        </li>
      </ul>
    </div>
  </div>
</nav>

Motivation and context

I am no designer so I am not sure of the best practices, feel free to close this if it does not lead to any good accessible and/or good UI solutions.

I just would like to draw more attention on this specific menu to help driving more conversion to a paid plan (hopefully 🤞).

I thought of putting a button, but there is already another button beside the brand name, and I find a button for a menu not suitable since this is a page (and the link can get an "active" class).

@twbs twbs locked and limited conversation to collaborators Nov 17, 2023
@julien-deramond julien-deramond converted this issue into discussion #39416 Nov 17, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

1 participant