File tree 7 files changed +49
-36
lines changed
7 files changed +49
-36
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,14 @@ <h1 id="cms-title">{{ page.display_name }}</h1>
18
18
< aside class ="medium-4 columns sticky-container hide-for-small-only ">
19
19
< div class ="sticky " data-sticky data-margin-top ="0 "
20
20
data-anchor ="content " data-sticky-on ="large ">
21
- < div class ="section ">
22
- < h3 > {% trans "Table of Contents" %}</ h3 >
23
- < ul id ="toc ">
21
+ < section aria-labelledby ="toc-title ">
22
+ < div class ="section ">
23
+ < h3 id ="toc-title "> {% trans "Table of Contents" %}</ h3 >
24
+ < ul id ="toc ">
24
25
25
- </ ul >
26
- </ div >
26
+ </ ul >
27
+ </ div >
28
+ </ section >
27
29
</ div >
28
30
</ aside >
29
31
{% endif %}
Original file line number Diff line number Diff line change @@ -479,10 +479,12 @@ <h3>{% trans "Non Specialist Summary" %}</h3>
479
479
480
480
{% if article_content %}
481
481
< div id ="toc-section " class ="section hide-for-small-only ">
482
- < h3 > {% trans "Jump to" %}</ h3 >
483
- < ul id ="toc ">
482
+ < section aria-labelledby ="toc-title ">
483
+ < h3 id ="toc-title "> {% trans "Jump to" %}</ h3 >
484
+ < ul id ="toc ">
484
485
485
- </ ul >
486
+ </ ul >
487
+ </ section >
486
488
</ div >
487
489
{% endif %}
488
490
Original file line number Diff line number Diff line change @@ -15,10 +15,12 @@ <h1 id="cms-title">{{ page.display_name }}</h1>
15
15
</ div >
16
16
{% if page.display_toc %}
17
17
< div class ="col-md-4 d-none d-sm-none d-md-block ">
18
- < div class ="sticky-top ">
19
- < h2 > {% trans "Table of Contents" %}</ h2 >
20
- < ul id ="toc " class ="table-of-contents "> </ ul >
21
- </ div >
18
+ < section aria-labelledby ="toc-title ">
19
+ < div class ="sticky-top ">
20
+ < h2 id ="toc-title "> {% trans "Table of Contents" %}</ h2 >
21
+ < ul id ="toc " class ="table-of-contents "> </ ul >
22
+ </ div >
23
+ </ section >
22
24
</ div >
23
25
{% endif %}
24
26
</ div >
Original file line number Diff line number Diff line change @@ -339,8 +339,10 @@ <h2>{% trans 'File Checksums' %}</h2> (MD5)
339
339
</ div >
340
340
{% if article_content %}
341
341
< div class ="sticky-top " id ="toc-section ">
342
- < h2 > {% trans "Table of Contents" %}</ h2 >
343
- < ul id ="toc " class ="table-of-contents "> </ ul >
342
+ < section aria-labelledby ="toc-title ">
343
+ < h2 id ="toc-title "> {% trans "Table of Contents" %}</ h2 >
344
+ < ul id ="toc " class ="table-of-contents "> </ ul >
345
+ </ section >
344
346
</ div >
345
347
{% endif %}
346
348
</ div >
Original file line number Diff line number Diff line change @@ -18,15 +18,16 @@ <h1 class="no-bottom-margin">{{ page.display_name }}</h1>
18
18
</ div >
19
19
{% if page.display_toc %}
20
20
< div class ="col m3 hide-on-small-and-down ">
21
- < div class ="card toc-card " id ="toc-card "
22
- style ="display: none; ">
23
- < div class ="card-content ">
24
- < h4 >
25
- {% trans "Table of Contents" %}
26
- </ h4 >
27
- < ul id ="toc " class ="section table-of-contents ">
28
- </ ul >
29
- </ div >
21
+ < div class ="card toc-card " id ="toc-card " style ="display: none; ">
22
+ < section aria-labelledby ="toc-title ">
23
+ < div class ="card-content ">
24
+ < h4 id ="toc-title ">
25
+ {% trans "Table of Contents" %}
26
+ </ h4 >
27
+ < ul id ="toc " class ="section table-of-contents ">
28
+ </ ul >
29
+ </ div >
30
+ </ section >
30
31
</ div >
31
32
</ div >
32
33
{% endif %}
Original file line number Diff line number Diff line change @@ -480,15 +480,17 @@ <h4>
480
480
</ div >
481
481
</ div >
482
482
{% if article_content %}
483
- < div class ="card toc-card hide-on-small-only " id ="toc-card " style ="display: none; ">
484
- < div class ="card-content " id ="toc-section ">
485
- < h4 >
486
- {% trans "Table of Contents" %}
487
- </ h4 >
488
- < ul id ="toc " class ="section table-of-contents ">
489
- </ ul >
483
+ < div class ="card toc-card hide-on-small-only " id ="toc-card " style ="display: none; ">
484
+ < section aria-labelledby ="toc-title ">
485
+ < div class ="card-content " id ="toc-section ">
486
+ < h4 id ="toc-title ">
487
+ {% trans "Table of Contents" %}
488
+ </ h4 >
489
+ < ul id ="toc " class ="section table-of-contents ">
490
+ </ ul >
491
+ </ div >
492
+ </ section >
490
493
</ div >
491
- </ div >
492
494
{% endif %}
493
495
</ div >
494
496
Original file line number Diff line number Diff line change @@ -74,12 +74,14 @@ <h1>{% trans "Submissions" %}</h1>
74
74
</ div >
75
75
< div class ="col m4 ">
76
76
< div class ="card submission-toc-card hide-on-small-only " id ="toc-card ">
77
- < div class ="card-content ">
78
- < h4 > {% trans "Table of Contents" %}</ h4 >
77
+ < section aria-labelledby ="toc-title ">
78
+ < div class ="card-content ">
79
+ < h4 id ="toc-title "> {% trans "Table of Contents" %}</ h4 >
79
80
80
- < ul id ="toc " class ="section table-of-contents ">
81
- </ ul >
82
- </ div >
81
+ < ul id ="toc " class ="section table-of-contents ">
82
+ </ ul >
83
+ </ div >
84
+ </ section >
83
85
</ div >
84
86
</ div >
85
87
</ div >
You can’t perform that action at this time.
0 commit comments