0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-03-15 15:29:22 +01: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
commit a4cfdcca0a
3 changed files with 1 additions and 3 deletions

View File

@ -77,7 +77,7 @@
</ul>
</nav>
{% 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 %}
<nav aria-label="...">
<ul class="pagination">

View File

@ -49,7 +49,6 @@
color: @pager-disabled-color;
background-color: @pager-bg;
cursor: @cursor-disabled;
pointer-events: none; // Future-proof disabling of clicks on `<a>` elements
}
}
}

View File

@ -71,7 +71,6 @@
background-color: @pagination-disabled-bg;
border-color: @pagination-disabled-border;
cursor: @cursor-disabled;
pointer-events: none; // Future-proof disabling of clicks on `<a>` elements
}
}
}