]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
add a working with icons example
authorMark Otto <markdotto@gmail.com>
Wed, 28 Dec 2016 22:43:49 +0000 (14:43 -0800)
committerMark Otto <markd.otto@gmail.com>
Wed, 28 Dec 2016 23:13:43 +0000 (15:13 -0800)
frees us up to not have to encourage so much markup throughout these pagination examples

docs/components/pagination.md

index e23c257205b400768768ee4b7c73b11fdf48f543..62536e165316c10c1c3dc09a9668b743603ba885 100644 (file)
@@ -30,8 +30,12 @@ In addition, as pages likely have more than one such navigation section, it's ad
 </nav>
 {% 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 %}
-<nav aria-label="Page navigation">
+<nav aria-label="Page navigation example">
   <ul class="pagination">
     <li class="page-item">
       <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="#">2</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">
       <a class="page-link" href="#" aria-label="Next">
         <span aria-hidden="true">&raquo;</span>