Skip to content

Commit

Permalink
Make SVG menu icon accessible, refs #1064
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Oct 30, 2020
1 parent 0d7ac76 commit bfac359
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datasette/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
<body class="{% block body_class %}{% endblock %}">
<header><nav>{% block nav %}
<details class="nav-menu">
<summary><svg
<summary><svg aria-labelledby="nav-menu-svg-title" role="img"
fill="currentColor" stroke="currentColor" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16" width="16" height="16">
<title id="nav-menu-svg-title">Menu</title>
<path fill-rule="evenodd" d="M1 2.75A.75.75 0 011.75 2h12.5a.75.75 0 110 1.5H1.75A.75.75 0 011 2.75zm0 5A.75.75 0 011.75 7h12.5a.75.75 0 110 1.5H1.75A.75.75 0 011 7.75zM1.75 12a.75.75 0 100 1.5h12.5a.75.75 0 100-1.5H1.75z"></path>
</svg></summary>
<div class="nav-menu-inner">
Expand Down

0 comments on commit bfac359

Please sign in to comment.