</script>
{#if aSearchResults && aSearchResults.length > 0}
- <div id="searchresults">
+ <div id="searchresults" role="list">
{#each aSearchResults as aResult, iResNum}
- <div class="result" class:highlight={iResNum === iHighlightNum} data-position="{iResNum}" on:click|stopPropagation={handleClick}>
+ <!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
+ <div class="result"
+ class:highlight={iResNum === iHighlightNum}
+ role="listitem"
+ data-position="{iResNum}"
+ on:click|stopPropagation={handleClick}
+ on:keypress|stopPropagation={handleClick}>
<div style="float:right">
<MapIcon aPlace={aResult} />
</div>
<span class="type">{formatLabel(aResult)}</span>
<p class="coords">{aResult.lat},{aResult.lon}</p>
- <DetailsLink extra_classes="btn btn-outline-secondary btn-sm" feature={aResult}>details</DetailsLink>
+ <DetailsLink extra_classes="btn btn-outline-secondary btn-sm" feature={aResult}>
+ details
+ </DetailsLink>
</div>
{/each}
}
.result .coords {
- display: none;
+ display: none;
}
.noresults{