Skip to content

Commit 9cdebb7

Browse files
yhontykSecondSkoll
andauthored
feat: Add ARIA role to the dropdown list (#95)
Co-authored-by: Michael Park <michael.park@canonical.com>
1 parent 6512b6e commit 9cdebb7

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

canonical_sphinx/theme/templates/header.html

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,32 @@
2626
{% endif %}
2727
</li>
2828

29-
<li>
30-
<a href="#" class="p-navigation__link nav-more-links">More resources</a>
31-
<ul class="more-links-dropdown">
32-
29+
<li class="nav-dropdown">
30+
<a href="#" class="p-navigation__link nav-more-links"
31+
id="more-resources-toggle"
32+
aria-haspopup="true"
33+
aria-expanded="false">
34+
More resources
35+
</a>
36+
<ul class="more-links-dropdown" aria-labelledby="more-resources-toggle">
3337
{% if discourse %}
3438
<li>
3539
<a href="{{ discourse }}" class="p-navigation__sub-link p-dropdown__link">Discourse</a>
3640
</li>
3741
{% endif %}
38-
42+
3943
{% if mattermost %}
4044
<li>
4145
<a href="{{ mattermost }}" class="p-navigation__sub-link p-dropdown__link">Mattermost</a>
4246
</li>
4347
{% endif %}
44-
48+
4549
{% if matrix %}
4650
<li>
4751
<a href="{{ matrix }}" class="p-navigation__sub-link p-dropdown__link">Matrix</a>
4852
</li>
4953
{% endif %}
50-
54+
5155
{% if github_url %}
5256
<li>
5357
<a href="{{ github_url }}" class="p-navigation__sub-link p-dropdown__link">GitHub</a>

0 commit comments

Comments
 (0)