<div class="unified-search__input-wrapper">
<form class="unified-search__form"
role="search"
+ :class="{'icon-loading-small': isLoading}"
@submit.prevent.stop="onInputEnter"
@reset.prevent.stop="onReset">
<!-- Search input -->
@keypress.enter.prevent.stop="onInputEnter">
<!-- Reset search button -->
- <input v-if="!!query"
+ <input v-if="!!query && !isLoading"
type="reset"
class="unified-search__form-reset icon-close"
:aria-label="t('core','Reset search')"
width: 100%;
margin: $margin;
+ // Loading spinner
+ &::after {
+ right: $input-padding;
+ left: auto;
+ }
+
&-input,
&-reset {
margin: $input-padding / 2;
}
// Ellipsis earlier if reset button is here
+ .icon-loading-small &,
&--with-reset {
padding-right: $input-height;
}