Skip to content

Commit 9747bff

Browse files
authored
[WEB-5652] fix: kanban quick add UI #8382
1 parent b165e2a commit 9747bff

File tree

4 files changed

+19
-20
lines changed

4 files changed

+19
-20
lines changed

apps/web/core/components/editor/sticky-editor/color-palette.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const STICKY_COLORS_LIST: {
88
{
99
key: "gray",
1010
label: "Gray",
11-
backgroundColor: "var(--background-color-layer-2)",
11+
backgroundColor: "var(--editor-colors-gray-background)",
1212
},
1313
{
1414
key: "peach",

apps/web/core/components/issues/issue-layouts/filters/header/helpers/filter-header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type Props = {
99

1010
export function FilterHeader({ title, isPreviewEnabled, handleIsPreviewEnabled }: Props) {
1111
return (
12-
<div className="sticky top-0 flex items-center justify-between gap-2">
12+
<div className="sticky top-0 flex items-center justify-between gap-2 bg-surface-1">
1313
<div className="flex-grow truncate text-caption-sm-medium text-placeholder">{title}</div>
1414
<button
1515
type="button"

apps/web/core/components/issues/issue-layouts/quick-add/form/kanban.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ export const KanbanQuickAddIssueForm = observer(function KanbanQuickAddIssueForm
77
const { ref, projectDetail, register, onSubmit, isEpic } = props;
88
const { t } = useTranslation();
99
return (
10-
<div className="m-1 overflow-hidden rounded-sm shadow-raised-200">
11-
<form ref={ref} onSubmit={onSubmit} className="flex w-full items-center gap-x-3 bg-surface-1 p-3">
10+
<div className="m-1 overflow-hidden rounded-sm shadow-raised-200 bg-layer-2">
11+
<form ref={ref} onSubmit={onSubmit} className="flex w-full items-center gap-x-3 p-3">
1212
<div className="w-full">
1313
<h4 className="text-11 font-medium leading-5 text-tertiary">{projectDetail?.identifier ?? "..."}</h4>
1414
<input
@@ -21,7 +21,7 @@ export const KanbanQuickAddIssueForm = observer(function KanbanQuickAddIssueForm
2121
/>
2222
</div>
2323
</form>
24-
<div className="px-3 py-2 text-11 italic text-secondary">
24+
<div className="px-3 py-2 text-11 italic text-tertiary bg-layer-3">
2525
{isEpic ? t("epic.add.press_enter") : t("issue.add.press_enter")}
2626
</div>
2727
</div>

packages/ui/src/button/helper.tsx

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const buttonStyling: IButtonStyling = {
4141
default: `text-on-color bg-accent-primary`,
4242
hover: `hover:bg-accent-primary/80`,
4343
pressed: `focus:text-custom-brand-40 focus:bg-accent-primary/80`,
44-
disabled: `cursor-not-allowed !bg-custom-primary-60 hover:bg-custom-primary-60`,
44+
disabled: `cursor-not-allowed !bg-layer-1 !text-placeholder`,
4545
},
4646
"accent-primary": {
4747
default: `bg-accent-primary/20 text-accent-primary`,
@@ -59,50 +59,49 @@ export const buttonStyling: IButtonStyling = {
5959
default: `text-secondary bg-surface-1 border border-subtle`,
6060
hover: `hover:bg-surface-2`,
6161
pressed: `focus:text-tertiary focus:bg-surface-2`,
62-
disabled: `cursor-not-allowed !text-placeholder`,
62+
disabled: `cursor-not-allowed !bg-layer-1 !text-placeholder`,
6363
},
6464
"link-primary": {
6565
default: `text-accent-primary bg-surface-1`,
6666
hover: `hover:text-accent-secondary`,
6767
pressed: `focus:text-accent-primary/80 `,
6868
disabled: `cursor-not-allowed !text-accent-primary/60`,
6969
},
70-
7170
danger: {
72-
default: `text-on-color bg-red-500`,
73-
hover: ` hover:bg-red-600`,
74-
pressed: `focus:text-red-200 focus:bg-red-600`,
75-
disabled: `cursor-not-allowed !bg-red-300`,
71+
default: `bg-danger-primary text-on-color`,
72+
hover: ` hover:bg-danger-primary-hover`,
73+
pressed: `focus:bg-danger-primary-active`,
74+
disabled: `cursor-not-allowed bg-layer-disabled! text-disabled!`,
7675
},
7776
"accent-danger": {
7877
default: `text-red-500 bg-red-50`,
7978
hover: `hover:text-red-600 hover:bg-red-100`,
8079
pressed: `focus:text-red-500 focus:bg-red-100`,
81-
disabled: `cursor-not-allowed !text-red-300`,
80+
disabled: `cursor-not-allowed !bg-layer-1 !text-placeholder`,
8281
},
8382
"outline-danger": {
84-
default: `text-red-500 bg-transparent border border-red-500`,
85-
hover: `hover:text-red-400 hover:border-red-400`,
86-
pressed: `focus:text-red-400 focus:border-red-400`,
87-
disabled: `cursor-not-allowed !text-red-300 !border-red-300`,
83+
default: `bg-layer-2 text-danger border border-danger-strong`,
84+
hover: `hover:bg-danger-subtle`,
85+
pressed: `focus:bg-danger-subtle-hover`,
86+
disabled: `cursor-not-allowed text-disabled! border-subtle-1!`,
8887
},
8988
"link-danger": {
9089
default: `text-red-500 bg-surface-1`,
9190
hover: `hover:text-red-400`,
9291
pressed: `focus:text-red-400`,
93-
disabled: `cursor-not-allowed !text-red-300`,
92+
disabled: `cursor-not-allowed !bg-layer-1 !text-placeholder`,
9493
},
9594
"tertiary-danger": {
9695
default: `text-red-500 bg-surface-1 border border-red-200`,
9796
hover: `hover:bg-red-50 hover:border-red-300`,
9897
pressed: `focus:text-red-400`,
99-
disabled: `cursor-not-allowed !text-red-300`,
98+
disabled: `cursor-not-allowed !bg-layer-1 !text-placeholder`,
10099
},
101100
"link-neutral": {
102101
default: `text-tertiary`,
103102
hover: `hover:text-secondary`,
104103
pressed: `focus:text-primary`,
105-
disabled: `cursor-not-allowed !text-placeholder`,
104+
disabled: `cursor-not-allowed !bg-layer-1 !text-placeholder`,
106105
},
107106
};
108107

0 commit comments

Comments
 (0)