Skip to content

Commit 83f8777

Browse files
committed
a11y: #4232 aria markup added to hr tags
1 parent 51b3629 commit 83f8777

File tree

25 files changed

+34
-34
lines changed

25 files changed

+34
-34
lines changed

src/themes/OLH/templates/cms/page.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<div class="row">
1010
<div class="{% if page.display_toc %}border-right medium-8 small-12{% else %}medium-12{% endif %} columns">
1111
<h1 id="cms-title">{{ page.display_name }}</h1>
12-
<hr/>
12+
<hr aria-hidden="true" />
1313
<div id="main_article">
1414
{{ page.content|safe }}
1515
</div>

src/themes/OLH/templates/core/accounts/public_profile.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,16 @@ <h1>{{ user.full_name }}</h1>
4343
<div class="large-9 columns">
4444
{% if user.biography %}
4545
<h2>{% trans "Biography" %}</h2>
46-
<hr />
46+
<hr aria-hidden="true" />
4747
{{ user.biography|safe }}
4848
<br/><br/>
4949
{% endif %}
5050
{% if user.published_articles %}
5151
<h2>{% trans "Publications" %}</h2>
52-
<hr />
52+
<hr aria-hidden="true" />
5353
{% for article in user.published_articles %}
5454
{% include "elements/journal/box_article.html" with article=article level="shallow" %}
55-
<hr />
55+
<hr aria-hidden="true" />
5656
{% endfor %}
5757
{% endif %}
5858
</div>

src/themes/OLH/templates/elements/journal/issue_block.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h2 class="em">
2020
</h2>
2121
{% endif %}
2222

23-
<hr>
23+
<hr aria-hidden="true" />
2424
{% for article in section_articles %}
2525
{% if level == "deep" %}
2626
{% include "elements/journal/box_article.html" with article=article level=level %}

src/themes/OLH/templates/journal/article.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ <h1>{{ article.title|safe }}</h1>
207207
{% endfor %}
208208
</ul>
209209
</div>
210-
<hr/>
210+
<hr aria-hidden="true" />
211211
{% endif %}
212212
{% if article.abstract and article.abstract != ''%}
213213
<h2>{% trans "Abstract" %}</h2>

src/themes/OLH/templates/journal/editorial_team.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ <h3 class="profile-name">{{ member.user.full_name }}</h3>
5050
{% endif %}
5151
{% endfor %}
5252
</div>
53-
<hr/>
53+
<hr aria-hidden="true" />
5454
{% endfor %}
5555
</div>
5656
</section>

src/themes/OLH/templates/journal/full-text-search.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h1>{% trans 'All Articles' %}></h1>
2121

2222
<div class="row">
2323
<div class="columns large-8">
24-
<hr />
24+
<hr aria-hidden="true" />
2525
{% for article in articles %}
2626
{% include "elements/journal/box_article.html" with article=article %}
2727
{% empty %}

src/themes/OLH/templates/journal/homepage_elements/news.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h3>{{ item.title|safe }}</h3>
3131
{% if display_images %}
3232
</div>
3333
{% endif %}
34-
<hr />
34+
<hr aria-hidden="true" />
3535
{% empty %}
3636
<h3>{% trans "This journal currently has no news items to display" %}.</h3>
3737
{% endfor %}

src/themes/OLH/templates/journal/submissions.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,21 @@ <h1>{% trans 'Submissions' %}</h1>
3939
<a href="{% url 'submission_start' %}" class="button">{% trans 'Start Submission' %}</a>{% endif %}
4040
</div>
4141
{% endif %}
42-
<hr />
42+
<hr aria-hidden="true" />
4343

4444
{% for item in submission_items %}
4545
{% if item.title == 'licences' %}
4646
<h2>{% trans 'Licences' %}</h2>
4747
<p>{% trans "The following licences are allowed:" %}</p>
4848
{% include "elements/license_block.html" %}
49-
<hr />
49+
<hr aria-hidden="true" />
5050
{% elif item.title == 'sections' %}
5151
{% include "elements/section_block.html" %}
5252
{% elif item.get_display_text %}
5353
<h2>{{ item.title|capfirst }}</h2>
5454
{{ item.get_display_text|safe }}
5555
{% endif %}
56-
<hr />
56+
<hr aria-hidden="true" />
5757
{% endfor %}
5858

