From 0900559579e7b72fde509e59584acf94376b8ab1 Mon Sep 17 00:00:00 2001 From: Alasdair Smith Date: Wed, 6 Jun 2018 17:19:12 +0100 Subject: [PATCH] Fix blurrly autocomplete highlight on Chrome The blurrly text shadow is back on Chrome. I suspect it maybe intended, not a bug, so I've fixed it for all versions of Chrome. I've replaced with font-weight: bold, which visually has the same appearance --- services/web/public/coffee/ide.coffee | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/services/web/public/coffee/ide.coffee b/services/web/public/coffee/ide.coffee index 6c5b1d920e..9f910d857e 100644 --- a/services/web/public/coffee/ide.coffee +++ b/services/web/public/coffee/ide.coffee @@ -213,11 +213,10 @@ define [ try chromeVersion = parseFloat(navigator.userAgent.split(" Chrome/")[1]) || null; browserIsChrome61or62 = ( - chromeVersion? && - (chromeVersion == 61 || chromeVersion == 62) + chromeVersion? ) if browserIsChrome61or62 - document.styleSheets[0].insertRule(".ace_editor.ace_autocomplete .ace_completion-highlight { text-shadow: none !important; }", 1) + document.styleSheets[0].insertRule(".ace_editor.ace_autocomplete .ace_completion-highlight { text-shadow: none !important; font-weight: bold; }", 1) catch err console.error err