mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
add a working with icons example
frees us up to not have to encourage so much markup throughout these pagination examples
This commit is contained in:
parent
2b6276f685
commit
5ec35d800d
@ -30,8 +30,12 @@ In addition, as pages likely have more than one such navigation section, it's ad
|
|||||||
</nav>
|
</nav>
|
||||||
{% endexample %}
|
{% endexample %}
|
||||||
|
|
||||||
|
## Working with icons
|
||||||
|
|
||||||
|
Looking to use an icon or symbol in place of text for some pagination links? Be sure to provide proper screen reader support with `aria` attributes and the `.sr-only` utility.
|
||||||
|
|
||||||
{% example html %}
|
{% example html %}
|
||||||
<nav aria-label="Page navigation">
|
<nav aria-label="Page navigation example">
|
||||||
<ul class="pagination">
|
<ul class="pagination">
|
||||||
<li class="page-item">
|
<li class="page-item">
|
||||||
<a class="page-link" href="#" aria-label="Previous">
|
<a class="page-link" href="#" aria-label="Previous">
|
||||||
@ -42,8 +46,6 @@ In addition, as pages likely have more than one such navigation section, it's ad
|
|||||||
<li class="page-item"><a class="page-link" href="#">1</a></li>
|
<li class="page-item"><a class="page-link" href="#">1</a></li>
|
||||||
<li class="page-item"><a class="page-link" href="#">2</a></li>
|
<li class="page-item"><a class="page-link" href="#">2</a></li>
|
||||||
<li class="page-item"><a class="page-link" href="#">3</a></li>
|
<li class="page-item"><a class="page-link" href="#">3</a></li>
|
||||||
<li class="page-item"><a class="page-link" href="#">4</a></li>
|
|
||||||
<li class="page-item"><a class="page-link" href="#">5</a></li>
|
|
||||||
<li class="page-item">
|
<li class="page-item">
|
||||||
<a class="page-link" href="#" aria-label="Next">
|
<a class="page-link" href="#" aria-label="Next">
|
||||||
<span aria-hidden="true">»</span>
|
<span aria-hidden="true">»</span>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user