mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-08-04 03:25:13 -04:00
Fixed tabbing behavior when search query is not empty
This commit is contained in:
@@ -83,10 +83,10 @@ async function fetchSearchIndex(url: string): Promise<SearchIndex> {
|
||||
* This function will automatically import the stemmers necessary to process
|
||||
* the languages which were given through the search index configuration.
|
||||
*
|
||||
* If the worker runs inside of an `iframe` (when using `iframe-worker` as a
|
||||
* shim), the base URL must be determined by searching for the first `script`
|
||||
* element with a `src` attribute, which will equal the worker script, and
|
||||
* determine the base URL by examining the worker URL.
|
||||
* If the worker runs inside of an `iframe` (when using `iframe-worker` as
|
||||
* a shim), the base URL for the stemmers to be loaded must be determined by
|
||||
* searching for the first `script` element with a `src` attribute, which will
|
||||
* contain the contents of this script.
|
||||
*
|
||||
* @param config - Search index configuration
|
||||
*
|
||||
|
||||
@@ -169,7 +169,7 @@ export function renderSearchResult(
|
||||
...best.map(renderSection),
|
||||
...more.length ? [
|
||||
<details class={css.more}>
|
||||
<summary>
|
||||
<summary tabIndex={-1}>
|
||||
{more.length > 0 && more.length === 1
|
||||
? translate("search.result.more.one")
|
||||
: translate("search.result.more.other", more.length)
|
||||
|
||||
Reference in New Issue
Block a user