2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-17 19:21:23 +03:00

Merge pull request #20356 from twbs/revert-18700

Revert #18700 but discourage using <a>s for disabled pagination items
This commit is contained in:
Chris Rebert
2016-07-25 08:22:47 -07:00
committed by GitHub
3 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -77,7 +77,7 @@
</ul> </ul>
</nav> </nav>
{% endhighlight %} {% endhighlight %}
<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> <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>
{% highlight html %} {% highlight html %}
<nav aria-label="..."> <nav aria-label="...">
<ul class="pagination"> <ul class="pagination">
-1
View File
@@ -49,7 +49,6 @@
color: @pager-disabled-color; color: @pager-disabled-color;
background-color: @pager-bg; background-color: @pager-bg;
cursor: @cursor-disabled; cursor: @cursor-disabled;
pointer-events: none; // Future-proof disabling of clicks on `<a>` elements
} }
} }
} }
-1
View File
@@ -71,7 +71,6 @@
background-color: @pagination-disabled-bg; background-color: @pagination-disabled-bg;
border-color: @pagination-disabled-border; border-color: @pagination-disabled-border;
cursor: @cursor-disabled; cursor: @cursor-disabled;
pointer-events: none; // Future-proof disabling of clicks on `<a>` elements
} }
} }
} }