I've got a custom font so that I can have custom icons in the tabstrip. When I use my font, the icon shows up but it's not using the color specified in the css.
It shows up black. Even if I set the color directly in the debugger, no color is applied.
<See Black.png attachment>
If I use the icon in a view, it shows up with correct color:
<See Orange.png attachment>
I assume there is some type of mask being applied but I can't figure out why it's making it black. I figured at the very least, it would be the same color as the other native icons.
Note that if I change the color of all the icons (with the km-icon css class), my custom icons do not change.
Note also: When I debug, I see that css is telling me that the color should be orange:
css:
html:
It shows up black. Even if I set the color directly in the debugger, no color is applied.
<See Black.png attachment>
If I use the icon in a view, it shows up with correct color:
<See Orange.png attachment>
I assume there is some type of mask being applied but I can't figure out why it's making it black. I figured at the very least, it would be the same color as the other native icons.
Note that if I change the color of all the icons (with the km-icon css class), my custom icons do not change.
Note also: When I debug, I see that css is telling me that the color should be orange:
css:
.km-ios
6
.km-tabstrip .km-
icon
.km-icon-trophies
{
font-size
:
22px
;
margin-bottom
:
-7px
;
color
: orange
!important
;
}
html:
<
div
data-role
=
"footer"
>
<
div
data-role
=
"tabstrip"
>
<
a
href
=
"#tabstrip-home"
data-icon
=
"home"
>Home</
a
>
<
a
href
=
"#tabstrip-journal"
data-icon
=
"icon-trophies"
>Journal</
a
>
</
div
>
</
div
>