Add tabindex to search result links

This makes the links appear in the relatedElement-field of the focusout event
This commit is contained in:
Magnus Hoff 2017-10-26 11:32:45 +02:00
parent d947334cfc
commit 1c820c9db0
2 changed files with 8 additions and 7 deletions

View file

@ -8,13 +8,7 @@
<link href="_assets/style-{{style_css_checksum()}}.css" rel="stylesheet">
</head>
<body>
<form class="search keyboard-focus-control" action=_search method=GET>
<input data-focusindex="0" type=search name=q placeholder=search autocomplete=off>
<ul class="live-results search-results">
</ul>
</form>
<ul id="search-result-prototype" class="prototype"><li class="search-result"><a class="link" href=""><span class="title"></span> &ndash; <span class="snippet"></span></a></li></ul>
<script src="_assets/search-{{search_js_checksum()}}.js" defer></script>
{{>search_input.html}}
{{{body}}}
</body>
</html>

View file

@ -0,0 +1,7 @@
<form class="search keyboard-focus-control" action=_search method=GET>
<input data-focusindex="0" type=search name=q placeholder=search autocomplete=off>
<ul class="live-results search-results">
</ul>
</form>
<ul id="search-result-prototype" class="prototype"><li class="search-result"><a tabindex="0" class="link" href=""><span class="title"></span> &ndash; <span class="snippet"></span></a></li></ul>
<script src="_assets/search-{{search_js_checksum()}}.js" defer></script>