Skip to content

Commit 46e5cae

Browse files
chore: fix dark mode styling on environment popover (#7934)
* chore: fix dark mode styling on environment popover * fix: type in classname and adding padding around icon in button for better visibility * Update snapshots --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 6fa24dc commit 46e5cae

6 files changed

+14
-10
lines changed
-248 Bytes
Loading
Loading
Loading
Loading
Loading

src/components/environment/Environment.tsx

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function EnvironmentDescription() {
2121
return (
2222
<div className="absolute left-2 bottom-full mb-1 flex-col gap-1 align-stretch bg-chalkboard-10 dark:bg-chalkboard-90 rounded shadow-lg border border-solid border-chalkboard-20/50 dark:border-chalkboard-80/50 text-sm">
2323
<div
24-
className={`flex flex-col p-2 mb-2 rounded-t-sm bg-chalkboard-20 text-chalkboard-100`}
24+
className={`flex flex-col p-2 mb-2 rounded-t-sm bg-chalkboard-20 text-chalkboard-100 dark:bg-chalkboard-80 dark:text-chalkboard-10`}
2525
>
2626
<p className="flex flex-row justify-between">
2727
<h2 className="text-sm font-sans font-normal">Environment</h2>
@@ -47,7 +47,7 @@ export function EnvironmentDescription() {
4747
}
4848
}}
4949
iconEnd={{ icon: 'sketch', bgClassName: '!bg-transparent' }}
50-
className="ml-1 pr-0"
50+
className="ml-1 py-0.5 pr-0.5"
5151
>
5252
{fullEnvironmentName}
5353
</ActionButton>
@@ -56,26 +56,30 @@ export function EnvironmentDescription() {
5656
</div>
5757
<ul>
5858
<li className="flex flex-col px-2 py-2 gap-1 last:mb-0 ">
59-
<p className="text-chalkboard-100">API</p>{' '}
60-
<p className="text-chalkboard-60">
59+
<p className="text-chalkboard-100 dark:text-chalkboard-10">API</p>{' '}
60+
<p className="text-chalkboard-60 dark:text-chalkboard-40">
6161
{env().VITE_KITTYCAD_API_BASE_URL}
6262
</p>
6363
</li>
6464
<li className="flex flex-col px-2 py-2 gap-1 last:mb-0 ">
65-
<p className="text-chalkboard-100">Site</p>{' '}
66-
<p className="text-chalkboard-60">
65+
<p className="text-chalkboard-100 dark:text-chalkboard-10">Site</p>{' '}
66+
<p className="text-chalkboard-60 dark:text-chalkboard-40">
6767
{env().VITE_KITTYCAD_SITE_BASE_URL}
6868
</p>
6969
</li>
7070
<li className="flex flex-col px-2 py-2 gap-1 last:mb-0 ">
71-
<p className="text-chalkboard-100">WebSocket (real-time-data)</p>{' '}
72-
<p className="text-chalkboard-60">
71+
<p className="text-chalkboard-100 dark:text-chalkboard-10">
72+
WebSocket (real-time-data)
73+
</p>{' '}
74+
<p className="text-chalkboard-60 dark:text-chalkboard-40">
7375
{env().VITE_KITTYCAD_API_WEBSOCKET_URL}
7476
</p>
7577
</li>
7678
<li className="flex flex-col px-2 py-2 gap-1 last:mb-0 ">
77-
<p className="text-chalkboard-100">Connection Pool</p>{' '}
78-
<p className="text-chalkboard-60 flex flex-row justify-between">
79+
<p className="text-chalkboard-100 dark:text-chalkboard-10">
80+
Connection Pool
81+
</p>{' '}
82+
<p className="text-chalkboard-60 dark:text-chalkboard-40 flex flex-row justify-between">
7983
<span>{env().POOL || 'Auto'}</span>
8084
<div className="flex flex-row gap-1">
8185
<ActionButton

0 commit comments

Comments
 (0)