diff options
Diffstat (limited to 'app/views/search/_form.html.haml')
-rw-r--r-- | app/views/search/_form.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/search/_form.html.haml b/app/views/search/_form.html.haml index b29707d391d..c8fa016662f 100644 --- a/app/views/search/_form.html.haml +++ b/app/views/search/_form.html.haml @@ -9,8 +9,8 @@ = _("What are you searching for?") .position-relative = search_field_tag :search, params[:search], placeholder: _("Search for projects, issues, etc."), class: "form-control search-text-input js-search-input", id: "dashboard_search", autofocus: true, spellcheck: false - = icon("search", class: "search-icon") - %button.search-clear.js-search-clear{ class: ("hidden" if !params[:search].present?), type: "button", tabindex: "-1" } + = sprite_icon('search', css_class: 'search-icon') + %button.search-clear.js-search-clear{ class: [("hidden" if params[:search].blank?), "has-tooltip"], type: "button", tabindex: "-1", title: _('Clear') } = sprite_icon('clear') %span.sr-only = _("Clear search") |