5959
</div>

src/themes/OLH/templates/press/cms/page.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<section id="content">
1313
<div class="row column">
1414
<h1>{{ page.display_name }}</h1>
15-
<hr />
15+
<hr aria-hidden="true" />
1616
{{ page.content|safe }}
1717
</div>
1818
</section>

src/themes/OLH/templates/repository/list.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ <h2>{{ preprint.title|safe }}</h2>
4343
<p>{{ preprint.abstract|striptags|truncatesmart:400 }}</p>
4444
</div>
4545
</div>
46-
<hr />
46+
<hr aria-hidden="true" />
4747
</div>
4848
{% endfor %}
4949
</section>

src/themes/clean/templates/cms/page.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div class="row">
1111
<div class="{% if page.display_toc %}col-md-8 col-sm-12{% else %}col-md-12{% endif %}">
1212
<h1 id="cms-title">{{ page.display_name }}</h1>
13-
<hr/>
13+
<hr aria-hidden="true" />
1414
<div id="main_article">{{ page.content|safe }}</div>
1515
</div>
1616
{% if page.display_toc %}

src/themes/clean/templates/core/accounts/public_profile.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ <h1>{{ user.full_name }}</h1>
1717
<div class="col-md-9">
1818
{% if user.biography %}
1919
<h2>{% trans "Biography" %}</h2>
20-
<hr />
20+
<hr aria-hidden="true" />
2121
{{ user.biography|safe }}
2222
<br/><br/>
2323
{% endif %}
2424
{% if user.published_articles %}
2525
<h2>{% trans "Publications" %}</h2>
26-
<hr />
26+
<hr aria-hidden="true" />
2727
{% for article in user.published_articles %}
2828
{% include "elements/article_listing.html" with article=article level="shallow" %}
29-
<hr />
29+
<hr aria-hidden="true" />
3030
{% endfor %}
3131
{% endif %}
3232
</div>

src/themes/clean/templates/core/news/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h2>{{ item.title|safe }}</h2>
1515
<p class="byline">{{ item.byline }} on {{ item.posted|date:"Y-m-d" }}</p>
1616
<p>{{ item.body|truncatewords_html:50|safe }}</p>
1717
<a href="{% url 'core_news_item' item.pk %}">{% trans 'Read More' %}</a>
18-
<hr/>
18+
<hr aria-hidden="true" />
1919
</div>
2020
{% empty %}
2121
<h2> {% trans 'This journal currently has no {{ journal_settings.news.news_title }} items to display.' %}</h2>

src/themes/clean/templates/core/news/item.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<div class="row">
1212
<div class="col-md-12">
1313
<h1>{{ news_item.title|safe }}</h1>
14-
<hr/>
14+
<hr aria-hidden="true" />
1515
</div>
1616
<div class="col-md-12">
1717
<p class="byline">{{ news_item.byline }} on {{ news_item.posted|date:"Y-m-d" }}</p>

src/themes/clean/templates/journal/full-text-search.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h1>{% trans 'Article Search Results' %}</h1>
2121

2222
<div class="row">
2323
<div class="col-md-8">
24-
<hr />
24+
<hr aria-hidden="true" />
2525
{% for article in articles %}
2626
{% include "elements/article_listing.html" with article=article %}
2727
{% empty %}

src/themes/clean/templates/journal/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ <h1 class="sr-only">{{ request.journal.name }} {% trans 'Home Page' %} </h1>
77
<div class="homepage-element-wrapper homepage-element-{{ element.name|slugify }}">
88
{% include element.template_path %}
99
</div>
10-
<hr>
10+
<hr aria-hidden="true" />
1111
{% endfor %}
1212

1313
{% endblock body %}

src/themes/clean/templates/journal/search.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h1>{% trans 'Article Search Results' %}</h1>
2020

