1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-09-24 03:18:21 +02:00

Fixed tabbing behavior when search query is not empty

This commit is contained in:
squidfunk 2020-09-27 19:28:15 +02:00
parent bd3eb4158f
commit 723d040609
11 changed files with 18 additions and 16 deletions

View File

@ -1,6 +1,8 @@
mkdocs-material-6.x.x (2020-09-xx)
* Fixed stemmer support for file:// protocol through `iframe-worker`
* Fixed details marker showing for search result in Firefox
* Fixed tabbing behavior when search query is not empty
* Removed mkdocs and readthedocs themes from Docker image
mkdocs-material-6.0.0 (2020-09-25)

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,10 +1,10 @@
{
"assets/javascripts/bundle.js": "assets/javascripts/bundle.d5b17bb4.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.d5b17bb4.min.js.map",
"assets/javascripts/bundle.js": "assets/javascripts/bundle.5795c3cd.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.5795c3cd.min.js.map",
"assets/javascripts/vendor.js": "assets/javascripts/vendor.186f2b9b.min.js",
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.186f2b9b.min.js.map",
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.c9a3f22b.min.js",
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.c9a3f22b.min.js.map",
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.e0a2b82c.min.js",
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.e0a2b82c.min.js.map",
"assets/stylesheets/main.css": "assets/stylesheets/main.f6c1319f.min.css",
"assets/stylesheets/main.css.map": "assets/stylesheets/main.f6c1319f.min.css.map",
"assets/stylesheets/overrides.css": "assets/stylesheets/overrides.41a1bb10.min.css",

View File

@ -173,7 +173,7 @@
</div>
{% block scripts %}
<script src="{{ 'assets/javascripts/vendor.186f2b9b.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.d5b17bb4.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.5795c3cd.min.js' | url }}"></script>
{%- set translations = {} -%}
{%- for key in [
"clipboard.copy",
@ -200,7 +200,7 @@
base: "{{ base_url }}",
features: {{ config.theme.features or [] | tojson }},
search: Object.assign({
worker: "{{ 'assets/javascripts/worker/search.c9a3f22b.min.js' | url }}"
worker: "{{ 'assets/javascripts/worker/search.e0a2b82c.min.js' | url }}"
}, typeof search !== "undefined" && search)
})
</script>

View File

@ -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
*

View File

@ -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)