Cannot change color ion-fab-button, worked before ion-fab-list

1k views Asked by At

Here is my code.

<ion-fab-button (click)="submitForm(aluno)" [ngClass]="!tudoOk ? 'disabled' : 'enabled'" (click)="!tudoOk ? mensagemErro() : ''">

.disabled {
  --background: #9CC0FF;
}

.enabled {
  color: "primary";
}

this worked before I put ion-fab-button inside ion-fab-list

<ion-fab-list side="top">

Anybody knows what could be wrong?

1

There are 1 answers

0
tiedmud On

I solved my problem! I just had to change the css as this:

.disabled {
  --background: #9CC0FF;
  --color: #FFFFFF;
}

.enabled {
  --background: #3880FF;
  --color: #FFFFFF;
}