Skip to content
Snippets Groups Projects
Commit 364121ec authored by Thomas Hackl's avatar Thomas Hackl
Browse files

Resolve "Sidebar-Suchwidget verwendet einen Link für das Zurücksetzen-Icon statt eines Buttons"

Closes #1719

Merge request studip/studip!1122
parent eaba32ef
No related branches found
No related tags found
No related merge requests found
...@@ -324,7 +324,7 @@ select.sidebar-selectlist { ...@@ -324,7 +324,7 @@ select.sidebar-selectlist {
width: 100%; width: 100%;
} }
button { .submit-search {
background-color: $content-color-20; background-color: $content-color-20;
border: 1px solid $base-color-60; border: 1px solid $base-color-60;
border-left-color: $light-gray-color-40; border-left-color: $light-gray-color-40;
...@@ -336,6 +336,7 @@ select.sidebar-selectlist { ...@@ -336,6 +336,7 @@ select.sidebar-selectlist {
} }
.reset-search { .reset-search {
background-color: transparent;
border: 1px solid $base-color-60; border: 1px solid $base-color-60;
border-left: 0; border-left: 0;
border-right: 0; border-right: 0;
......
...@@ -8,10 +8,10 @@ ...@@ -8,10 +8,10 @@
v-model="searchTerm" v-model="searchTerm"
:aria-label="$gettext('Geben Sie einen Suchbegriff mit mindestens 3 Zeichen ein.')" :aria-label="$gettext('Geben Sie einen Suchbegriff mit mindestens 3 Zeichen ein.')"
/> />
<a v-if="searched" @click.prevent="setShowSearchResults(false)" <button v-if="searched" @click.prevent="setShowSearchResults(false)"
class="reset-search"> class="reset-search" :title="$gettext('Suche zurücksetzen')">
<studip-icon shape="decline" size="20"></studip-icon> <studip-icon shape="decline" size="20"></studip-icon>
</a> </button>
<button <button
type="submit" type="submit"
:value="$gettext('Suchen')" :value="$gettext('Suchen')"
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<?= arrayToHtmlAttributes($needle['attributes']) ?>> <?= arrayToHtmlAttributes($needle['attributes']) ?>>
<? endif; ?> <? endif; ?>
<? if ($reset_link): ?> <? if ($reset_link): ?>
<a class="reset-search" href="<?= $reset_link ?>" tabindex="0" <a class="reset-search" href="<?= $reset_link ?>" tabindex="0" role="button"
title="<?= _('Suche zurücksetzen') ?>"> title="<?= _('Suche zurücksetzen') ?>">
<?= Icon::create('decline')->asImg(20) ?> <?= Icon::create('decline')->asImg(20) ?>
</a> </a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment