Skip to content

Commit 844181c

Browse files
authored
fix emoji warning rendering in chrome (#788)
1 parent a881e2e commit 844181c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/plot.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ export function plot(options = {}) {
129129
.attr("y", 20)
130130
.attr("dy", "-1em")
131131
.attr("text-anchor", "end")
132-
.text("⚠️")
132+
.attr("font-family", "initial") // fix emoji rendering in Chrome
133+
.text("\u26a0\ufe0f") // emoji variation selector
133134
.append("title")
134135
.text(`${w.toLocaleString("en-US")} warning${w === 1 ? "" : "s"}. Please check the console.`);
135136
}

0 commit comments

Comments
 (0)