Skip to content

Commit d6e48ee

Browse files
Andy-set-studiobmuenzenmeyer
authored andcommitted
Merge pull request #63 from AutoSponge/master
fix(a11y): removes invalid role=text
1 parent 356522e commit d6e48ee

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/docs/src/_includes/layouts/post.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{% if date %}
99
<time datetime="{{ date | w3DateFilter }}" class="dt-published">{{ date | dateFilter }}</time>
1010
{% endif %}
11-
<span role="text">— {{ helpers.getReadingTime(content) }} minute read</span>
11+
<span>— {{ helpers.getReadingTime(content) }} minute read</span>
1212
</p>
1313
{% endset %}
1414

packages/docs/src/_includes/partials/components/pagination.njk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
<nav class="[ pagination__nav ] [ box-flex space-between align-center ]">
88
{% if paginationPrevUrl %}
99
<a href="{{ paginationPrevUrl }}" class="{{ paginationLinkTokens }}" data-direction="backwards">
10-
<span role="text">{{ paginationPrevText if paginationPrevText else 'Previous' }}</span>
10+
<span>{{ paginationPrevText if paginationPrevText else 'Previous' }}</span>
1111
{% include "icons/arrow.svg" %}
1212
</a>
1313
{% endif %}
1414
{% if paginationNextUrl %}
1515
<a href="{{ paginationNextUrl }}" class="{{ paginationLinkTokens }}" data-direction="forwards">
16-
<span role="text">{{ paginationNextText if paginationNextText else 'Next' }}</span>
16+
<span>{{ paginationNextText if paginationNextText else 'Next' }}</span>
1717
{% include "icons/arrow.svg" %}
1818
</a>
1919
{% endif %}

packages/docs/src/transforms/parse-transform.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module.exports = function(value, outputPath) {
4747
anchor.setAttribute('href', `#heading-${headingSlug}`);
4848
anchor.classList.add('heading-permalink');
4949
anchor.innerHTML = minify(`
50-
<span role="text" class="visually-hidden"> permalink</span>
50+
<span class="visually-hidden"> permalink</span>
5151
<svg fill="currentColor" aria-hidden="true" focusable="false" width="1em" height="1em" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
5252
<path d="M9.199 13.599a5.99 5.99 0 0 0 3.949 2.345 5.987 5.987 0 0 0 5.105-1.702l2.995-2.994a5.992 5.992 0 0 0 1.695-4.285 5.976 5.976 0 0 0-1.831-4.211 5.99 5.99 0 0 0-6.431-1.242 6.003 6.003 0 0 0-1.905 1.24l-1.731 1.721a.999.999 0 1 0 1.41 1.418l1.709-1.699a3.985 3.985 0 0 1 2.761-1.123 3.975 3.975 0 0 1 2.799 1.122 3.997 3.997 0 0 1 .111 5.644l-3.005 3.006a3.982 3.982 0 0 1-3.395 1.126 3.987 3.987 0 0 1-2.632-1.563A1 1 0 0 0 9.201 13.6zm5.602-3.198a5.99 5.99 0 0 0-3.949-2.345 5.987 5.987 0 0 0-5.105 1.702l-2.995 2.994a5.992 5.992 0 0 0-1.695 4.285 5.976 5.976 0 0 0 1.831 4.211 5.99 5.99 0 0 0 6.431 1.242 6.003 6.003 0 0 0 1.905-1.24l1.723-1.723a.999.999 0 1 0-1.414-1.414L9.836 19.81a3.985 3.985 0 0 1-2.761 1.123 3.975 3.975 0 0 1-2.799-1.122 3.997 3.997 0 0 1-.111-5.644l3.005-3.006a3.982 3.982 0 0 1 3.395-1.126 3.987 3.987 0 0 1 2.632 1.563 1 1 0 0 0 1.602-1.198z"/>
5353
</svg>`);

0 commit comments

Comments
 (0)