[ADF-2296] Background color on form buttons (#2953)

* add a targeting ID for any Form button

* custom outcome style ID
This commit is contained in:
Eugenio Romano
2018-02-15 10:08:46 +00:00
committed by Denys Vuika
parent 6e57cd3e17
commit ae0994edf1
3 changed files with 35 additions and 1 deletions

View File

@@ -30,7 +30,7 @@
</mat-card-content>
<mat-card-actions *ngIf="form.hasOutcomes()" class="adf-form-mat-card-actions">
<!--[class.mdl-button--colored]="!outcome.isSystem"-->
<button *ngFor="let outcome of form.outcomes"
<button [id]="'adf-form-'+ outcome.name | lowercase" *ngFor="let outcome of form.outcomes"
[color]="getColorForOutcome(outcome.name)"
mat-button
[disabled]="!isOutcomeButtonEnabled(outcome)"