mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(type ahead): fixed highlight, and made the highlight more distinct, also rolled back #2436 due to its issues on linux and windows, fixes #2527
This commit is contained in:
@@ -386,3 +386,7 @@
|
||||
padding: 80px 0;
|
||||
}
|
||||
}
|
||||
|
||||
.typeahead strong {
|
||||
color: @yellow;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ p {
|
||||
// Ex: 14px base font * 85% = about 12px
|
||||
small { font-size: 85%; }
|
||||
|
||||
strong { font-weight: 500; }
|
||||
strong { font-weight: bold; }
|
||||
em { font-style: italic; color: @headingsColor; }
|
||||
cite { font-style: normal; }
|
||||
|
||||
|
||||
5
public/vendor/bootstrap/bootstrap.js
vendored
5
public/vendor/bootstrap/bootstrap.js
vendored
@@ -1993,9 +1993,12 @@
|
||||
|
||||
, highlighter: function (item) {
|
||||
var query = this.query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, '\\$&')
|
||||
if (!query) {
|
||||
return item;
|
||||
}
|
||||
return item.replace(new RegExp('(' + query + ')', 'ig'), function ($1, match) {
|
||||
return '<strong>' + match + '</strong>'
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
, render: function (items) {
|
||||
|
||||
Reference in New Issue
Block a user