Skip to content

Commit

Permalink
Update sr-only to visually-hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
rohandebsarkar committed Jul 16, 2022
1 parent 8fce0bb commit 1e64134
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{% endif %}
<!-- Navbar Toggle -->
<button class="navbar-toggler collapsed ms-auto" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="sr-only">Toggle navigation</span>
<span class="visually-hidden">Toggle navigation</span>
<span class="icon-bar top-bar"></span>
<span class="icon-bar middle-bar"></span>
<span class="icon-bar bottom-bar"></span>
Expand All @@ -35,7 +35,7 @@
<li class="nav-item {% if page.permalink == '/' %}active{% endif %}">
<a class="nav-link" href="{{ '/' | relative_url }}">{{ about_title }}
{%- if page.permalink == '/' -%}
<span class="sr-only">(current)</span>
<span class="visually-hidden">(current)</span>
{%- endif -%}
</a>
</li>
Expand All @@ -44,7 +44,7 @@
<li class="nav-item {% if page.url contains 'blog' %}active{% endif %}">
<a class="nav-link" href="{{ '/blog/' | relative_url }}">{{ site.blog_nav_title }}
{%- if page.url contains 'blog' -%}
<span class="sr-only">(current)</span>
<span class="visually-hidden">(current)</span>
{%- endif -%}
</a>
</li>
Expand All @@ -58,7 +58,7 @@
<li class="nav-item dropdown {% if page.title == p.title %}active{% endif %}">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{ p.title }}
{%- if page.title == p.title -%}
<span class="sr-only">(current)</span>
<span class="visually-hidden">(current)</span>
{%- endif -%}
</a>
<div class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
Expand All @@ -75,7 +75,7 @@
<li class="nav-item {% if page.title == p.title %}active{% endif %}">
<a class="nav-link" href="{{ p.url | relative_url }}">{{ p.title }}
{%- if page.title == p.title -%}
<span class="sr-only">(current)</span>
<span class="visually-hidden">(current)</span>
{%- endif -%}
</a>
</li>
Expand Down

1 comment on commit 1e64134

@vercel
Copy link

@vercel vercel bot commented on 1e64134 Jul 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.