]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
🐛 — Fix duplicated icons on "Search engine" and "new link" forms 4149/head
authorLuc Didry <luc@didry.org>
Tue, 8 Oct 2019 22:57:08 +0000 (00:57 +0200)
committerLuc Didry <luc@didry.org>
Tue, 8 Oct 2019 22:57:08 +0000 (00:57 +0200)
src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/new_form.html.twig
src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/search_form.html.twig

index e0d5e7940147957855b985129ae960a7cffe351b..4cf8116746485ae6594baf21e5d0ce901ad9f3e5 100644 (file)
@@ -2,14 +2,14 @@
     {% if form_errors(form) %}
         <span class="black-text">{{ form_errors(form) }}</span>
     {% endif %}
-    <button type="submit" class="nav-form-button"><i class="material-icons add">add</i></button>
+    <button type="submit" class="nav-form-button" aria-label="add"><i class="material-icons add" aria-hidden="true"></i></button>
 
     {% if form_errors(form.url) %}
         <span class="black-text">{{ form_errors(form.url) }}</span>
     {% endif %}
 
     {{ form_widget(form.url, { 'attr': {'autocomplete': 'off', 'placeholder': 'entry.new.placeholder'} }) }}
-    <i class="material-icons close">clear</i>
+    <i class="material-icons close" aria-label="clear" role="button"></i>
 
     {{ form_rest(form) }}
 </form>
index ba1b3aac5542bdfa4904d710a3284cd4a0506e08..0ae8b0b333899a0647a996479f2c3e0ee6a1c6b1 100644 (file)
@@ -2,7 +2,7 @@
     {% if form_errors(form) %}
         <span class="black-text">{{ form_errors(form) }}</span>
     {% endif %}
-    <button type="submit" class="nav-form-button"><i class="material-icons search">search</i></button>
+    <button type="submit" class="nav-form-button" aria-label="search"><i class="material-icons search" aria-hidden="true"></i></button>
 
     {% if form_errors(form.term) %}
         <span class="black-text">{{ form_errors(form.term) }}</span>
@@ -11,7 +11,7 @@
     <input type="hidden" name="currentRoute" value="{{ currentRoute }}" />
 
     {{ form_widget(form.term, { 'attr': {'autocomplete': 'off', 'placeholder': 'entry.search.placeholder'} }) }}
-    <i class="material-icons close">clear</i>
+    <i class="material-icons close" aria-label="clear" role="button"></i>
 
     {{ form_rest(form) }}
 </form>