changed section link text
This commit is contained in:
parent
8bb7a3bdb3
commit
cf3b228fa0
|
@ -636,7 +636,6 @@ p:empty {
|
||||||
color: #C83737;
|
color: #C83737;
|
||||||
}
|
}
|
||||||
/* SVG icons */
|
/* SVG icons */
|
||||||
|
|
||||||
a svg,
|
a svg,
|
||||||
button svg,
|
button svg,
|
||||||
h1 svg {
|
h1 svg {
|
||||||
|
|
|
@ -69,7 +69,7 @@
|
||||||
var link = document.createElement('a');
|
var link = document.createElement('a');
|
||||||
link.setAttribute('href', '#' + id);
|
link.setAttribute('href', '#' + id);
|
||||||
var headingText = heading.textContent;
|
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>';
|
link.innerHTML = '<svg aria-hidden="true" viewBox="0 0 50 50" focusable="false"> <use xlink:href="#link"></use> </svg>';
|
||||||
|
|
||||||
container.appendChild(link);
|
container.appendChild(link);
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -636,7 +636,6 @@ p:empty {
|
||||||
color: #C83737;
|
color: #C83737;
|
||||||
}
|
}
|
||||||
/* SVG icons */
|
/* SVG icons */
|
||||||
|
|
||||||
a svg,
|
a svg,
|
||||||
button svg,
|
button svg,
|
||||||
h1 svg {
|
h1 svg {
|
||||||
|
|
|
@ -69,7 +69,7 @@
|
||||||
var link = document.createElement('a');
|
var link = document.createElement('a');
|
||||||
link.setAttribute('href', '#' + id);
|
link.setAttribute('href', '#' + id);
|
||||||
var headingText = heading.textContent;
|
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>';
|
link.innerHTML = '<svg aria-hidden="true" viewBox="0 0 50 50" focusable="false"> <use xlink:href="#link"></use> </svg>';
|
||||||
|
|
||||||
container.appendChild(link);
|
container.appendChild(link);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user