File tree Expand file tree Collapse file tree 1 file changed +4
-15
lines changed
Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -28,24 +28,13 @@ const FormButton = ({
2828 const fontWeight =
2929 size === "md" ? "font-bold" : selected ? "font-bold" : "font-medium" ;
3030
31- const backgroundColor = selected ? "var(--color-primary-pale)" : "#FFFFFF" ;
32-
33- const borderColor = selected
34- ? "var(--color-primary-light)"
35- : "var(--color-gray-200)" ;
36-
37- const fontColor = selected
38- ? "var(--color-primary-normal)"
39- : "var(--color-gray-900)" ;
31+ const backgroundColor = selected ? "bg-primary-pale" : "bg-white" ;
32+ const borderColor = selected ? "border-primary-light" : "border-gray-200" ;
33+ const fontColor = selected ? "text-primary-normal" : "text-gray-900" ;
4034
4135 return (
4236 < button
43- className = { `${ baseStyles } ${ sizeStyles } ${ fontSize } ${ fontWeight } ` }
44- style = { {
45- backgroundColor,
46- border : `1px solid ${ borderColor } ` ,
47- color : fontColor
48- } }
37+ className = { `${ baseStyles } ${ sizeStyles } ${ fontSize } ${ fontWeight } ${ backgroundColor } ${ borderColor } ${ fontColor } border` }
4938 onClick = { onClick }
5039 >
5140 { children }
You can’t perform that action at this time.
0 commit comments