Skip to content

Commit

Permalink
Fix a11y of main menu navigation (#3680)
Browse files Browse the repository at this point in the history
  • Loading branch information
premun authored Jun 24, 2024
1 parent 83b822f commit 6ca0199
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Maestro/Maestro.Web/Pages/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,9 @@
</button>

<div class="collapse navbar-collapse" id="bs-navbar-collapse">
<ul class="navbar-nav mr-auto" if="@User.Identity.IsAuthenticated">
<li class="nav-item" active-if-page="/Index">
<a class="nav-link" asp-page="/Index">Home<span class="sr-only" if-page="/Index"> (Current)</span></a>
</li>
</ul>
<ul class="navbar-nav ml-auto">
<li class="nav-item dropdown" if="@User.Identity.IsAuthenticated">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" tabindex="0">
@await GetUserNameAsync() <span class="caret"></span>
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
Expand Down

0 comments on commit 6ca0199

Please sign in to comment.