Skip to content

Commit 263a85d

Browse files
authored
Merge pull request #5536 from pawamoy/patch-6
Strip tags of ToC item's aria label
2 parents ac7b96f + 3f978d8 commit 263a85d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

material/partials/toc-item.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{{ toc_item.title }}
77
</a>
88
{% if toc_item.children %}
9-
<nav class="md-nav" aria-label="{{ toc_item.title }}">
9+
<nav class="md-nav" aria-label="{{ toc_item.title | striptags }}">
1010
<ul class="md-nav__list">
1111
{% for toc_item in toc_item.children %}
1212
{% include "partials/toc-item.html" %}

src/partials/toc-item.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
<!-- Table of contents list -->
3030
{% if toc_item.children %}
31-
<nav class="md-nav" aria-label="{{ toc_item.title }}">
31+
<nav class="md-nav" aria-label="{{ toc_item.title | striptags }}">
3232
<ul class="md-nav__list">
3333
{% for toc_item in toc_item.children %}
3434
{% include "partials/toc-item.html" %}

0 commit comments

Comments
 (0)