summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan McBurnie <imcburnie@ebay.com>2014-05-05 22:29:22 -0700
committerIan McBurnie <imcburnie@ebay.com>2014-05-05 22:29:22 -0700
commit79cff28abd3712b7e2219d81e1b4ecb73ba8b491 (patch)
treefa6e6b4c6bca672ea5bd174f36866895dbe0a2db
parent27329239f76e0b748f35b58d626edadea2d10bee (diff)
downloadgitbook-79cff28abd3712b7e2219d81e1b4ecb73ba8b491.zip
gitbook-79cff28abd3712b7e2219d81e1b4ecb73ba8b491.tar.gz
gitbook-79cff28abd3712b7e2219d81e1b4ecb73ba8b491.tar.bz2
Accessibility: aria-label added to navigation links
Current behavior: Screenreader just reads ‘link’ when landing on the previous and next navigation links, giving the user no indication of what the link does or where it goes. New Behaviour: Screenreader reads “Previous page: {page title}” and “Next page: {page title}” respectively.
-rw-r--r--theme/templates/site.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/theme/templates/site.html b/theme/templates/site.html
index 13438ed..af73030 100644
--- a/theme/templates/site.html
+++ b/theme/templates/site.html
@@ -28,10 +28,10 @@
</div>
{% if progress.current.prev and progress.current.prev.path %}
- <a href="{{ basePath }}/{{ progress.current.prev.path|mdLink }}" class="navigation navigation-prev {% if !progress.current.next or !progress.current.next.path %}navigation-unique{% endif %}"><i class="fa fa-angle-left"></i></a>
+ <a href="{{ basePath }}/{{ progress.current.prev.path|mdLink }}" class="navigation navigation-prev {% if !progress.current.next or !progress.current.next.path %}navigation-unique{% endif %}" aria-label="Previous page: {{ progress.current.prev.title }}"><i class="fa fa-angle-left"></i></a>
{% endif %}
{% if progress.current.next and progress.current.next.path %}
- <a href="{{ basePath }}/{{ progress.current.next.path|mdLink }}" class="navigation navigation-next {% if !progress.current.prev or !progress.current.prev.path %}navigation-unique{% endif %}"><i class="fa fa-angle-right"></i></a>
+ <a href="{{ basePath }}/{{ progress.current.next.path|mdLink }}" class="navigation navigation-next {% if !progress.current.prev or !progress.current.prev.path %}navigation-unique{% endif %}" aria-label="Next page: {{ progress.current.next.title }}"><i class="fa fa-angle-right"></i></a>
{% endif %}
</div>
</div>