-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Front of House Icons and Tables Accessible #4215 #4492
base: master
Are you sure you want to change the base?
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
4654fd2
to
ad0f7a1
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
I categorised icons according to the below by inserting a comment above each icon - which I then removed before finalising the PR, so those comments can be found in the commit history to track the 'why' of each change. Icon CategoriesWe use both decorative and semantic icons in the Front of House. In every case, icons are inserted using the syntax: Icons should not be included in any other way unless no
Decorativethese icons are purely decorative, and should include <i aria-hidden="true" class="fa fa-search"></i> Semanticthese icons should be <span class="sr-only">{% trans 'Externally hosted article:' %} </span>
{{ article.title|safe }}
<i aria-hidden="true" class="fa fa-external-link small-icon-text"></i> or <i aria-hidden="true" class="fa fa-play" ></i>
<span class="sr-only">{% trans 'Play' %}</span> Special CasesDateThese icons are used to indicate a date, and should be marked as decorative with the date itself marked up with the <i aria-hidden="true" class="fa fa-calendar"></i>
<time datetime="{{ article.date_published|date:"Y-m-d" }}">
<span role="time">{{ article.date_published|date:"Y-m-d" }}</span>
</time> Email (within a loop)These icons are semantic, however as many of our email icons are as part of 'email author' links where a loop is used because there could be more than one author. In order to meet WCAG 2.4.4 these <a itemprop="email" href="mailto:{{ author.email }}" >
<i aria-hidden="true" class="fa fa-envelope email-link" ></i>
<span class="sr-only">{% trans 'Email' %} {{ author.full_name }}.</span>
</a> ORCID logo as a link to an author's ORCID profileHandle as Semantic Icons. These are not strictly icons, as it is included as a local <a href="https://orcid.org/{{ author.orcid }}">
<span aria-hidden="true"
style="background: url(https://orcid.org/sites/default/files/images/orcid_16x16.png) no-repeat;"
class="orcid-img">
</span>
<span class="sr-only">{{author.full_name}} {% trans 'ORCID profile.' %}</span>
</a> or <a href="https://orcid.org/{{ author.orcid }}" class="">
<img src="https://orcid.org/sites/default/files/images/orcid_16x16.png" alt="">
<span class="sr-only">{{author.full_name}} {% trans 'ORCID profile.' %}</span>
</a> XOur icon set doesn't include the X logo. But the unicode 𝕏 ( <span aria-hidden="true"> 𝕏</span>
<span class="sr-only">{% trans 'Share on X' %}</span> × for closeWe have used the unicode <button class="close-button" data-close aria-label="Close modal" type="button">
<span aria-hidden="true">×</span>
</button> |
be729f2
to
f8df9fb
Compare
f8df9fb
to
0a0f650
Compare
a185ae6
to
daa4ae1
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
b005bd7
to
bf28808
Compare
729d8d3
to
f7772d2
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
092624c
to
f3e8e13
Compare
TestingResults
Notes
|
7c1715d
to
d2ada22
Compare
closes #4215
closes #4055