Skip to content

Commit ad2291d

Browse files
authored
[WEB-5660] [WEB-5737] fix: cycle and module sidebar #8375
1 parent c56bb06 commit ad2291d

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export const ImagePickerPopover = observer(function ImagePickerPopover(props: Pr
212212
<Tab.Panel className="mt-4 h-full w-full space-y-4">
213213
{(unsplashImages || !unsplashError) && (
214214
<>
215-
<div className="flex gap-x-2">
215+
<div className="flex items-center gap-x-2">
216216
<Controller
217217
control={control}
218218
name="search"
@@ -235,7 +235,7 @@ export const ImagePickerPopover = observer(function ImagePickerPopover(props: Pr
235235
/>
236236
)}
237237
/>
238-
<Button variant="primary" onClick={() => setSearchParams(formData.search)}>
238+
<Button variant="primary" size="xl" onClick={() => setSearchParams(formData.search)}>
239239
Search
240240
</Button>
241241
</div>

apps/web/core/components/cycles/analytics-sidebar/progress-stats.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type { FC } from "react";
21
import { observer } from "mobx-react";
32
import { Tab } from "@headlessui/react";
43
// plane imports
@@ -122,7 +121,7 @@ export const CycleProgressStats = observer(function CycleProgressStats(props: TC
122121
className={cn(
123122
`flex w-full items-center justify-between gap-2 rounded-md p-1`,
124123
roundedTab ? `rounded-3xl` : `rounded-md`,
125-
noBackground ? `` : `bg-surface-2`,
124+
noBackground ? `` : `bg-layer-2`,
126125
size === "xs" ? `text-11` : `text-13`
127126
)}
128127
>
@@ -131,7 +130,9 @@ export const CycleProgressStats = observer(function CycleProgressStats(props: TC
131130
className={cn(
132131
`p-1 w-full text-primary outline-none focus:outline-none cursor-pointer transition-all`,
133132
roundedTab ? `rounded-3xl border border-subtle` : `rounded-sm`,
134-
stat.key === currentTab ? "bg-surface-1 text-tertiary" : "text-placeholder hover:text-tertiary"
133+
stat.key === currentTab
134+
? "bg-layer-transparent-active text-secondary"
135+
: "text-placeholder hover:text-secondary"
135136
)}
136137
key={stat.key}
137138
onClick={() => setCycleTab(stat.key)}

apps/web/core/components/modules/analytics-sidebar/progress-stats.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type { FC } from "react";
21
import { observer } from "mobx-react";
32
import { Tab } from "@headlessui/react";
43
import { useTranslation } from "@plane/i18n";
@@ -120,7 +119,7 @@ export const ModuleProgressStats = observer(function ModuleProgressStats(props:
120119
className={cn(
121120
`flex w-full items-center justify-between gap-2 rounded-md p-1`,
122121
roundedTab ? `rounded-3xl` : `rounded-md`,
123-
noBackground ? `` : `bg-surface-2`,
122+
noBackground ? `` : `bg-layer-2`,
124123
size === "xs" ? `text-11` : `text-13`
125124
)}
126125
>
@@ -129,7 +128,9 @@ export const ModuleProgressStats = observer(function ModuleProgressStats(props:
129128
className={cn(
130129
`p-1 w-full text-primary outline-none focus:outline-none cursor-pointer transition-all`,
131130
roundedTab ? `rounded-3xl border border-subtle` : `rounded-sm`,
132-
stat.key === currentTab ? "bg-surface-1 text-tertiary" : "text-placeholder hover:text-tertiary"
131+
stat.key === currentTab
132+
? "bg-layer-transparent-active text-secondary"
133+
: "text-placeholder hover:text-secondary"
133134
)}
134135
key={stat.key}
135136
onClick={() => setModuleTab(stat.key)}

0 commit comments

Comments
 (0)