Skip to content
Snippets Groups Projects
Commit 69f9e311 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

add alt attributes, fixes #821

Closes #821

Merge request studip/studip!1394
parent d64eb2cc
No related branches found
No related tags found
No related merge requests found
...@@ -20,12 +20,9 @@ ...@@ -20,12 +20,9 @@
@include square(16px); @include square(16px);
margin-left: -22px; margin-left: -22px;
vertical-align: middle; vertical-align: middle;
opacity: 0;
transition: opacity $transition-duration;
} }
&.has-value #globalsearch-clear { &:not(.has-value) #globalsearch-clear {
opacity: 1; display: none;
} }
// The actual search input // The actual search input
...@@ -284,10 +281,6 @@ html.responsive-display { ...@@ -284,10 +281,6 @@ html.responsive-display {
top: calc($bar-bottom-container-height + $padding); top: calc($bar-bottom-container-height + $padding);
width: calc(100vw - (2 * $padding)); width: calc(100vw - (2 * $padding));
} }
#globalsearch-clear {
opacity: 1;
}
} }
} }
html:not(.size-large) { html:not(.size-large) {
......
<div id="globalsearch-searchbar" role="search" aria-label="<?= _('Globale Suche') ?>"> <div id="globalsearch-searchbar" role="search" aria-label="<?= _('Globale Suche') ?>">
<input class="hidden-small-down" type="text" name="globalsearchterm" id="globalsearch-input" <input class="hidden-small-down" type="text" name="globalsearchterm" id="globalsearch-input"
placeholder="<?= _('Was suchen Sie?') ?>" role="searchbox"> placeholder="<?= _('Was suchen Sie?') ?>" role="searchbox">
<?= Icon::create('decline', Icon::ROLE_INACTIVE)->asImg([ <?= Icon::create('decline', Icon::ROLE_INACTIVE)->asInput([
'id' => 'globalsearch-clear', 'id' => 'globalsearch-clear',
'class' => 'hidden-small-down' 'class' => 'hidden-small-down',
'alt' => _('Suche zurücksetzen'),
]) ?> ]) ?>
<?= Icon::create('search', Icon::ROLE_INFO_ALT)->asInput([ <?= Icon::create('search', Icon::ROLE_INFO_ALT)->asInput([
'id' => 'globalsearch-icon', 'id' => 'globalsearch-icon',
'aria-label' => _('Suche starten') 'alt' => _('Suche starten')
]) ?> ]) ?>
<div id="globalsearch-list"> <div id="globalsearch-list">
<a href="#" id="globalsearch-togglehints" data-toggle-text="<?= _('Tipps ausblenden') ?>"> <a href="#" id="globalsearch-togglehints" data-toggle-text="<?= _('Tipps ausblenden') ?>">
......
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