Skip to content
Snippets Groups Projects
Commit 30e8ad3f authored by Moritz Strohm's avatar Moritz Strohm
Browse files

MultiPersonSearch: made icons for starting and resetting the search accessible, fixes #4029

Closes #4029

Merge request studip/studip!2901
parent ee81dee9
No related branches found
No related tags found
No related merge requests found
...@@ -10,8 +10,12 @@ ...@@ -10,8 +10,12 @@
<span><?= htmlReady($description); ?></span> <span><?= htmlReady($description); ?></span>
<input id="<?= $name . '_searchinput'; ?>" type="text" placeholder="<?= _("Suchen"); ?>" value="" name="<?= $name . '_searchinput'; ?>" style="width: 260px;" aria-label="<?= _("Suchen"); ?>"> <input id="<?= $name . '_searchinput'; ?>" type="text" placeholder="<?= _("Suchen"); ?>" value="" name="<?= $name . '_searchinput'; ?>" style="width: 260px;" aria-label="<?= _("Suchen"); ?>">
<?= Icon::create('search', 'clickable', ['title' => _('Suche starten')])->asImg(16, ['onclick' => 'STUDIP.MultiPersonSearch.search()']) ?> <button class="icon-button enter-accessible" onclick='STUDIP.MultiPersonSearch.search();return false' title="<?= _('Suche starten') ?>">
<?= Icon::create('decline', 'clickable', ['title' => _('Suche zurücksetzen')])->asImg(16, ['onclick' => 'STUDIP.MultiPersonSearch.resetSearch()']) ?> <?= Icon::create('search')->asImg(['class' => 'text-bottom']) ?>
</button>
<button class="icon-button enter-accessible" onclick='STUDIP.MultiPersonSearch.resetSearch(); return false' title="<?= _('Suche zurücksetzen') ?>">
<?= Icon::create('decline')->asImg(['class' => 'text-bottom']) ?>
</button>
</label> </label>
<p><? foreach($quickfilter as $title => $users) : ?> <p><? foreach($quickfilter as $title => $users) : ?>
<a href="#" class="quickfilter" data-quickfilter="<?= md5($title); ?>"><?= htmlReady($title); ?> (<?= count($users); ?>)</a> <a href="#" class="quickfilter" data-quickfilter="<?= md5($title); ?>"><?= htmlReady($title); ?> (<?= count($users); ?>)</a>
......
...@@ -137,9 +137,12 @@ button.button { ...@@ -137,9 +137,12 @@ button.button {
} }
button.styleless { button {
background-color: unset; &.styleless,
border: 0; &.icon-button {
background-color: unset;
border: 0;
}
} }
button.as-link { button.as-link {
......
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