no color if no color
This commit is contained in:
+5
-3
@@ -399,8 +399,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.search-suggestion.highlight {
|
.search-suggestion.highlight {
|
||||||
background: var(--background);
|
background: var(--foreground);
|
||||||
color: var(--foreground);
|
color: var(--background);
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-suggestion b {
|
.search-suggestion b {
|
||||||
@@ -1229,7 +1229,9 @@
|
|||||||
|
|
||||||
_setBackgroundFromQuery(query) {
|
_setBackgroundFromQuery(query) {
|
||||||
if (!this._colors) return;
|
if (!this._colors) return;
|
||||||
this._formEl.style.background = this._parseQuery(query).color;
|
const color = this._parseQuery(query).color;
|
||||||
|
if (!color) return;
|
||||||
|
this._formEl.style.background = color;
|
||||||
}
|
}
|
||||||
|
|
||||||
_submitForm(e) {
|
_submitForm(e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user