From 1faa9b3b8fee6733e0e8c3ad50f40949ffa5d0e9 Mon Sep 17 00:00:00 2001 From: Cade Scroggins Date: Wed, 27 Feb 2019 17:23:25 -0800 Subject: [PATCH] no color if no color --- index.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index b33e6e8..5efae9c 100644 --- a/index.html +++ b/index.html @@ -399,8 +399,8 @@ } .search-suggestion.highlight { - background: var(--background); - color: var(--foreground); + background: var(--foreground); + color: var(--background); } .search-suggestion b { @@ -1229,7 +1229,9 @@ _setBackgroundFromQuery(query) { 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) {