Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorPatrick H. Lauke <redux@splintered.co.uk>2020-10-14 13:59:43 +0300
committerGitHub <noreply@github.com>2020-10-14 13:59:43 +0300
commit836a4c0bd6b93499304f9814a946dd065cb01bef (patch)
treeebd519738826bf7cd0031e0f6d26324cc989ea89 /js
parent0205a016b1910eb861ac01ef1644d96855eafb9d (diff)
Remove redundant visually hidden "(current)" from pagination controls (#31892)
* Replace visually hidden span with aria-current in tests * Remove redundant visually hidden "(current)" when `aria-current` already used Closes #31891
Diffstat (limited to 'js')
-rw-r--r--js/tests/visual/dropdown.html2
-rw-r--r--js/tests/visual/modal.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/js/tests/visual/dropdown.html b/js/tests/visual/dropdown.html
index a7ceb32e21..fcbe067ae9 100644
--- a/js/tests/visual/dropdown.html
+++ b/js/tests/visual/dropdown.html
@@ -19,7 +19,7 @@
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav">
<li class="nav-item active">
- <a class="nav-link" href="#">Home <span class="visually-hidden">(current)</span></a>
+ <a class="nav-link" href="#" aria-current="page">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
diff --git a/js/tests/visual/modal.html b/js/tests/visual/modal.html
index b72e8c4ef7..31c6a6a3b4 100644
--- a/js/tests/visual/modal.html
+++ b/js/tests/visual/modal.html
@@ -19,7 +19,7 @@
<a class="navbar-brand" href="#">This shouldn't jump!</a>
<ul class="navbar-nav">
<li class="nav-item active">
- <a class="nav-link" href="#">Home <span class="visually-hidden">(current)</span></a>
+ <a class="nav-link" href="#" aria-current="page">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>