Skip to content

Commit 8102d79

Browse files
committed
adjust button stylings
1 parent dd74bc4 commit 8102d79

5 files changed

Lines changed: 19 additions & 11 deletions

File tree

src/components/ErrorLogs/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const ErrorLogs = (props: ErrorLogsProps): JSX.Element => {
1616

1717
return (
1818
<>
19-
<Button color="primary" variant="filled" onClick={toggleLogs}>
19+
<Button color="default" variant="filled" onClick={toggleLogs}>
2020
Logs
2121
</Button>
2222
<Drawer

src/components/RecipeForm/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const RecipeForm = ({ onStartPacking, availableHeight }: RecipeFormProps) => {
5050
<Button
5151
onClick={onStartPacking}
5252
className="packing-button"
53-
color="primary"
53+
color="default"
5454
variant="filled"
5555
disabled={isPacking || isOriginalRecipe}
5656
style={{ width: "100%", minHeight: 38 }}

src/components/StatusBar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import ErrorLogs from "../ErrorLogs";
77
import { DownloadOutlined, ShareAltOutlined } from "@ant-design/icons";
88

99
const statusBarButtonProps: Pick<ButtonProps, "color" | "variant" | "className"> = {
10-
color: "primary",
10+
color: "default",
1111
variant: "filled",
1212
className: "status-bar-button",
1313
};

src/index.css

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,3 @@ button {
2626
cursor: pointer;
2727
transition: border-color 0.25s;
2828
}
29-
button:hover {
30-
border-color: #646cff;
31-
}
32-
button:focus,
33-
button:focus-visible {
34-
outline: 4px auto -webkit-focus-ring-color;
35-
}

src/style/theme.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ import type { ThemeConfig } from "antd";
22
import { theme } from "antd";
33

44
const commonComponents = {
5-
Button: { controlHeight: 40 },
5+
Button: {
6+
controlHeight: 40,
7+
colorFillSecondary: '#b5cffe',
8+
colorFillTertiary: '#e6f4ff',
9+
colorBgContainerDisabled: '#dcdde5',
10+
colorTextDisabled: '#989898',
11+
},
612
Slider: {
713
trackBg: '#7AA4D7',
814
trackHoverBg: '#5F92CE',
@@ -33,6 +39,15 @@ const lightComponents = {
3339

3440
const darkComponents = {
3541
...commonComponents,
42+
Button: {
43+
...commonComponents.Button,
44+
defaultColor: '#e6f4ff',
45+
colorFillTertiary: '#1f3a5a',
46+
colorFillSecondary: '#2a4a6e',
47+
colorFill: '#365a82',
48+
colorBgContainerDisabled: '#1a1a1a',
49+
colorTextDisabled: '#595959',
50+
},
3651
Tabs: {
3752
...commonComponents.Tabs,
3853
colorPrimary: '#ffffff',

0 commit comments

Comments
 (0)