Skip to content

Commit 85cd94c

Browse files
committed
reabse main
1 parent c568eb1 commit 85cd94c

File tree

1 file changed

+3
-3
lines changed
  • packages/react-ape/renderer/elements

1 file changed

+3
-3
lines changed

packages/react-ape/renderer/elements/Button.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function renderButton(props: ButtonProps, apeContext, parentLayout) {
8686
height: height,
8787
color: color,
8888
borderRadius: borderRadius,
89-
backgroundColor,
89+
backgroundColor:color,
9090
lineWidth: 0,
9191
borderColor: 'transparent',
9292
};
@@ -105,7 +105,7 @@ function renderButton(props: ButtonProps, apeContext, parentLayout) {
105105
};
106106

107107
ctx.beginPath();
108-
ctx.fillStyle = backgroundColor;
108+
ctx.fillStyle = color;
109109
ctx.moveTo(x, y);
110110
/**
111111
* Top Right Radius
@@ -137,7 +137,7 @@ function renderButton(props: ButtonProps, apeContext, parentLayout) {
137137
ctx.lineWidth = globalStyle.lineWidth;
138138
ctx.strokeStyle = globalStyle.borderColor;
139139
ctx.stroke();
140-
ctx.fillStyle = color || ButtonDefaults.textStyle.color;
140+
ctx.fillStyle = ButtonDefaults.textStyle.color;
141141
ctx.font = `${ButtonDefaults.textStyle.fontSize} Helvetica`;
142142
//ctx.fillText('Start', x+ width/2 , y + height / 2);
143143
ctx.textAlign = 'center';

0 commit comments

Comments
 (0)