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:
commit
a4cfdcca0a
@ -77,7 +77,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
{% endhighlight %}
|
{% 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 %}
|
{% highlight html %}
|
||||||
<nav aria-label="...">
|
<nav aria-label="...">
|
||||||
<ul class="pagination">
|
<ul class="pagination">
|
||||||
|
@ -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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user