Commit a103fcb7 authored by Phil Hughes's avatar Phil Hughes

Moved back some css classes

parent 29872c39
...@@ -326,8 +326,8 @@ class GitLabDropdown ...@@ -326,8 +326,8 @@ class GitLabDropdown
).join('') ).join('')
noResults: -> noResults: ->
html = "<li class='dropdown-menu-empty-link is-focused'>" html = "<li class='dropdown-menu-empty-link'>"
html += "<a href='#'>" html += "<a href='#' class='is-focused'>"
html += "No matching results." html += "No matching results."
html += "</a>" html += "</a>"
html += "</li>" html += "</li>"
...@@ -433,7 +433,7 @@ class GitLabDropdown ...@@ -433,7 +433,7 @@ class GitLabDropdown
# Update the class for the row at the specific index # Update the class for the row at the specific index
$listItem = $listItems.eq(index) $listItem = $listItems.eq(index)
$listItem.addClass "is-focused" $listItem.find('a:first-child').addClass "is-focused"
# Dropdown content scroll area # Dropdown content scroll area
$dropdownContent = $listItem.closest('.dropdown-content') $dropdownContent = $listItem.closest('.dropdown-content')
......
...@@ -104,14 +104,6 @@ ...@@ -104,14 +104,6 @@
padding: 0 10px; padding: 0 10px;
} }
.is-focused {
a {
background-color: $dropdown-link-hover-bg;
text-decoration: none;
outline: 0;
}
}
.divider { .divider {
height: 1px; height: 1px;
margin: 8px 10px; margin: 8px 10px;
...@@ -140,7 +132,8 @@ ...@@ -140,7 +132,8 @@
overflow: hidden; overflow: hidden;
&:hover, &:hover,
&:focus { &:focus,
&.is-focused {
background-color: $dropdown-link-hover-bg; background-color: $dropdown-link-hover-bg;
text-decoration: none; text-decoration: none;
outline: 0; outline: 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment