[WEB-5652] fix: kanban quick add UI #8382
This commit is contained in:
parent
b165e2a3fe
commit
9747bffbe2
4 changed files with 19 additions and 20 deletions
|
|
@ -8,7 +8,7 @@ export const STICKY_COLORS_LIST: {
|
||||||
{
|
{
|
||||||
key: "gray",
|
key: "gray",
|
||||||
label: "Gray",
|
label: "Gray",
|
||||||
backgroundColor: "var(--background-color-layer-2)",
|
backgroundColor: "var(--editor-colors-gray-background)",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: "peach",
|
key: "peach",
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ type Props = {
|
||||||
|
|
||||||
export function FilterHeader({ title, isPreviewEnabled, handleIsPreviewEnabled }: Props) {
|
export function FilterHeader({ title, isPreviewEnabled, handleIsPreviewEnabled }: Props) {
|
||||||
return (
|
return (
|
||||||
<div className="sticky top-0 flex items-center justify-between gap-2">
|
<div className="sticky top-0 flex items-center justify-between gap-2 bg-surface-1">
|
||||||
<div className="flex-grow truncate text-caption-sm-medium text-placeholder">{title}</div>
|
<div className="flex-grow truncate text-caption-sm-medium text-placeholder">{title}</div>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@ export const KanbanQuickAddIssueForm = observer(function KanbanQuickAddIssueForm
|
||||||
const { ref, projectDetail, register, onSubmit, isEpic } = props;
|
const { ref, projectDetail, register, onSubmit, isEpic } = props;
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
return (
|
return (
|
||||||
<div className="m-1 overflow-hidden rounded-sm shadow-raised-200">
|
<div className="m-1 overflow-hidden rounded-sm shadow-raised-200 bg-layer-2">
|
||||||
<form ref={ref} onSubmit={onSubmit} className="flex w-full items-center gap-x-3 bg-surface-1 p-3">
|
<form ref={ref} onSubmit={onSubmit} className="flex w-full items-center gap-x-3 p-3">
|
||||||
<div className="w-full">
|
<div className="w-full">
|
||||||
<h4 className="text-11 font-medium leading-5 text-tertiary">{projectDetail?.identifier ?? "..."}</h4>
|
<h4 className="text-11 font-medium leading-5 text-tertiary">{projectDetail?.identifier ?? "..."}</h4>
|
||||||
<input
|
<input
|
||||||
|
|
@ -21,7 +21,7 @@ export const KanbanQuickAddIssueForm = observer(function KanbanQuickAddIssueForm
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<div className="px-3 py-2 text-11 italic text-secondary">
|
<div className="px-3 py-2 text-11 italic text-tertiary bg-layer-3">
|
||||||
{isEpic ? t("epic.add.press_enter") : t("issue.add.press_enter")}
|
{isEpic ? t("epic.add.press_enter") : t("issue.add.press_enter")}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ export const buttonStyling: IButtonStyling = {
|
||||||
default: `text-on-color bg-accent-primary`,
|
default: `text-on-color bg-accent-primary`,
|
||||||
hover: `hover:bg-accent-primary/80`,
|
hover: `hover:bg-accent-primary/80`,
|
||||||
pressed: `focus:text-custom-brand-40 focus:bg-accent-primary/80`,
|
pressed: `focus:text-custom-brand-40 focus:bg-accent-primary/80`,
|
||||||
disabled: `cursor-not-allowed !bg-custom-primary-60 hover:bg-custom-primary-60`,
|
disabled: `cursor-not-allowed !bg-layer-1 !text-placeholder`,
|
||||||
},
|
},
|
||||||
"accent-primary": {
|
"accent-primary": {
|
||||||
default: `bg-accent-primary/20 text-accent-primary`,
|
default: `bg-accent-primary/20 text-accent-primary`,
|
||||||
|
|
@ -59,7 +59,7 @@ export const buttonStyling: IButtonStyling = {
|
||||||
default: `text-secondary bg-surface-1 border border-subtle`,
|
default: `text-secondary bg-surface-1 border border-subtle`,
|
||||||
hover: `hover:bg-surface-2`,
|
hover: `hover:bg-surface-2`,
|
||||||
pressed: `focus:text-tertiary focus:bg-surface-2`,
|
pressed: `focus:text-tertiary focus:bg-surface-2`,
|
||||||
disabled: `cursor-not-allowed !text-placeholder`,
|
disabled: `cursor-not-allowed !bg-layer-1 !text-placeholder`,
|
||||||
},
|
},
|
||||||
"link-primary": {
|
"link-primary": {
|
||||||
default: `text-accent-primary bg-surface-1`,
|
default: `text-accent-primary bg-surface-1`,
|
||||||
|
|
@ -67,42 +67,41 @@ export const buttonStyling: IButtonStyling = {
|
||||||
pressed: `focus:text-accent-primary/80 `,
|
pressed: `focus:text-accent-primary/80 `,
|
||||||
disabled: `cursor-not-allowed !text-accent-primary/60`,
|
disabled: `cursor-not-allowed !text-accent-primary/60`,
|
||||||
},
|
},
|
||||||
|
|
||||||
danger: {
|
danger: {
|
||||||
default: `text-on-color bg-red-500`,
|
default: `bg-danger-primary text-on-color`,
|
||||||
hover: ` hover:bg-red-600`,
|
hover: ` hover:bg-danger-primary-hover`,
|
||||||
pressed: `focus:text-red-200 focus:bg-red-600`,
|
pressed: `focus:bg-danger-primary-active`,
|
||||||
disabled: `cursor-not-allowed !bg-red-300`,
|
disabled: `cursor-not-allowed bg-layer-disabled! text-disabled!`,
|
||||||
},
|
},
|
||||||
"accent-danger": {
|
"accent-danger": {
|
||||||
default: `text-red-500 bg-red-50`,
|
default: `text-red-500 bg-red-50`,
|
||||||
hover: `hover:text-red-600 hover:bg-red-100`,
|
hover: `hover:text-red-600 hover:bg-red-100`,
|
||||||
pressed: `focus:text-red-500 focus:bg-red-100`,
|
pressed: `focus:text-red-500 focus:bg-red-100`,
|
||||||
disabled: `cursor-not-allowed !text-red-300`,
|
disabled: `cursor-not-allowed !bg-layer-1 !text-placeholder`,
|
||||||
},
|
},
|
||||||
"outline-danger": {
|
"outline-danger": {
|
||||||
default: `text-red-500 bg-transparent border border-red-500`,
|
default: `bg-layer-2 text-danger border border-danger-strong`,
|
||||||
hover: `hover:text-red-400 hover:border-red-400`,
|
hover: `hover:bg-danger-subtle`,
|
||||||
pressed: `focus:text-red-400 focus:border-red-400`,
|
pressed: `focus:bg-danger-subtle-hover`,
|
||||||
disabled: `cursor-not-allowed !text-red-300 !border-red-300`,
|
disabled: `cursor-not-allowed text-disabled! border-subtle-1!`,
|
||||||
},
|
},
|
||||||
"link-danger": {
|
"link-danger": {
|
||||||
default: `text-red-500 bg-surface-1`,
|
default: `text-red-500 bg-surface-1`,
|
||||||
hover: `hover:text-red-400`,
|
hover: `hover:text-red-400`,
|
||||||
pressed: `focus:text-red-400`,
|
pressed: `focus:text-red-400`,
|
||||||
disabled: `cursor-not-allowed !text-red-300`,
|
disabled: `cursor-not-allowed !bg-layer-1 !text-placeholder`,
|
||||||
},
|
},
|
||||||
"tertiary-danger": {
|
"tertiary-danger": {
|
||||||
default: `text-red-500 bg-surface-1 border border-red-200`,
|
default: `text-red-500 bg-surface-1 border border-red-200`,
|
||||||
hover: `hover:bg-red-50 hover:border-red-300`,
|
hover: `hover:bg-red-50 hover:border-red-300`,
|
||||||
pressed: `focus:text-red-400`,
|
pressed: `focus:text-red-400`,
|
||||||
disabled: `cursor-not-allowed !text-red-300`,
|
disabled: `cursor-not-allowed !bg-layer-1 !text-placeholder`,
|
||||||
},
|
},
|
||||||
"link-neutral": {
|
"link-neutral": {
|
||||||
default: `text-tertiary`,
|
default: `text-tertiary`,
|
||||||
hover: `hover:text-secondary`,
|
hover: `hover:text-secondary`,
|
||||||
pressed: `focus:text-primary`,
|
pressed: `focus:text-primary`,
|
||||||
disabled: `cursor-not-allowed !text-placeholder`,
|
disabled: `cursor-not-allowed !bg-layer-1 !text-placeholder`,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue