From 26e2274f70121bed4afdda0aca2542572e7dae7f Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <tleilax+github@gmail.com>
Date: Tue, 14 Feb 2023 10:29:45 +0100
Subject: [PATCH] Revert "global search: add alt attributes and change display
 of reset icon, re #821"

This reverts commit 8b8f72dd826088f5dd243f1060be564992be898d.
---
 resources/assets/stylesheets/scss/globalsearch.scss | 4 ++--
 templates/globalsearch/searchbar.php                | 3 +--
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/resources/assets/stylesheets/scss/globalsearch.scss b/resources/assets/stylesheets/scss/globalsearch.scss
index 9087b0b0e7d..d4057b6c644 100644
--- a/resources/assets/stylesheets/scss/globalsearch.scss
+++ b/resources/assets/stylesheets/scss/globalsearch.scss
@@ -25,7 +25,7 @@
         transition: opacity $transition-duration;
     }
     &.has-value #globalsearch-clear {
-        display: inline;
+        opacity: 1;
     }
 
     // The actual search input
@@ -286,7 +286,7 @@ html.responsive-display {
         }
 
         #globalsearch-clear {
-            display: inline;
+            opacity: 1;
         }
     }
 }
diff --git a/templates/globalsearch/searchbar.php b/templates/globalsearch/searchbar.php
index 6c2f07b6b09..beb4ba22baa 100644
--- a/templates/globalsearch/searchbar.php
+++ b/templates/globalsearch/searchbar.php
@@ -3,8 +3,7 @@
            placeholder="<?= _('Was suchen Sie?') ?>" role="searchbox">
     <?= Icon::create('decline', Icon::ROLE_INACTIVE)->asImg([
         'id' => 'globalsearch-clear',
-        'class' => 'hidden-small-down',
-        'alt' => _('Suche zurücksetzen'),
+        'class' => 'hidden-small-down'
     ]) ?>
     <?= Icon::create('search', Icon::ROLE_INFO_ALT)->asInput([
         'id' => 'globalsearch-icon',
-- 
GitLab