diff --git a/src/components/ButtonSelect.tsx b/src/components/ButtonSelect.tsx index 95a2c38..009544f 100644 --- a/src/components/ButtonSelect.tsx +++ b/src/components/ButtonSelect.tsx @@ -31,11 +31,12 @@ function ButtonSelect(props: PickerProps) { { "btn-sm": props.small || props.xSmall } )} onClick={() => props.handleChange(option.value)} - style={props.xSmall ? { - fontSize: "small", + style={{ + ...props.xSmall ? + { fontSize: "small" }: {}, ...option.color ? { background: option.color } : {}, - } : {}} + }} > {option.label}