a11y: use a list for skip navigation links (#40927)

This commit is contained in:
Frédéric Péters 2020-03-28 20:09:12 +01:00
parent aeace20ade
commit 0ae2ae3a8f
2 changed files with 9 additions and 4 deletions

View File

@ -2,6 +2,11 @@
position: absolute;
top: 0;
width: 10em;
ul, li {
list-style: none;
margin: 0;
padding: 0;
}
}
#nav-skip a {

View File

@ -42,10 +42,10 @@
</head>
<body {% block bodyargs %}class="{% block bodyclasses %}{% endblock %}" {% block bodyattrs %}{% endblock %}{% endblock %}>
<div id="nav-skip">
<div>
<a href="#main-content">Aller au contenu</a>
<a href="#nav">Aller au menu</a>
</div>
<ul>
<li><a href="#main-content">Aller au contenu</a></li>
<li><a href="#nav">Aller au menu</a></li>
</ul>
</div>
<div id="page" {% block page-args %}{% endblock %}>