From 58140ae3f5b69fa613207addaf56e17b75a70585 Mon Sep 17 00:00:00 2001 From: rhenck <richard.henck@iqb.hu-berlin.de> Date: Fri, 22 Oct 2021 13:31:41 +0200 Subject: [PATCH] Add alternating line color to likert element --- .../element-components/compound-elements/likert.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/common/element-components/compound-elements/likert.component.ts b/projects/common/element-components/compound-elements/likert.component.ts index 227a07bfd..b2dfabc81 100644 --- a/projects/common/element-components/compound-elements/likert.component.ts +++ b/projects/common/element-components/compound-elements/likert.component.ts @@ -30,7 +30,9 @@ import { LikertElement } from '../../models/compound-elements/likert-element'; </div> <ng-container *ngFor="let question of elementModel.questions; let i = index"> - <app-likert-radio-button-group [style.display]="'grid'" + <app-likert-radio-button-group + [ngClass]="{ 'odd': i % 2 ===0 }" + [style.display]="'grid'" [style.grid-column-start]="1" [style.grid-column-end]="elementModel.answers.length + 2" [style.grid-row-start]="2 + i" -- GitLab