Removed required attribute on search input

This commit is contained in:
squidfunk 2020-03-21 17:12:58 +01:00
parent d807cbd1fc
commit 035225d6d3
9 changed files with 11 additions and 11 deletions

View File

@ -1,10 +1,10 @@
{
"assets/javascripts/bundle.js": "assets/javascripts/bundle.59c8d50f.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.59c8d50f.min.js.map",
"assets/javascripts/bundle.js": "assets/javascripts/bundle.7ea61618.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.7ea61618.min.js.map",
"assets/javascripts/vendor.js": "assets/javascripts/vendor.0c35f0aa.min.js",
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.0c35f0aa.min.js.map",
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.2613054f.min.js",
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.2613054f.min.js.map",
"assets/stylesheets/main.css": "assets/stylesheets/main.b9803391.min.css",
"assets/stylesheets/main.css": "assets/stylesheets/main.a59423ce.min.css",
"assets/stylesheets/palette.css": "assets/stylesheets/palette.4444686e.min.css"
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -41,7 +41,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.b9803391.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.a59423ce.min.css' | url }}">
{% if palette.primary or palette.accent %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.4444686e.min.css' | url }}">
{% endif %}
@ -178,7 +178,7 @@
{% endblock %}
{% block scripts %}
<script src="{{ 'assets/javascripts/vendor.0c35f0aa.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.59c8d50f.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.7ea61618.min.js' | url }}"></script>
{%- set translations = {} -%}
{%- for key in [
"clipboard.copy",

View File

@ -6,7 +6,7 @@
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
<input type="text" class="md-search__input" name="query" aria-label="{{ lang.t('search.placeholder') }}" placeholder="{{ lang.t('search.placeholder') }}" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
<input type="text" class="md-search__input" name="query" aria-label="{{ lang.t('search.placeholder') }}" placeholder="{{ lang.t('search.placeholder') }}" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active">
<label class="md-search__icon md-icon" for="__search">
{% include ".icons/material/magnify.svg" %}
{% include ".icons/material/arrow-left.svg" %}

View File

@ -394,7 +394,8 @@ $md-toggle__search--checked:
}
// Show reset button if search is active and input non-empty
#{$md-toggle__search--checked} .md-search__input:valid ~ & {
#{$md-toggle__search--checked}
.md-search__input:not(:placeholder-shown) ~ & {
transform: scale(1);
opacity: 1;
pointer-events: initial;

View File

@ -39,7 +39,6 @@
spellcheck="false"
data-md-component="search-query"
data-md-state="active"
required
/>
<label class="md-search__icon md-icon" for="__search">
{% include ".icons/material/magnify.svg" %}