From 488cfb47bf09e4bca2447e6c7ca62e2e985e2ad9 Mon Sep 17 00:00:00 2001 From: rhenck <richard.henck@iqb.hu-berlin.de> Date: Tue, 14 Dec 2021 18:46:02 +0100 Subject: [PATCH] Fix radio button without label Options still had a margin-top, which is wrong when there is no label above. --- .../common/ui-elements/radio/radio-button-group.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/common/ui-elements/radio/radio-button-group.component.ts b/projects/common/ui-elements/radio/radio-button-group.component.ts index e5014eaa5..6a8ffc79d 100644 --- a/projects/common/ui-elements/radio/radio-button-group.component.ts +++ b/projects/common/ui-elements/radio/radio-button-group.component.ts @@ -22,7 +22,7 @@ import { RadioButtonGroupElement } from './radio-button-group-element'; [fxLayout]="elementModel.alignment" [formControl]="elementFormControl" [value]="elementModel.value" - [style.margin-top.px]="10"> + [style.margin-top.px]="elementModel.label !== '' ? 10 : 0"> <mat-radio-button *ngFor="let option of elementModel.options; let i = index" [ngClass]="{ 'strike' : elementModel.strikeOtherOptions && elementFormControl.value !== null && -- GitLab