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