diff --git a/app/assets/javascripts/pretty-text/addon/emoji.js b/app/assets/javascripts/pretty-text/addon/emoji.js
index 4f588a2f4f5..67a7c2afaf1 100644
--- a/app/assets/javascripts/pretty-text/addon/emoji.js
+++ b/app/assets/javascripts/pretty-text/addon/emoji.js
@@ -126,7 +126,9 @@ export function performEmojiUnescape(string, opts) {
isReplacableInlineEmoji(string, index, inlineEmoji);
return url && isReplacable
- ? `
`
: m;
diff --git a/app/assets/stylesheets/common/base/emoji.scss b/app/assets/stylesheets/common/base/emoji.scss
index 434e94cf3c4..ecbdaab49b8 100644
--- a/app/assets/stylesheets/common/base/emoji.scss
+++ b/app/assets/stylesheets/common/base/emoji.scss
@@ -65,7 +65,6 @@ sup img.emoji {
.section {
margin-bottom: 1em;
- content-visibility: auto;
.trash-recent {
background: none;
diff --git a/test/javascripts/acceptance/topic-test.js b/test/javascripts/acceptance/topic-test.js
index d40bdb26deb..021389f7533 100644
--- a/test/javascripts/acceptance/topic-test.js
+++ b/test/javascripts/acceptance/topic-test.js
@@ -152,7 +152,7 @@ QUnit.test("Updating the topic title with emojis", async (assert) => {
assert.equal(
find(".fancy-title").html().trim(),
- `emojis title
`,
+ `emojis title
`,
"it displays the new title with emojis"
);
});
@@ -167,7 +167,7 @@ QUnit.test("Updating the topic title with unicode emojis", async (assert) => {
assert.equal(
find(".fancy-title").html().trim(),
- `emojis title ![man_farmer man_farmer](/images/emoji/emoji_one/man_farmer.png?v=${v})
`,
+ `emojis title ![man_farmer man_farmer](/images/emoji/emoji_one/man_farmer.png?v=${v})
`,
"it displays the new title with escaped unicode emojis"
);
});
@@ -185,7 +185,7 @@ QUnit.test(
assert.equal(
find(".fancy-title").html().trim(),
- `Test
Title`,
+ `Test
Title`,
"it displays the new title with escaped unicode emojis"
);
}
diff --git a/test/javascripts/lib/emoji-test.js b/test/javascripts/lib/emoji-test.js
index 3a3fed402bf..5fa7ea99861 100644
--- a/test/javascripts/lib/emoji-test.js
+++ b/test/javascripts/lib/emoji-test.js
@@ -32,12 +32,12 @@ QUnit.test("emojiUnescape", function (assert) {
);
testUnescape(
"emoticons :)",
- `emoticons
`,
+ `emoticons
`,
"emoticons are still supported"
);
testUnescape(
"With emoji :O: :frog: :smile:",
- `With emoji
`,
+ `With emoji
`,
"title with emoji"
);
testUnescape(
@@ -47,27 +47,27 @@ QUnit.test("emojiUnescape", function (assert) {
);
testUnescape(
"(:frog:) :)",
- `(
)
`,
+ `(
)
`,
"non-word characters allowed next to emoji"
);
testUnescape(
":smile: hi",
- `
hi`,
+ `
hi`,
"start of line"
);
testUnescape(
"hi :smile:",
- `hi
`,
+ `hi
`,
"end of line"
);
testUnescape(
"hi :blonde_woman:t4:",
- `hi
`,
+ `hi
`,
"support for skin tones"
);
testUnescape(
"hi :blonde_woman:t4: :blonde_man:t6:",
- `hi
`,
+ `hi
`,
"support for multiple skin tones"
);
testUnescape(
@@ -95,7 +95,7 @@ QUnit.test("emojiUnescape", function (assert) {
);
testUnescape(
"Hello 😊 World",
- `Hello
World`,
+ `Hello
World`,
"emoji from Unicode emoji"
);
testUnescape(
@@ -108,7 +108,7 @@ QUnit.test("emojiUnescape", function (assert) {
);
testUnescape(
"Hello😊World",
- `Hello
World`,
+ `Hello
World`,
"emoji from Unicode emoji when inline translation enabled",
{
enable_inline_emoji_translation: true,
@@ -124,7 +124,7 @@ QUnit.test("emojiUnescape", function (assert) {
);
testUnescape(
"hi:smile:",
- `hi
`,
+ `hi
`,
"emoji when inline translation enabled",
{ enable_inline_emoji_translation: true }
);
diff --git a/test/javascripts/lib/search-test.js b/test/javascripts/lib/search-test.js
index fadbad9e185..075ebcec944 100644
--- a/test/javascripts/lib/search-test.js
+++ b/test/javascripts/lib/search-test.js
@@ -32,7 +32,7 @@ QUnit.test("unescapesEmojisInBlurbs", (assert) => {
const blurb = results.posts[0].get("blurb");
assert.ok(blurb.indexOf("thinking.png"));
- assert.ok(blurb.indexOf("
{
assert.equal(
topic.get("fancyTitle"),
- `
with all
the emojis ![pear pear](/images/emoji/emoji_one/pear.png?v=${v})
`,
+ `
with all
the emojis ![pear pear](/images/emoji/emoji_one/pear.png?v=${v})
`,
"supports emojis"
);
});
@@ -159,7 +159,7 @@ QUnit.test("excerpt", (assert) => {
assert.equal(
topic.get("escapedExcerpt"),
- `This is a test topic
`,
+ `This is a test topic
`,
"supports emojis"
);
});