1

On iOS Mobile app, for webview page, the checkmark is not inheriting color of the parent element (div). The code that I'm using is:

<div style="color: red">
    &#10004&#xfe0e;
</div>

I am aware of this problem happening on iOS devices, but for me, even after appending the variation selector, the checkmark is still rendering as an emoji, which prevents changing the color.

Any ideas why this might be happening?

Akshay Arora
  • 1,953
  • 1
  • 14
  • 30

2 Answers2

1

There are a few potential reasons why the checkmark might not be inheriting the color of the parent element in your WebView page on an iOS mobile app. Here is two solutions I have in mind:

  1. You can use a character for the checkmark instead of an HTML entity:

<div style="font-family: 'Font with checkmark'; color: red;">✔</div>
  1. Use the color property of the style attribute to set the color of the checkmark directly:

<div><span style="color: red;">&#10004&#xfe0e;</span></div>

Hope this help,

Methark
  • 95
  • 8
0

<div><span style="color: red;">&#10004&#xfe0e;</span></div>
kabiru
  • 1
  • 1