fix: fixed search issues with in active mode and keyboard nav

This commit is contained in:
Torkel Ödegaard 2017-06-19 16:02:16 -04:00
parent 724368d0cd
commit 8440d2d0a2
3 changed files with 4 additions and 7 deletions

View File

@ -77,7 +77,7 @@ export class SearchCtrl {
this.moveSelection(-1);
}
if (evt.keyCode === 13) {
if (this.$scope.tagMode) {
if (this.tagsMode) {
var tag = this.results[this.selectedIndex];
if (tag) {
this.filterByTag(tag.term, null);

View File

@ -122,14 +122,11 @@
content: "\f015";
}
&:hover {
&:hover,
&.selected {
background-color: $tight-form-func-bg;
@include left-brand-border-gradient();
}
&.selected {
background-color: $grafanaListBackground;
}
}
.search-result-tags {

View File

@ -51,7 +51,7 @@
.navbar-page-btn {
border-color: transparent;
background: transparent;
transform: translate3d(-95px, 0, 0);
transform: translate3d(-50px, 0, 0);
transition: all 1.5s ease-in-out 1s;
.icon-gf {
opacity: 0;