2121
<div class="row">
2222
<div class="col-md-8">
23-
<hr />
23+
<hr aria-hidden="true" />
2424

2525
{% for article in articles %}
2626
{% include "elements/article_listing.html" with article=article %}

src/themes/clean/templates/journal/submissions.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h1>{% trans 'Submissions' %}</h1>
2424
{% else %}
2525
<a href="{% url 'submission_start' %}" class="btn btn-primary">{% trans 'Start Submission' %}</a>{% endif %}
2626
</div>
27-
<hr/>
27+
<hr aria-hidden="true" />
2828
{% for item in submission_items %}
2929
{% if item.title == 'licences' %}
3030
<h2>
@@ -39,7 +39,7 @@ <h2>
3939
{{ item.title|capfirst }}
4040
</h2>
4141
{{ item.get_display_text|safe }}
42-
<hr />
42+
<hr aria-hidden="true" />
4343
{% endif %}
4444
{% endfor %}
4545
</div>

src/themes/clean/templates/press/cms/page.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<div class="row">
1313
<div class="col-md-12">
1414
<h1>{{ page.display_name }}</h1>
15-
<hr />
15+
<hr aria-hidden="true" />
1616
{{ page.content|safe }}
1717
</div>
1818
</div>

src/themes/clean/templates/press/core/news/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h2>{{ item.title }}</h2>
1515
<p class="byline">Posted by {{ item.posted_by.full_name }} on {{ item.posted|date:"Y-m-d" }}</p>
1616
<p>{{ item.body|striptags|truncatesmart:400 }}</p>
1717
<a href="{% url 'core_news_item' item.pk %}">{% trans 'Read More' %}</a>
18-
<hr/>
18+
<hr aria-hidden="true" />
1919
</div>
2020
{% empty %}
2121
<h2>{% trans 'This journal currently has no news items to display' %}.</h2>

src/themes/clean/templates/press/core/news/item.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="row">
88
<div class="col-md-12">
99
<h1>{{ news_item.title }}</h1>
10-
<hr/>
10+
<hr aria-hidden="true" />
1111
</div>
1212
<div class="col-md-12">
1313
<p class="byline">Posted by {{ news_item.posted_by.full_name }} on {{ news_item.posted|date:"Y-m-d" }}</p>

src/themes/material/templates/core/accounts/public_profile.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ <h1>{{ user.full_name }}</h1>
1717
<div class="col m9">
1818
{% if user.biography %}
1919
<h2>{% trans "Biography" %}</h2>
20-
<hr />
20+
<hr aria-hidden="true" />
2121
{{ user.biography|safe }}
2222
<br/><br/>
2323
{% endif %}
2424
{% if user.published_articles %}
2525
<h2>{% trans "Publications" %}</h2>
26-
<hr />
26+
<hr aria-hidden="true" />
2727
{% for article in user.published_articles %}
2828
{% include "elements/article_listing.html" with article=article level="deep" %}
29-
<hr />
29+
<hr aria-hidden="true" />
3030
{% endfor %}
3131
{% endif %}
3232
</div>

src/themes/material/templates/journal/full-text-search.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h1>{% trans 'Article Search Results' %}</h1>
2121

2222
<div class="row">
2323
<div class="col m8">
24-
<hr />
24+
<hr aria-hidden="true" />
2525
{% for article in articles %}
2626
{% include "elements/article_listing.html" with article=article %}
2727
{% empty %}

src/themes/material/templates/preprints/list.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<div class="row">
1313
<div class="col m12">
1414
<h1 id="all-preprints-title">{% trans "All Preprints" %}</h1>
15-
<hr/>
15+
<hr aria-hidden="true" />
1616
</div>
1717
<div class="col m8">
1818

src/themes/material/templates/repository/home.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h1 class="center">{{ request.repository.name }}</h1>
2424
</div>
2525

2626
<div class="input-field col s10 offset-m1 spacer">
27-
<hr class="homepage-hr" />
27+
<hr aria-hidden="true" class="homepage-hr" />
2828
</div>
2929

3030
<div class="input-field col s12 m6 offset-m3 spacer">

0 commit comments

Comments
 (0)