aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/views/common/button/common.ts
diff options
context:
space:
mode:
Diffstat (limited to 'FrontEnd/src/views/common/button/common.ts')
-rw-r--r--FrontEnd/src/views/common/button/common.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/FrontEnd/src/views/common/button/common.ts b/FrontEnd/src/views/common/button/common.ts
index a9db959e..0d84bae0 100644
--- a/FrontEnd/src/views/common/button/common.ts
+++ b/FrontEnd/src/views/common/button/common.ts
@@ -20,7 +20,11 @@ export function calculateProps(
} {
const { text, color, className, children, ...otherProps } = props;
const newProps = {
- className: classNames(buttonClassName, color ?? "primary", className),
+ className: classNames(
+ buttonClassName,
+ color != null ? "cru-" + color : "cru-primary",
+ className
+ ),
...otherProps,
};