summaryrefslogtreecommitdiff
path: root/app/views/layouts
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-05-24 16:57:26 +0100
committerPhil Hughes <me@iamphill.com>2016-05-24 16:59:18 +0100
commita29b45b061a0f2669818fde8fa324baac92b1d71 (patch)
tree9e439a816bbd4ac45c3af6ab9c1472597a96d71b /app/views/layouts
parent3b10a44f47d51f64f8ecc1d261c160a25ffc8e81 (diff)
downloadgitlab-ce-a29b45b061a0f2669818fde8fa324baac92b1d71.tar.gz
Clicking search pill focuses fieldsearch-box-blur
When clicking the pill in the search field, it now focus the field. Previously you would have to make sure you click in the field. Fixed an issue where clicking out of the field wouldn't remove the focus outline Also reduced some of the HTML to remove what isn't needed
Diffstat (limited to 'app/views/layouts')
-rw-r--r--app/views/layouts/_search.html.haml7
1 files changed, 2 insertions, 5 deletions
diff --git a/app/views/layouts/_search.html.haml b/app/views/layouts/_search.html.haml
index 6b208c3d0bb..b49207fc315 100644
--- a/app/views/layouts/_search.html.haml
+++ b/app/views/layouts/_search.html.haml
@@ -6,11 +6,8 @@
.search.search-form{class: "#{'has-location-badge' if label.present?}"}
= form_tag search_path, method: :get, class: 'navbar-form' do |f|
.search-input-container
- .search-location-badge
- - if label.present?
- %span.location-badge
- %i.location-text
- = label
+ - if label.present?
+ .location-badge= label
.search-input-wrap
.dropdown{ data: {url: search_autocomplete_path } }
= search_field_tag "search", nil, placeholder: 'Search', class: "search-input dropdown-menu-toggle", spellcheck: false, tabindex: "1", autocomplete: 'off', data: { toggle: 'dropdown' }