Skip to content

Commit 1e64134

Browse files
Update sr-only to visually-hidden
1 parent 8fce0bb commit 1e64134

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

_includes/header.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
{% endif %}
1717
<!-- Navbar Toggle -->
1818
<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">
19-
<span class="sr-only">Toggle navigation</span>
19+
<span class="visually-hidden">Toggle navigation</span>
2020
<span class="icon-bar top-bar"></span>
2121
<span class="icon-bar middle-bar"></span>
2222
<span class="icon-bar bottom-bar"></span>
@@ -35,7 +35,7 @@
3535
<li class="nav-item {% if page.permalink == '/' %}active{% endif %}">
3636
<a class="nav-link" href="{{ '/' | relative_url }}">{{ about_title }}
3737
{%- if page.permalink == '/' -%}
38-
<span class="sr-only">(current)</span>
38+
<span class="visually-hidden">(current)</span>
3939
{%- endif -%}
4040
</a>
4141
</li>
@@ -44,7 +44,7 @@
4444
<li class="nav-item {% if page.url contains 'blog' %}active{% endif %}">
4545
<a class="nav-link" href="{{ '/blog/' | relative_url }}">{{ site.blog_nav_title }}
4646
{%- if page.url contains 'blog' -%}
47-
<span class="sr-only">(current)</span>
47+
<span class="visually-hidden">(current)</span>
4848
{%- endif -%}
4949
</a>
5050
</li>
@@ -58,7 +58,7 @@
5858
<li class="nav-item dropdown {% if page.title == p.title %}active{% endif %}">
5959
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{ p.title }}
6060
{%- if page.title == p.title -%}
61-
<span class="sr-only">(current)</span>
61+
<span class="visually-hidden">(current)</span>
6262
{%- endif -%}
6363
</a>
6464
<div class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
@@ -75,7 +75,7 @@
7575
<li class="nav-item {% if page.title == p.title %}active{% endif %}">
7676
<a class="nav-link" href="{{ p.url | relative_url }}">{{ p.title }}
7777
{%- if page.title == p.title -%}
78-
<span class="sr-only">(current)</span>
78+
<span class="visually-hidden">(current)</span>
7979
{%- endif -%}
8080
</a>
8181
</li>

0 commit comments

Comments
 (0)