8000 Merge pull request #20356 from twbs/revert-18700 · williamjava/bootstrap@a4cfdcc · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit a4cfdcc

Browse files
authored
Merge pull request twbs#20356 from twbs/revert-18700
Revert twbs#18700 but discourage using <a>s for disabled pagination items
2 parents 02e9fda + 6dc3bba commit a4cfdcc

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

docs/_includes/components/pagination.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ <h3>Disabled and active states</h3>
7777
</ul>
7878
</nav>
7979
{% endhighlight %}
80-
<p>You can optionally swap out active or disabled anchors for <code>&lt;span&gt;</code>, or omit the anchor in the case of the previous/next arrows, to remove click functionality while retaining intended styles.</p>
80+
<p>We recommend that you swap out active or disabled anchors for <code>&lt;span&gt;</code>, or omit the anchor in the case of the previous/next arrows, to remove click functionality while retaining intended styles.</p>
8181
{% highlight html %}
8282
<nav aria-label="...">
8383
<ul class="pagination">

less/pager.less

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
color: @pager-disabled-color;
5050
background-color: @pager-bg;
5151
cursor: @cursor-disabled;
52-
pointer-events: none; // Future-proof disabling of clicks on `<a>` elements
5352
}
5453
}
5554
}

less/pagination.less

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
background-color: @pagination-disabled-bg;
7272
border-color: @pagination-disabled-border;
7373
cursor: @cursor-disabled;
74-
pointer-events: none; // Future-proof disabling of clicks on `<a>` elements
7574
}
7675
}
7776
}

0 commit comments

Comments
 (0)
0