Recently while using IcoMoon I used something like this
<span class="icon-sound" data-tooltip="Whatever is here"></span>
So here my tooltips inherits the font-family of icomoon instead of inheriting the default font-family.
For example if we use something like this
[data-tooltip]:hover:after {
content: attr(data-tooltip);
white-space: nowrap;
/* Other stylings */
font-family: Arial; /* Need to specify the font-family else it inherits icomoon */
}
Solution is to declare it on the :before pseudo instead like
Recently while using IcoMoon I used something like this
<span class="icon-sound" data-tooltip="Whatever is here"></span>
So here my tooltips inherits the
font-family
of icomoon instead of inheriting the defaultfont-family
. For example if we use something like thisSolution is to declare it on the
:before
pseudo instead like