Setting Tab background in iOS


#1

Hi All,
I have the latest ionic version. My background keeps coming out white on iOS device.

I have tried using the color and [color] attribute but neither works. I have also tried using style=“background-color: #000

<ion-tabs [color]=“background”>
<ion-tab [root]=“tab1Root” tabTitle=“Ambassabank” tabBadge=“3” tabBadgeStyle=“danger” tabIcon=“icon-ambassabank”>
<ion-tab [root]=“tab2Root” tabTitle=“Active Chats” tabBadge=“3” tabBadgeStyle=“danger” tabIcon=“icon-active-chats”>

Background is a color:
$colors: (
primary: #107c10,
secondary: #32db64,
danger: #f53d3d,
light: #f4f4f4,
dark: #222,
background: #101010
);

Any idea what is going wrong?

Thanks


#2

Got it working.
The color “background” was set in app.scss and wasnt being found. When I added it to variables.scss it started working.

I guess I don’t understand the difference between those two files exactly!