Skip to content

Commit cfaad25

Browse files
committed
Fix cancel button contrast in both themes
1 parent 1dbbb9e commit cfaad25

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

apps/desktop/src/components/Toolbar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,11 @@ export function Toolbar({
6666
<div className="omni-toolbar-group omni-toolbar-group-primary">
6767
{running ? (
6868
<ToolbarButton
69+
className="omni-cancel-run"
6970
icon={<StopRegular fontSize={14} />}
7071
onClick={onCancelRun}
7172
appearance="primary"
72-
style={{ backgroundColor: tokens.colorPaletteRedBackground1, fontWeight: 600 }}
73+
style={{ fontWeight: 600 }}
7374
title={t("cancel")}
7475
>
7576
{t("cancel")}

apps/desktop/src/index.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,19 @@ body {
4141
background-color: var(--colorBrandBackgroundPressed);
4242
}
4343

44+
.fui-Button.fui-Button--appearance-primary.omni-cancel-run {
45+
background-color: #b42318;
46+
color: #ffffff;
47+
}
48+
49+
.fui-Button.fui-Button--appearance-primary.omni-cancel-run:hover {
50+
background-color: #921d16;
51+
}
52+
53+
.fui-Button.fui-Button--appearance-primary.omni-cancel-run:active {
54+
background-color: #7a1913;
55+
}
56+
4457
.fui-Button.fui-Button--appearance-subtle:hover,
4558
.fui-Button.fui-Button--appearance-transparent:hover {
4659
color: var(--colorBrandForeground1);

0 commit comments

Comments
 (0)