Skip to content

Commit 88f4d82

Browse files
authored
chore: replace old classNames (#8372)
1 parent 9b90fbf commit 88f4d82

File tree

58 files changed

+66
-68
lines changed

Some content is hidden

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

58 files changed

+66
-68
lines changed

apps/admin/app/(all)/(dashboard)/email/test-email-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export function SendTestEmailModal(props: Props) {
8585
leaveFrom="opacity-100 translate-y-0 sm:scale-100"
8686
leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
8787
>
88-
<Dialog.Panel className="relative transform rounded-lg bg-surface-1 p-5 px-4 text-left shadow-custom-shadow-md transition-all w-full sm:max-w-xl">
88+
<Dialog.Panel className="relative transform rounded-lg bg-surface-1 p-5 px-4 text-left shadow-raised-200 transition-all w-full sm:max-w-xl">
8989
<h3 className="text-16 font-medium leading-6 text-primary">
9090
{sendEmailStep === ESendEmailSteps.SEND_EMAIL
9191
? "Send test email"

apps/admin/core/components/common/confirm-discard-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function ConfirmDiscardModal(props: Props) {
3939
leaveFrom="opacity-100 translate-y-0 sm:scale-100"
4040
leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
4141
>
42-
<Dialog.Panel className="relative transform overflow-hidden rounded-lg bg-surface-1 text-left shadow-custom-shadow-md transition-all sm:my-8 sm:w-[30rem]">
42+
<Dialog.Panel className="relative transform overflow-hidden rounded-lg bg-surface-1 text-left shadow-raised-200 transition-all sm:my-8 sm:w-[30rem]">
4343
<div className="px-4 pb-4 pt-5 sm:p-6 sm:pb-4">
4444
<div className="sm:flex sm:items-start">
4545
<div className="mt-3 text-center sm:mt-0 sm:text-left">

apps/space/app/error.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ function ErrorPage() {
1414
<p className="mx-auto md:w-1/2 text-13 text-secondary">
1515
That crashed Plane, pun intended. No worries, though. Our engineers have been notified. If you have more
1616
details, please write to{" "}
17-
<a href="mailto:[email protected]" className="text-custom-primary">
17+
<a href="mailto:[email protected]" className="text-accent-primary">
1818
1919
</a>{" "}
2020
or on our{" "}
2121
<a
2222
href="https://discord.com/invite/A92xrEGCge"
2323
target="_blank"
24-
className="text-custom-primary"
24+
className="text-accent-primary"
2525
rel="noopener noreferrer"
2626
>
2727
Discord

apps/web/ce/components/pages/editor/embed/issue-embed-upgrade-card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function IssueEmbedUpgradeCard(props: any) {
1616
>
1717
<div className="flex items-center gap-4">
1818
<ProIcon className="flex-shrink-0 size-4" />
19-
<p className="text-custom-text !text-14">
19+
<p className="text-secondary !text-14">
2020
Embed and access issues in pages seamlessly, upgrade to Plane Pro now.
2121
</p>
2222
</div>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export function DeactivateAccountModal(props: Props) {
8787
leaveFrom="opacity-100 translate-y-0 sm:scale-100"
8888
leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
8989
>
90-
<Dialog.Panel className="relative transform overflow-hidden rounded-lg bg-surface-1 text-left shadow-custom-shadow-md transition-all sm:my-8 sm:w-[40rem]">
90+
<Dialog.Panel className="relative transform overflow-hidden rounded-lg bg-surface-1 text-left shadow-raised-200 transition-all sm:my-8 sm:w-[40rem]">
9191
<div className="px-4 pb-4 pt-5 sm:p-6 sm:pb-4">
9292
<div className="">
9393
<div className="flex items-start gap-x-4">

apps/web/core/components/automation/select-month-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export function SelectMonthModal({ type, initialValues, isOpen, handleClose, han
6868
leaveFrom="opacity-100 translate-y-0 sm:scale-100"
6969
leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
7070
>
71-
<Dialog.Panel className="relative transform rounded-lg bg-surface-1 px-4 pb-4 pt-5 text-left shadow-custom-shadow-md transition-all sm:my-8 sm:w-full sm:max-w-2xl sm:p-6">
71+
<Dialog.Panel className="relative transform rounded-lg bg-surface-1 px-4 pb-4 pt-5 text-left shadow-raised-200 transition-all sm:my-8 sm:w-full sm:max-w-2xl sm:p-6">
7272
<form onSubmit={handleSubmit(onSubmit)}>
7373
<div>
7474
<Dialog.Title as="h3" className="text-16 font-medium leading-6 text-primary">

apps/web/core/components/common/latest-feature-block.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,14 @@ export function LatestFeatureBlock() {
2121
</div>
2222
<div
2323
className={`mx-auto mt-8 overflow-hidden rounded-md border border-subtle object-cover sm:h-52 sm:w-96 ${
24-
resolvedTheme === "dark" ? "bg-surface-1" : "bg-custom-primary-70"
24+
resolvedTheme === "dark" ? "bg-surface-1" : "bg-layer-2"
2525
}`}
2626
>
2727
<div className="h-[90%]">
2828
<img
2929
src={latestFeatures}
3030
alt="Plane Work items"
31-
className={`-mt-2 ml-10 h-full rounded-md ${
32-
resolvedTheme === "dark" ? "bg-surface-1" : "bg-custom-primary-70"
33-
}`}
31+
className={`-mt-2 ml-10 h-full rounded-md ${resolvedTheme === "dark" ? "bg-surface-1" : "bg-layer-2"}`}
3432
/>
3533
</div>
3634
</div>

apps/web/core/components/core/filters/date-filter-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function DateFilterModal({ title, handleClose, isOpen, onSelect }: Props)
7373
leaveFrom="opacity-100 translate-y-0 sm:scale-100"
7474
leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
7575
>
76-
<Dialog.Panel className="relative flex transform rounded-lg bg-surface-1 px-5 py-8 text-left shadow-custom-shadow-md transition-all sm:my-8 sm:w-full sm:max-w-2xl sm:p-6">
76+
<Dialog.Panel className="relative flex transform rounded-lg bg-surface-1 px-5 py-8 text-left shadow-raised-200 transition-all sm:my-8 sm:w-full sm:max-w-2xl sm:p-6">
7777
<form className="space-y-4">
7878
<div className="flex w-full justify-between">
7979
<Controller

apps/web/core/components/core/image-picker-popover.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ export const ImagePickerPopover = observer(function ImagePickerPopover(props: Pr
303303
<div className="flex w-full flex-1 items-center gap-3">
304304
<div
305305
{...getRootProps()}
306-
className={`relative grid h-full w-full cursor-pointer place-items-center rounded-lg p-12 text-center focus:outline-none focus:ring-2 focus:ring-custom-primary focus:ring-offset-2 ${
306+
className={`relative grid h-full w-full cursor-pointer place-items-center rounded-lg p-12 text-center focus:outline-none focus:ring-2 focus:ring-accent-strong focus:ring-offset-2 ${
307307
(image === null && isDragActive) || !value
308308
? "border-2 border-dashed border-subtle hover:bg-surface-2"
309309
: ""

apps/web/core/components/core/modals/bulk-delete-issues-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export const BulkDeleteIssuesModal = observer(function BulkDeleteIssuesModal(pro
163163
leaveTo="opacity-0 scale-95"
164164
>
165165
<Dialog.Panel className="relative flex w-full items-center justify-center ">
166-
<div className="w-full max-w-2xl transform divide-y divide-subtle-1 divide-opacity-10 rounded-lg bg-surface-1 shadow-custom-shadow-md transition-all">
166+
<div className="w-full max-w-2xl transform divide-y divide-subtle-1 divide-opacity-10 rounded-lg bg-surface-1 shadow-raised-200 transition-all">
167167
<form>
168168
<Combobox
169169
onChange={(val: string) => {

0 commit comments

Comments
 (0)