Skip to content

Navigation links have no active appearance inside Nav components #41805

@webJose

Description

@webJose

Prerequisites

Describe the issue

There is no contribution to the hyperlink's style from the active class, as verified by the browser's developer tools.

This can be seen in the official documentation: Navs and Tabs

Just locate the link labeled Active, and inspect it. Now browse the list of classes in the Style tab in developer tools. It can be seen that active is not contributing anything.

Reduced test cases

Taken from the documentation, this is the first example:

<ul class="nav">
  <li class="nav-item">
    <a class="nav-link active" aria-current="page" href="#">Active</a>
  </li>
  <li class="nav-item">
    <a class="nav-link" href="#">Link</a>
  </li>
  <li class="nav-item">
    <a class="nav-link" href="#">Link</a>
  </li>
  <li class="nav-item">
    <a class="nav-link disabled" aria-disabled="true">Disabled</a>
  </li>
</ul>

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

Microsoft Edge

What version of Bootstrap are you using?

v5.3.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions