Skip to content

Commit

Permalink
no color if no color
Browse files Browse the repository at this point in the history
  • Loading branch information
Cade Scroggins committed Feb 28, 2019
1 parent b1b3d65 commit 1faa9b3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,8 @@
}

.search-suggestion.highlight {
background: var(--background);
color: var(--foreground);
background: var(--foreground);
color: var(--background);
}

.search-suggestion b {
Expand Down Expand Up @@ -1229,7 +1229,9 @@ <h2 class="category-name">${category}</h2>

_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) {
Expand Down

0 comments on commit 1faa9b3

Please sign in to comment.