diff --git a/anwendung/src/components/Button.jsx b/anwendung/src/components/Button.jsx index 17fb59c..d37acb8 100644 --- a/anwendung/src/components/Button.jsx +++ b/anwendung/src/components/Button.jsx @@ -17,6 +17,8 @@ export default function Button(p) { let iconHTML = p.icon; let iconWidth = p.iconWidth, iconHeight = p.iconHeight; let onClick = p.onClick; + let color = p.color; + let fontColor = p.fontColor; //if parameters are not set, they are set to default values if (height == null) height = 50; @@ -24,6 +26,8 @@ export default function Button(p) { if (iconWidth == null) iconWidth = width-10; if (iconHeight == null) iconHeight = height-10; if (onClick == null) onClick = () => {}; + if (color == null) color = "#363636"; + if (fontColor == null) fontColor = "white"; //build in the icon width and height to the svg tag (svg tag should not contain any size information by default) if (iconHTML != null) { @@ -38,13 +42,13 @@ export default function Button(p) { //return the button return ( <> -