Skip to content

Commit 206fca1

Browse files
committed
Use responsive colors to fix tray text colors in collaborative details
1 parent 4d4ee53 commit 206fca1

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

app/[locale]/(user)/collaboratives/components/Metadata.tsx

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ const Metadata = ({ data, setOpen }: { data: any; setOpen?: any }) => {
3838
'N/A'
3939
) : (
4040
<Link
41-
className="text-primaryBlue underline"
41+
className="text-primaryBlue underline lg:text-white"
4242
href={data.collaborativeBySlug.platformUrl}
4343
>
44-
<Text className="underline" color="onBgDefault" variant="bodyLg">
44+
<Text className="underline text-primaryBlue lg:text-white" variant="bodyLg">
4545
{platformTitle?.trim() ? platformTitle : 'Visit Platform'}
4646
</Text>
4747
</Link>
@@ -111,11 +111,11 @@ const Metadata = ({ data, setOpen }: { data: any; setOpen?: any }) => {
111111
<Text
112112
variant="headingLg"
113113
fontWeight="semibold"
114-
color="onBgDefault"
114+
className="text-primaryBlue lg:text-white"
115115
>
116116
ABOUT THE COLLABORATIVE{' '}
117117
</Text>
118-
<Text variant="bodyLg" color="onBgDefault">DETAILS</Text>
118+
<Text variant="bodyLg" className="text-gray-900 lg:text-white">DETAILS</Text>
119119
</div>
120120
<div className="flex items-center justify-between">
121121
{setOpen && (
@@ -140,18 +140,16 @@ const Metadata = ({ data, setOpen }: { data: any; setOpen?: any }) => {
140140
{metadata.map((item, index) => (
141141
<div key={index} className="flex gap-2">
142142
<Text
143-
className="min-w-[120px] basis-1/4 uppercase"
143+
className="min-w-[120px] basis-1/4 uppercase text-gray-900 lg:text-white"
144144
variant="bodyMd"
145-
color="onBgDefault"
146145
>
147146
{item.label}
148147
</Text>
149148
<Tooltip content={item?.tooltipContent}>
150149
<Text
151-
className="max-w-xs truncate"
150+
className="max-w-xs truncate text-gray-900 lg:text-white"
152151
variant="bodyLg"
153152
fontWeight="medium"
154-
color="onBgDefault"
155153
>
156154
{typeof item.value === 'string' ? item.value : item.value}
157155
</Text>
@@ -162,9 +160,8 @@ const Metadata = ({ data, setOpen }: { data: any; setOpen?: any }) => {
162160
{data.collaborativeBySlug.contributors && data.collaborativeBySlug.contributors.length > 0 && (
163161
<div className="flex gap-2">
164162
<Text
165-
className="min-w-[120px] basis-1/4 uppercase"
163+
className="min-w-[120px] basis-1/4 uppercase text-gray-900 lg:text-white"
166164
variant="bodyMd"
167-
color="onBgDefault"
168165
>
169166
Contributors
170167
</Text>

0 commit comments

Comments
 (0)