Update style for matched letters and hover state.
This commit is contained in:
parent
fb58bab45c
commit
c712e8d170
1 changed files with 5 additions and 2 deletions
|
|
@ -142,7 +142,7 @@ export default {
|
|||
let w = $(this).autocomplete("widget").find("div"),
|
||||
re = new RegExp("("+this.value+")", "i");
|
||||
w.html((i, html) =>
|
||||
html.replace(re, "<b>$1</b>")
|
||||
html.replace(re, "<span>$1</span>")
|
||||
);
|
||||
},5);
|
||||
},
|
||||
|
|
@ -185,10 +185,13 @@ ul {
|
|||
border: 1px solid transparent;
|
||||
border-radius: 2px;
|
||||
padding-left: .25rem;
|
||||
span {
|
||||
font-weight: 600;
|
||||
}
|
||||
&.ui-state-active {
|
||||
border: 1px solid $gray-200;
|
||||
border-radius: 2px;
|
||||
font-weight: bold;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue