From e033dcce8e57ed6b6684227adf9b29347e4718b3 Mon Sep 17 00:00:00 2001
From: Harrison Healey <harrisonmhealey@gmail.com>
Date: Tue, 22 Nov 2016 12:31:37 -0500
Subject: PLT-4300 Switched emoji to use a background-image (#4631)

---
 webapp/utils/emoticons.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'webapp/utils/emoticons.jsx')

diff --git a/webapp/utils/emoticons.jsx b/webapp/utils/emoticons.jsx
index 7280ef88b..26443b120 100644
--- a/webapp/utils/emoticons.jsx
+++ b/webapp/utils/emoticons.jsx
@@ -38,7 +38,7 @@ export function handleEmoticons(text, tokens, emojis) {
 
             // we have an image path so we found a matching emoticon
             tokens.set(alias, {
-                value: `<img align="absmiddle" alt="${matchText}" class="emoticon" src="${path}" title="${matchText}" />`,
+                value: `<span alt="${matchText}" class="emoticon" title="${matchText}" style="background-image:url(${path})"></span>`,
                 originalText: fullMatch
             });
 
-- 
cgit v1.2.3-1-g7c22

