changed section link text

This commit is contained in:
Heydon Pickering 2017-08-13 15:23:41 +01:00
parent 8bb7a3bdb3
commit cf3b228fa0
5 changed files with 3 additions and 5 deletions

View File

@ -636,7 +636,6 @@ p:empty {
color: #C83737;
}
/* SVG icons */
a svg,
button svg,
h1 svg {

View File

@ -69,7 +69,7 @@
var link = document.createElement('a');
link.setAttribute('href', '#' + id);
var headingText = heading.textContent;
link.setAttribute('aria-label', 'To this ' + headingText + ' section');
link.setAttribute('aria-label', 'This ' + headingText + ' section');
link.innerHTML = '<svg aria-hidden="true" viewBox="0 0 50 50" focusable="false"> <use xlink:href="#link"></use> </svg>';
container.appendChild(link);

File diff suppressed because one or more lines are too long

View File

@ -636,7 +636,6 @@ p:empty {
color: #C83737;
}
/* SVG icons */
a svg,
button svg,
h1 svg {

View File

@ -69,7 +69,7 @@
var link = document.createElement('a');
link.setAttribute('href', '#' + id);
var headingText = heading.textContent;
link.setAttribute('aria-label', 'To this ' + headingText + ' section');
link.setAttribute('aria-label', 'This ' + headingText + ' section');
link.innerHTML = '<svg aria-hidden="true" viewBox="0 0 50 50" focusable="false"> <use xlink:href="#link"></use> </svg>';
container.appendChild(link);