Emojis don't render in polls with pie charts

Couldn’t find any previous report on this and I’m not sure if this is relevant enough to address. Anyhow, reporting the issue.

Emojis in poll answers don’t render well on the poll results when using the pie chart.

Vote below to reproduce the issue.

  • :slight_smile:
  • :expressionless:
  • :frowning:
  • control group

0 voters

15 Likes

Oh that’s a good one. Anything we can do here @falco?

7 Likes

Maybe we default to rendering the raw of the option? Or pass it the option content to our excerpt creation method.

3 Likes

I can look into this monday. I did build the pie chart view after all

7 Likes

Emojis (and other html contents) are now rendered in the the pie chart legend!

  • See it works! :smile:
  • This guy is angry :angry:
  • :poop:

0 voters

10 Likes

Minor, but I think we should hold off on emoji embiggening in this very specific case.

4 Likes

Done in UX: do not enlarge emojis in polls by jjaffeux · Pull Request #8934 · discourse/discourse · GitHub

3 Likes