Skip to content

Commit 6cc5c19

Browse files
authored
regression: red and green color backgrounds (#8456)
1 parent 2980c2d commit 6cc5c19

File tree

42 files changed

+86
-177
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+86
-177
lines changed

apps/admin/core/components/common/banner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function Banner(props: TBanner) {
1010

1111
return (
1212
<div
13-
className={`rounded-md p-2 w-full border ${type === "error" ? "bg-danger-primary border-danger-strong" : "bg-success-primary border-success-strong"}`}
13+
className={`rounded-md p-2 w-full border ${type === "error" ? "bg-danger-subtle border-danger-strong" : "bg-success-subtle border-success-strong"}`}
1414
>
1515
<div className="flex items-center justify-center">
1616
<div className="flex-shrink-0">

apps/space/core/components/account/auth-forms/email.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const AuthEmailForm = observer(function AuthEmailForm(props: TAuthEmailFo
6868
value={email}
6969
onChange={(e) => setEmail(e.target.value)}
7070
placeholder="[email protected]"
71-
className={`disable-autofill-style h-10 w-full placeholder:text-placeholder autofill:bg-danger-primary border-0 focus:bg-none active:bg-transparent`}
71+
className={`disable-autofill-style h-10 w-full placeholder:text-placeholder autofill:bg-danger-subtle border-0 focus:bg-none active:bg-transparent`}
7272
autoComplete="on"
7373
autoFocus
7474
ref={inputRef}

apps/space/core/components/issues/peek-overview/comment/comment-detail-card.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -132,22 +132,16 @@ export const CommentCard = observer(function CommentCard(props: Props) {
132132
<button
133133
type="submit"
134134
disabled={isSubmitting}
135-
className="group rounded-sm border border-success-strong bg-success-primary p-2 shadow-md duration-300 hover:bg-green-500"
135+
className="group rounded-sm border border-success-strong bg-success-primary p-2 shadow-md duration-300 hover:bg-success-primary"
136136
>
137-
<CheckIcon
138-
className="h-3 w-3 text-success-primary duration-300 group-hover:text-on-color"
139-
strokeWidth={2}
140-
/>
137+
<CheckIcon className="h-3 w-3 text-on-color" strokeWidth={2} />
141138
</button>
142139
<button
143140
type="button"
144141
className="group rounded-sm border border-danger-strong bg-danger-primary p-2 shadow-md duration-300 hover:bg-danger-primary-hover"
145142
onClick={() => setIsEditing(false)}
146143
>
147-
<CloseIcon
148-
className="h-3 w-3 text-danger-primary duration-300 group-hover:text-on-color"
149-
strokeWidth={2}
150-
/>
144+
<CloseIcon className="h-3 w-3 text-on-color" strokeWidth={2} />
151145
</button>
152146
</div>
153147
</form>

apps/web/ce/components/relations/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const ISSUE_RELATION_OPTIONS: Record<TIssueRelationTypes, TRelationObject
2323
blocked_by: {
2424
key: "blocked_by",
2525
i18n_label: "issue.relation.blocked_by",
26-
className: "bg-danger-primary text-danger-primary",
26+
className: "bg-danger-subtle text-danger-primary",
2727
icon: (size) => <CircleDot size={size} className="text-secondary" />,
2828
placeholder: "None",
2929
},

apps/web/core/components/account/auth-forms/email.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const AuthEmailForm = observer(function AuthEmailForm(props: TAuthEmailFo
6767
value={email}
6868
onChange={(e) => setEmail(e.target.value)}
6969
placeholder={t("auth.common.email.placeholder")}
70-
className={`disable-autofill-style h-10 w-full placeholder:text-placeholder autofill:bg-red-500 border-0 focus:bg-none active:bg-transparent`}
70+
className={`disable-autofill-style h-10 w-full placeholder:text-placeholder autofill:bg-danger-primary border-0 focus:bg-none active:bg-transparent`}
7171
autoComplete="on"
7272
autoFocus
7373
ref={inputRef}

apps/web/core/components/account/auth-forms/password.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,19 +124,20 @@ export const AuthPasswordForm = observer(function AuthPasswordForm(props: Props)
124124
return (
125125
<>
126126
{isBannerMessage && mode === EAuthModes.SIGN_UP && (
127-
<div className="relative flex items-center p-2 rounded-md gap-2 border border-danger-strong/50 bg-danger-primary">
128-
<div className="w-4 h-4 flex-shrink-0 relative flex justify-center items-center">
127+
<div className="relative flex items-center p-2 rounded-md gap-2 border border-danger-strong/50 bg-danger-subtle">
128+
<div className="w-4 h-4 shrink-0 relative flex justify-center items-center">
129129
<Info size={16} className="text-danger-primary" />
130130
</div>
131131
<div className="w-full text-13 font-medium text-danger-primary">
132132
{t("auth.sign_up.errors.password.strength")}
133133
</div>
134-
<div
135-
className="relative ml-auto w-6 h-6 rounded-xs flex justify-center items-center transition-all cursor-pointer hover:bg-danger-primary text-accent-primary/80"
134+
<button
135+
type="button"
136+
className="relative ml-auto w-6 h-6 rounded-xs flex justify-center items-center transition-all cursor-pointer hover:bg-danger-subtle-hover text-accent-primary/80"
136137
onClick={() => setBannerMessage(false)}
137138
>
138-
<CloseIcon className="w-4 h-4 flex-shrink-0 text-danger-primary" />
139-
</div>
139+
<CloseIcon className="w-4 h-4 shrink-0 text-danger-primary" />
140+
</button>
140141
</div>
141142
)}
142143
<form

apps/web/core/components/account/deactivate-account-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export function DeactivateAccountModal(props: Props) {
6767
<div className="px-4 pb-4 pt-5 sm:p-6 sm:pb-4">
6868
<div className="">
6969
<div className="flex items-start gap-x-4">
70-
<div className="mt-3 grid place-items-center rounded-full bg-danger-primary p-2 sm:mt-3 sm:p-2 md:mt-0 md:p-4 lg:mt-0 lg:p-4 ">
70+
<div className="mt-3 grid place-items-center rounded-full bg-danger-subtle p-2 sm:mt-3 sm:p-2 md:mt-0 md:p-4 lg:mt-0 lg:p-4 ">
7171
<TrashIcon
7272
className="h-4 w-4 text-danger-primary sm:h-4 sm:w-4 md:h-6 md:w-6 lg:h-6 lg:w-6"
7373
aria-hidden="true"

apps/web/core/components/analytics/trend-piece.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ const variants: Record<NonNullable<Props["variant"]>, Record<"ontrack" | "offtra
4343
atrisk: "text-danger-primary border border-danger-strong",
4444
},
4545
tinted: {
46-
ontrack: "text-success-primary bg-success-primary",
46+
ontrack: "text-success-primary bg-success-subtle",
4747
offtrack: "text-yellow-500 bg-yellow-500/10",
48-
atrisk: "text-danger-primary bg-danger-primary",
48+
atrisk: "text-danger-primary bg-danger-subtle",
4949
},
5050
} as const;
5151

apps/web/core/components/api-token/token-list-item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function ApiTokenListItem(props: Props) {
3838
<h5 className="truncate text-13 font-medium">{token.label}</h5>
3939
<span
4040
className={`${
41-
token.is_active ? "bg-success-primary text-success-primary" : "bg-layer-1 text-placeholder"
41+
token.is_active ? "bg-success-subtle text-success-primary" : "bg-layer-1 text-placeholder"
4242
} ml-2 flex h-4 max-h-fit items-center rounded-xs px-2 text-11 font-medium`}
4343
>
4444
{token.is_active ? "Active" : "Expired"}

apps/web/core/components/comments/card/edit-form.tsx

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useEffect, useRef } from "react";
1+
import { useEffect, useRef } from "react";
22
import { observer } from "mobx-react";
33
import { useForm } from "react-hook-form";
44
import type { EditorRefApi } from "@plane/editor";
@@ -111,40 +111,26 @@ export const CommentCardEditForm = observer(function CommentCardEditForm(props:
111111
onClick={handleSubmit(onEnter)}
112112
disabled={isDisabled}
113113
className={cn(
114-
"group rounded-lg border size-7 flex items-center justify-center shadow-md duration-300",
115-
isDisabled
116-
? "cursor-not-allowed border-success-strong/50 bg-success-primary"
117-
: "border-success-strong bg-success-primary hover:bg-green-500"
114+
"group rounded-lg border border-success-subtle size-7 grid place-items-center shadow-raised-100 bg-success-subtle duration-300",
115+
isDisabled ? "" : "hover:bg-success-subtle-1"
118116
)}
119117
>
120-
<CheckIcon
121-
className={cn(
122-
"size-4 duration-300",
123-
isDisabled ? "text-success-primary/50" : "text-success-primary group-hover:text-on-color"
124-
)}
125-
/>
118+
<CheckIcon className="size-4 text-success-primary" />
126119
</button>
127120
)}
128121
<button
129122
type="button"
130123
disabled={isSubmitting}
131124
className={cn(
132-
"group rounded-lg border size-7 flex items-center justify-center shadow-md duration-300",
133-
isSubmitting
134-
? "cursor-not-allowed border-danger-strong/50 bg-danger-primary"
135-
: "border-danger-strong bg-danger-primary hover:bg-red-500"
125+
"group rounded-lg border border-danger-subtle size-7 grid place-items-center shadow-raised-100 bg-danger-subtle duration-300",
126+
isSubmitting ? "" : "hover:bg-danger-subtle-hover"
136127
)}
137128
onClick={() => {
138129
setIsEditing(false);
139130
editorRef.current?.setEditorValue(comment.comment_html ?? "<p></p>");
140131
}}
141132
>
142-
<CloseIcon
143-
className={cn(
144-
"size-5 duration-300",
145-
isSubmitting ? "text-danger-primary/50" : "text-danger-primary group-hover:text-on-color"
146-
)}
147-
/>
133+
<CloseIcon className="size-4 text-danger-primary" />
148134
</button>
149135
</div>
150136
</form>

0 commit comments

Comments
 (0)