Merge pull request #20356 from twbs/revert-18700
Revert #18700 but discourage using <a>s for disabled pagination items
This commit is contained in:
commit
a4cfdcca0a
3 changed files with 1 additions and 3 deletions
|
|
@ -77,7 +77,7 @@
|
|||
</ul>
|
||||
</nav>
|
||||
{% endhighlight %}
|
||||
<p>You can optionally swap out active or disabled anchors for <code><span></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><span></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">
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue