From b2341d94acd01de6423bb9d7cdc0708d42f1df76 Mon Sep 17 00:00:00 2001
From: rhenck <richard.henck@iqb.hu-berlin.de>
Date: Thu, 4 Jan 2024 13:03:50 +0100
Subject: [PATCH] Button: Fix background color (to lightgrey)

---
 projects/common/models/elements/button/button.ts | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/projects/common/models/elements/button/button.ts b/projects/common/models/elements/button/button.ts
index 8a6cedab0..1dcd8773c 100644
--- a/projects/common/models/elements/button/button.ts
+++ b/projects/common/models/elements/button/button.ts
@@ -48,7 +48,10 @@ export class ButtonElement extends UIElement implements ButtonProperties {
       if (element?.tooltipPosition !== undefined) this.tooltipPosition = element.tooltipPosition;
       if (element?.labelAlignment !== undefined) this.labelAlignment = element.labelAlignment;
       this.styling = {
-        ...PropertyGroupGenerators.generateBasicStyleProps(element?.styling),
+        ...PropertyGroupGenerators.generateBasicStyleProps({
+          backgroundColor: 'lightgrey',
+          ...element?.styling
+        }),
         ...PropertyGroupGenerators.generateBorderStylingProps(element?.styling)
       };
     }
-- 
GitLab